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)
committerJohan Hovold <johan@kernel.org>
Fri, 3 May 2019 07:18:31 +0000 (09:18 +0200)
commit804dbee1e49774918339c1e5a87400988c0819e8
tree6e70d5931cdab65c62d71a544fbb8ab550ac6d60
parentdeb55e40ced4109c53d92af1bc07e1e998979792
USB: serial: f81232: fix interrupt worker not stop

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>
drivers/usb/serial/f81232.c