RE: [PATCH 2/2] usb: dwc3: Add workaround for host mode VBUS glitch when boot

2019-02-15 Thread Ran Wang
Hi Felipe, Sorry for the late response, I didn't receive your mail. Felipe Balbi wrotes: >Hi, > >Ran Wang writes: >> +static void dwc3_power_off_all_roothub_ports(struct dwc3 *dwc) >> +{ >> +int i, port_num; >> +u32 reg, op_regs_base, offset; >> +void __iomem*xhci_re

Re: [PATCH 2/2] usb: dwc3: Add workaround for host mode VBUS glitch when boot

2019-01-16 Thread kbuild test robot
Hi Ran, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on usb/usb-testing] [also build test WARNING on v5.0-rc2 next-20190116] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/

Re: [PATCH 2/2] usb: dwc3: Add workaround for host mode VBUS glitch when boot

2019-01-16 Thread Felipe Balbi
Hi, Ran Wang writes: > +static void dwc3_power_off_all_roothub_ports(struct dwc3 *dwc) > +{ > + int i, port_num; > + u32 reg, op_regs_base, offset; > + void __iomem*xhci_regs; > + > + /* xhci regs is not mapped yet, do it temperary here */ > + if (dwc->xhci_resour

[PATCH 2/2] usb: dwc3: Add workaround for host mode VBUS glitch when boot

2019-01-15 Thread Ran Wang
When DWC3 is set to host mode by programming register DWC3_GCTL, VUBS (or its control signal) will be turned on immediately on related Root Hub ports. Then, the VUBS is turned off for a little while(15us) when do xhci reset (conducted by xhci driver) and back to normal finally, we can observed a ne