ramips: fix rt305x dwc2 driver
authorDENG Qingfang <dengqf6@mail2.sysu.edu.cn>
Mon, 9 Sep 2019 09:20:10 +0000 (17:20 +0800)
committerPetr Štetiar <ynezz@true.cz>
Fri, 6 Dec 2019 22:24:24 +0000 (23:24 +0100)
Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
target/linux/ramips/patches-4.19/0069-awake-rt305x-dwc2-controller.patch

index e3abd28f0631784a72e00aa7a8f4bde4709400a0..965a7b98f1efef68443811106868a8a61aca0fc6 100644 (file)
@@ -5,8 +5,8 @@
        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 */
 +      }
 +