commit | f661131766e45bc0b3c8b85b19676a470dc75abf | [log] [tgz] |
---|---|---|
author | Geert Uytterhoeven <geert+renesas@glider.be> | Fri Jul 06 11:05:42 2018 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Jul 06 16:41:15 2018 +0200 |
tree | b4b47e57b3bd04d5ad5ec074661dbd900db00603 | |
parent | 2c4ee23530ffc022dc22d2fd4b0eb039c6b4c5e9 [diff] |
serial: sh-sci: Stop TX DMA workqueue during port shutdown The transmit DMA workqueue is never stopped, hence the work function may be called after the port has been shut down. Fix this race condition by cancelling queued work, if any, before DMA release. Don't initialize the work if DMA initialization failed, as it won't be used anyway. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>