• Johan Hovold's avatar
    USB: serial: ch341: fix resume after reset · f7eabb93
    Johan Hovold authored
    commit ce5e2928 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: 1ded7ea4 ("USB: ch341 serial: fix port number changed after
    resume")
    Fixes: 2bfd1c96 ("USB: serial: ch341: remove reset_resume callback")
    Signed-off-by: default avatarJohan 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: default avatarBen Hutchings <ben@decadent.org.uk>
    f7eabb93
ch341.c 18 KB