Re: [PATCH v2 2/3] usb: ohci-at91: Enable OHCI functionality and register into DM

2023-01-03 Thread Marek Vasut
On 1/3/23 15:30, Sergiu Moga wrote: [...] +static int ohci_atmel_probe(struct udevice *dev) +{ + struct at91_usbh_data *pdata = dev_get_plat(dev); + struct ohci_at91_priv *ohci_at91 = dev_get_priv(dev); + u32 i; + int ret; + stru

[PATCH v2 2/3] usb: ohci-at91: Enable OHCI functionality and register into DM

2023-01-03 Thread Sergiu Moga
Register the OHCI driver into DM by properly initializing the required clocks and pins required by the DT node of OHCI. In order for the VBUS to stay enabled, a `child_pre_probe` method has been added to overcome the DM core disabling it in `usb_scan_device`: when the generic `device_probe` method