Re: [PATCH v3 5/5] usb: musb: da8xx: Remove set_mode callback

2016-11-03 Thread Alexandre Bailon
On 11/03/2016 06:27 PM, Bin Liu wrote: > On Thu, Nov 03, 2016 at 12:18:53PM -0500, David Lechner wrote: >> On 11/03/2016 10:26 AM, Alexandre Bailon wrote: >>> The USB PHY is able to operate in OTG, host or peripheral. >>> Some board may be wired to work act only as host or peripheral. >>> In such c

Re: [PATCH v3 5/5] usb: musb: da8xx: Remove set_mode callback

2016-11-03 Thread Bin Liu
On Thu, Nov 03, 2016 at 12:18:53PM -0500, David Lechner wrote: > On 11/03/2016 10:26 AM, Alexandre Bailon wrote: > >The USB PHY is able to operate in OTG, host or peripheral. > >Some board may be wired to work act only as host or peripheral. > >In such case, the dr_mode property of controller must

Re: [PATCH v3 5/5] usb: musb: da8xx: Remove set_mode callback

2016-11-03 Thread David Lechner
On 11/03/2016 10:26 AM, Alexandre Bailon wrote: The USB PHY is able to operate in OTG, host or peripheral. Some board may be wired to work act only as host or peripheral. In such case, the dr_mode property of controller must be set to host or peripheral. But doing that will also configure the PHY

[PATCH v3 5/5] usb: musb: da8xx: Remove set_mode callback

2016-11-03 Thread Alexandre Bailon
The USB PHY is able to operate in OTG, host or peripheral. Some board may be wired to work act only as host or peripheral. In such case, the dr_mode property of controller must be set to host or peripheral. But doing that will also configure the PHY in host or peripheral mode whereas OTG is able to