musb-new: ti-musb: Handle usb dual-role feature as peripheral
This prevents from getting some 'No USB device found' error, in usb_ether_init() function for instance. Signed-off-by: Julien Panis <jpanis@baylibre.com>
This commit is contained in:
parent
64c0d9e010
commit
72ee4c306b
|
|
@ -302,6 +302,7 @@ static int ti_musb_wrapper_bind(struct udevice *parent)
|
|||
dr_mode = usb_get_dr_mode(node);
|
||||
switch (dr_mode) {
|
||||
case USB_DR_MODE_PERIPHERAL:
|
||||
case USB_DR_MODE_OTG:
|
||||
/* Bind MUSB device */
|
||||
ret = device_bind_driver_to_node(parent,
|
||||
"ti-musb-peripheral",
|
||||
|
|
|
|||
Loading…
Reference in New Issue