From 253d6049789a9229f38bec274c7f1d8d88a67318 Mon Sep 17 00:00:00 2001 From: DENG Qingfang Date: Mon, 9 Sep 2019 17:20:10 +0800 Subject: [PATCH] ramips: fix rt305x dwc2 driver Signed-off-by: DENG Qingfang --- .../patches-4.19/0069-awake-rt305x-dwc2-controller.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/ramips/patches-4.19/0069-awake-rt305x-dwc2-controller.patch b/target/linux/ramips/patches-4.19/0069-awake-rt305x-dwc2-controller.patch index e3abd28f06..965a7b98f1 100644 --- a/target/linux/ramips/patches-4.19/0069-awake-rt305x-dwc2-controller.patch +++ b/target/linux/ramips/patches-4.19/0069-awake-rt305x-dwc2-controller.patch @@ -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 */ + } + -- 2.30.2