USB: serial: f81232: fix interrupt worker not stop
authorJi-Ze Hong (Peter Hong) <hpeter@gmail.com>
Tue, 30 Apr 2019 01:22:29 +0000 (09:22 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 May 2019 15:52:10 +0000 (17:52 +0200)
commit61e808674840b5bfcec091c82bff928893da9dea
tree2ad201c5cb058473b4a49051e58c0d45b5fb5ba9
parentdfb17fc88e369b82b603d412dd0ff83159e07d62
USB: serial: f81232: fix interrupt worker not stop

commit 804dbee1e49774918339c1e5a87400988c0819e8 upstream.

The F81232 will use interrupt worker to handle MSR change.
This patch will fix the issue that interrupt work should stop
in close() and suspend().

This also fixes line-status events being disabled after a suspend cycle
until the port is re-opened.

Signed-off-by: Ji-Ze Hong (Peter Hong) <hpeter+linux_kernel@gmail.com>
[ johan: amend commit message ]
Fixes: 87fe5adcd8de ("USB: f81232: implement read IIR/MSR with endpoint")
Cc: stable <stable@vger.kernel.org> # 4.1
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/f81232.c