mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
usb: dwc3: core: disable device wakeup for rk356x usb host
RK356x SDK will power off logic and grf module in suspend. So we don't need to enable device wakeup for rk356x usb host to keep usb controller PD on. With this patch, it can call rk356x combphy init by usb_phy_roothub_init during resume, and fix the usb3.0 host function failure after resume. Change-Id: I40f9a34b5f2aaeede833f9e46153f60b767ea3f0 Signed-off-by: William Wu <william.wu@rock-chips.com>
This commit is contained in:
@@ -1273,7 +1273,10 @@ static int dwc3_core_init_mode(struct dwc3 *dwc)
|
||||
* keep PD on and run phy_power_on again to avoid
|
||||
* phy_power_on failed (error -110) in Rockchip platform.
|
||||
*/
|
||||
device_init_wakeup(dev, true);
|
||||
if (!of_machine_is_compatible("rockchip,rk3568") &&
|
||||
!of_machine_is_compatible("rockchip,rk3566"))
|
||||
device_init_wakeup(dev, true);
|
||||
|
||||
phy_power_on(dwc->usb3_generic_phy);
|
||||
|
||||
dwc3_set_prtcap(dwc, DWC3_GCTL_PRTCAP_HOST);
|
||||
|
||||
Reference in New Issue
Block a user