aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-5.4/0069-awake-rt305x-dwc2-controller.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/patches-5.4/0069-awake-rt305x-dwc2-controller.patch')
-rw-r--r--target/linux/ramips/patches-5.4/0069-awake-rt305x-dwc2-controller.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/target/linux/ramips/patches-5.4/0069-awake-rt305x-dwc2-controller.patch b/target/linux/ramips/patches-5.4/0069-awake-rt305x-dwc2-controller.patch
index 0e09e1d4e0..1ce8fac682 100644
--- a/target/linux/ramips/patches-5.4/0069-awake-rt305x-dwc2-controller.patch
+++ b/target/linux/ramips/patches-5.4/0069-awake-rt305x-dwc2-controller.patch
@@ -1,12 +1,12 @@
--- a/drivers/usb/dwc2/platform.c
+++ b/drivers/usb/dwc2/platform.c
-@@ -406,6 +406,12 @@ static int dwc2_driver_probe(struct plat
- if (retval)
- return retval;
+@@ -432,6 +432,12 @@ static int dwc2_driver_probe(struct plat
+
+ hsotg->needs_byte_swap = dwc2_check_core_endianness(hsotg);
+ /* Enable USB port before any regs access */
-+ if (dwc2_readl(hsotg->regs + PCGCTL) & 0x0f) {
-+ dwc2_writel(0x00, hsotg->regs + PCGCTL);
++ if (dwc2_readl(hsotg, PCGCTL) & 0x0f) {
++ dwc2_writel(0x00, hsotg, PCGCTL);
+ /* TODO: mdelay(25) here? vendor driver don't use it */
+ }
+