Thread (51 messages) 51 messages, 7 authors, 2019-01-25

Re: [PATCH v1 05/12] usb: dwc3: Add two quirks for Hisilicon Kirin Soc Platform

From: Chen Yu <chenyu56@huawei.com>
Date: 2018-12-03 08:23:20
Also in: linux-usb, lkml


On 2018/12/3 16:02, Andy Shevchenko wrote:
On Mon, Dec 3, 2018 at 5:48 AM Yu Chen [off-list ref] wrote:
quoted
There are tow quirks for DesignWare USB3 DRD Core of Hisilicon Kirin Soc.
1)SPLIT_BOUNDARY_DISABLE should be set for Host mode
2)A GCTL soft reset should be executed when switch mode
quoted
+static void dwc3_gctl_core_soft_reset(struct dwc3 *dwc)
+{
quoted
+       int reg;
u32? int for register value looks confusing a bit.
Yes, it should be u32.
quoted
+       reg = dwc3_readl(dwc->regs, DWC3_GCTL);
+       reg |= (DWC3_GCTL_CORESOFTRESET);
+       dwc3_writel(dwc->regs, DWC3_GCTL, reg);
+
+       reg = dwc3_readl(dwc->regs, DWC3_GCTL);
+       reg &= ~(DWC3_GCTL_CORESOFTRESET);
+       dwc3_writel(dwc->regs, DWC3_GCTL, reg);
+}
quoted
+       int reg;
Ditto.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help