USB: serial: ch341: fix resume after reset
commit
ce5e292828117d1b71cbd3edf9e9137cf31acd30 upstream.
Fix reset-resume handling which failed to resubmit the read and
interrupt URBs, thereby leaving a port that was open before suspend in a
broken state until closed and reopened.
Fixes:
1ded7ea47b88 ("USB: ch341 serial: fix port number changed after
resume")
Fixes:
2bfd1c96a9fb ("USB: serial: ch341: remove reset_resume callback")
Signed-off-by: Johan Hovold <johan@kernel.org>
[bwh: Backported to 3.2:
- Move initialisation of 'serial' up to make this work
- Delete the call to usb_serial_resume() that was still present and
would be redundant with usb_serial_generic_resume()
- Open-code tty_port_initialized()]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>