Re: [PATCH v3 2/4] phy-sun4i-usb: Add support for peripheral-only mode

2016-06-17 Thread Kishon Vijay Abraham I
On Sunday 05 June 2016 08:29 PM, Hans de Goede wrote: > Use the new of_usb_get_dr_mode_by_phy() function to get the dr_mode > from the musb controller node instead of assuming that having an id_det > gpio means otg mode, and not having one means host mode. > > Implement peripheral-only mode by a

[PATCH v3 2/4] phy-sun4i-usb: Add support for peripheral-only mode

2016-06-05 Thread Hans de Goede
Use the new of_usb_get_dr_mode_by_phy() function to get the dr_mode from the musb controller node instead of assuming that having an id_det gpio means otg mode, and not having one means host mode. Implement peripheral-only mode by adding a sun4i_usb_phy0_get_id_det helper which looks at the dr_mod