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:54:10 +0000 (17:54 +0200)
commitbce2b9d63786acb560adb6d1938d3164c1e4ea64
tree5cd237a4297386bb48ebb73c8b25d3fc3455d759
parentcaa5680dc05a20c6e4419c6d4c2f863ec85f43aa
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