mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-14 15:54:15 +08:00
usb: dwc2: Fix host mode hibernation exit with remote wakeup flow.
Added setting "port_connect_status_change" flag to "1" in order
to re-enumerate, because after exit from hibernation port
connection status is not detected.
Fixes: c5c403dc43
("usb: dwc2: Add host/device hibernation functions")
Acked-by: Minas Harutyunyan <Minas.Harutyunyan@synopsys.com>
Signed-off-by: Artur Petrosyan <Arthur.Petrosyan@synopsys.com>
Link: https://lore.kernel.org/r/20210416124707.5EEC2A005D@mailhost.synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b29b494bcc
commit
c2db8d7b95
@ -5650,7 +5650,15 @@ int dwc2_host_exit_hibernation(struct dwc2_hsotg *hsotg, int rem_wakeup,
|
||||
return ret;
|
||||
}
|
||||
|
||||
dwc2_hcd_rem_wakeup(hsotg);
|
||||
if (rem_wakeup) {
|
||||
dwc2_hcd_rem_wakeup(hsotg);
|
||||
/*
|
||||
* Change "port_connect_status_change" flag to re-enumerate,
|
||||
* because after exit from hibernation port connection status
|
||||
* is not detected.
|
||||
*/
|
||||
hsotg->flags.b.port_connect_status_change = 1;
|
||||
}
|
||||
|
||||
hsotg->hibernated = 0;
|
||||
hsotg->bus_suspended = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user