Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usb: gadget: u_serial: clear suspended flag when disconnecting
The commit aba3a8d ("usb: gadget: u_serial: add suspend resume callbacks") set/cleared the suspended flag in USB bus suspend/resume only. But, when a USB cable is disconnected in the suspend, since some controllers will not detect USB bus resume, the suspended flag is not cleared. After that, user cannot send any data. To fix the issue, clears the suspended flag in the gserial_disconnect(). Fixes: aba3a8d ("usb: gadget: u_serial: add suspend resume callbacks") Signed-off-by: Yoshihiro Shimoda <[email protected]> Tested-by: Linh Phung <[email protected]> Tested-by: Tam Nguyen <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
- Loading branch information