On 2018/12/3 16:02, Andy Shevchenko wrote: > On Mon, Dec 3, 2018 at 5:48 AM Yu Chen <cheny...@huawei.com> wrote: >> >> 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 > >> +static void dwc3_gctl_core_soft_reset(struct dwc3 *dwc) >> +{ > >> + int reg; > > u32? int for register value looks confusing a bit. Yes, it should be u32. > >> + 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); >> +} > >> + int reg; > > Ditto. >
- [PATCH v1 09/12] usb: dwc3: Registering a role switch in t... Yu Chen
- Re: [PATCH v1 09/12] usb: dwc3: Registering a role sw... Andy Shevchenko
- Re: [PATCH v1 09/12] usb: dwc3: Registering a role sw... Heikki Krogerus
- Re: [PATCH v1 09/12] usb: dwc3: Registering a role sw... Heikki Krogerus
- [PATCH v1 12/12] dts: hi3660: Add support for usb on Hikey... Yu Chen
- Re: [PATCH v1 12/12] dts: hi3660: Add support for usb... Heikki Krogerus
- [PATCH v1 05/12] usb: dwc3: Add two quirks for Hisilicon K... Yu Chen
- Re: [PATCH v1 05/12] usb: dwc3: Add two quirks for Hi... Andy Shevchenko
- Re: [PATCH v1 05/12] usb: dwc3: Add two quirks fo... Chen Yu
- [PATCH v1 03/12] dt-bindings: misc: Add bindings for HiSil... Yu Chen
- [PATCH v1 01/12] dt-bindings: usb: add support for dwc3 co... Yu Chen
- Re: [PATCH v1 01/12] dt-bindings: usb: add support fo... Sergei Shtylyov
- Re: [PATCH v1 01/12] dt-bindings: usb: add suppor... Chen Yu
- Re: [PATCH v1 01/12] dt-bindings: usb: add su... Sergei Shtylyov
- Re: [PATCH v1 01/12] dt-bindings: usb: ad... Chen Yu
- Re: [PATCH v1 01/12] dt-bindings: us... Rob Herring