mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-12-16 15:02:16 +01:00
dwc3_generic: do not probe the USB device driver when it's bound
The driver will be probed when usb_gadget_initialize() is called. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
This commit is contained in:
parent
ff8d755834
commit
20bebd8666
@ -70,21 +70,14 @@ static int dwc3_generic_peripheral_ofdata_to_platdata(struct udevice *dev)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dwc3_generic_peripheral_bind(struct udevice *dev)
|
|
||||||
{
|
|
||||||
return device_probe(dev);
|
|
||||||
}
|
|
||||||
|
|
||||||
U_BOOT_DRIVER(dwc3_generic_peripheral) = {
|
U_BOOT_DRIVER(dwc3_generic_peripheral) = {
|
||||||
.name = "dwc3-generic-peripheral",
|
.name = "dwc3-generic-peripheral",
|
||||||
.id = UCLASS_USB_DEV_GENERIC,
|
.id = UCLASS_USB_DEV_GENERIC,
|
||||||
.ofdata_to_platdata = dwc3_generic_peripheral_ofdata_to_platdata,
|
.ofdata_to_platdata = dwc3_generic_peripheral_ofdata_to_platdata,
|
||||||
.probe = dwc3_generic_peripheral_probe,
|
.probe = dwc3_generic_peripheral_probe,
|
||||||
.remove = dwc3_generic_peripheral_remove,
|
.remove = dwc3_generic_peripheral_remove,
|
||||||
.bind = dwc3_generic_peripheral_bind,
|
|
||||||
.platdata_auto_alloc_size = sizeof(struct usb_platdata),
|
.platdata_auto_alloc_size = sizeof(struct usb_platdata),
|
||||||
.priv_auto_alloc_size = sizeof(struct dwc3),
|
.priv_auto_alloc_size = sizeof(struct dwc3),
|
||||||
.flags = DM_FLAG_ALLOC_PRIV_DMA,
|
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user