Skip to content

Commit b6a9dca

Browse files
tzuwen_changasus-leslieyu
authored andcommitted
USB: dwc2: Don't turn off the usbphy power and clock in suspend
Change-Id: I7c91b607124500c488e91ddae4c41c0c9e4e23c7
1 parent b575fcc commit b6a9dca

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

arch/arm/boot/dts/rk3288-tinker_board.dtsi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,3 +519,14 @@
519519
};
520520
};
521521
};
522+
523+
&rockchip_suspend {
524+
rockchip,sleep-mode-config = <
525+
(0
526+
|RKPM_CTR_PWR_DMNS
527+
|RKPM_CTR_PLLS
528+
|RKPM_CTR_ARMOFF_LPMD
529+
|RKPM_CTR_SYSCLK_OSC_DIS
530+
)
531+
>;
532+
};

drivers/usb/dwc2/platform.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -745,8 +745,8 @@ static int __maybe_unused dwc2_suspend(struct device *dev)
745745
if (dwc2_is_device_mode(dwc2))
746746
dwc2_hsotg_suspend(dwc2);
747747

748-
if (dwc2->ll_hw_enabled)
749-
ret = __dwc2_lowlevel_hw_disable(dwc2);
748+
//if (dwc2->ll_hw_enabled)
749+
// ret = __dwc2_lowlevel_hw_disable(dwc2);
750750

751751
return ret;
752752
}
@@ -757,11 +757,11 @@ static int __maybe_unused dwc2_resume(struct device *dev)
757757
unsigned long flags;
758758
int ret = 0;
759759

760-
if (dwc2->ll_hw_enabled) {
761-
ret = __dwc2_lowlevel_hw_enable(dwc2);
762-
if (ret)
763-
return ret;
764-
}
760+
//if (dwc2->ll_hw_enabled) {
761+
// ret = __dwc2_lowlevel_hw_enable(dwc2);
762+
// if (ret)
763+
// return ret;
764+
//}
765765

766766
/* Stop hcd if dr_mode is host and PD is power off when suspend */
767767
if (dwc2->op_state == OTG_STATE_A_HOST && dwc2_is_device_mode(dwc2)) {

0 commit comments

Comments
 (0)