Skip to content
Commit d98ef43b authored by Yoshihiro Shimoda's avatar Yoshihiro Shimoda Committed by Felipe Balbi
Browse files

usb: gadget: u_serial: clear suspended flag when disconnecting



The commit aba3a8d0 ("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: aba3a8d0 ("usb: gadget: u_serial: add suspend resume callbacks")
Signed-off-by: default avatarYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: default avatarLinh Phung <linh.phung.jy@renesas.com>
Tested-by: default avatarTam Nguyen <tam.nguyen.xa@renesas.com>
Signed-off-by: default avatarFelipe Balbi <balbi@kernel.org>
parent 897b8138
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment