RE: [PATCH 1/7] usb: dwc3: Add frame length adjustment quirk

2020-10-21 Thread Ran Wang
Hi Marek, On Wednesday, October 21, 2020 3:15 PM, Marek Vasut wrote: > > On 10/21/20 8:25 AM, Ran Wang wrote: > > [...] > > > +static void dwc3_frame_length_adjustment(struct dwc3 *dwc, u32 val) { > > + u32 reg; > > + u32 dft; > > + > > + reg = dwc3_readl(dwc->regs, DWC3_GFLADJ); > > +

Re: [PATCH 1/7] usb: dwc3: Add frame length adjustment quirk

2020-10-21 Thread Marek Vasut
On 10/21/20 8:25 AM, Ran Wang wrote: [...] > +static void dwc3_frame_length_adjustment(struct dwc3 *dwc, u32 val) > +{ > + u32 reg; > + u32 dft; > + > + reg = dwc3_readl(dwc->regs, DWC3_GFLADJ); > + dft = reg & DWC3_GFLADJ_30MHZ_MASK; > + if (dft != val) { Is there a point to

[PATCH 1/7] usb: dwc3: Add frame length adjustment quirk

2020-10-20 Thread Ran Wang
Register Global frame length adjustment is used to do frame length adjustment for SOF/ITP counter which is running on the ref_clk. Allow updating it could help on avoiding potential USB 2.0 devices time-out over a longer run. Refer to Linux commit db2be4e9e30c (“usb: dwc3: Add frame length adjustm