Re: [PATCH 1/7] usb: ehci-mx6: Add powerup_fixup implementation

2020-08-24 Thread Lukasz Majewski
Hi Peng, Marek > From: Ye Li > > When doing port reset, the PR bit of PORTSC1 will be automatically > cleared by our IP, but standard EHCI needs explicit clear by > software. The EHCI-HCD driver follow the EHCI specification, so after > 50ms wait, it clear the PR bit by writting to the PORTSC1 r

Re: [PATCH 1/7] usb: ehci-mx6: Add powerup_fixup implementation

2020-06-28 Thread Marek Vasut
On 6/29/20 4:13 AM, Peng Fan wrote: [...] > +static void ehci_mx6_powerup_fixup(struct ehci_ctrl *ctrl, uint32_t > *status_reg, > +uint32_t *reg) > +{ > + u32 result; > + int usec = 2000; > + > + mdelay(50); > + > + do { > + result = eh

[PATCH 1/7] usb: ehci-mx6: Add powerup_fixup implementation

2020-06-28 Thread Peng Fan
From: Ye Li When doing port reset, the PR bit of PORTSC1 will be automatically cleared by our IP, but standard EHCI needs explicit clear by software. The EHCI-HCD driver follow the EHCI specification, so after 50ms wait, it clear the PR bit by writting to the PORTSC1 register with value loaded be