
On 7/21/23 05:26, Lim, Jit Loon wrote:
Hi,
Linux: (__dwc3_of_simple_teardown) https://elixir.bootlin.com/linux/latest/source/drivers/usb/dwc3/dwc3-o f-simple.c#L98 U-Boot: (xhci_dwc3_remove) https://elixir.bootlin.com/u-boot/latest/source/drivers/usb/host/xhci- dwc3.c#L227
So we believed that we can't directly pickup all Linux kernel dwc3 patches
and merge to U-Boot.
If you were to sync the driver from Linux to U-Boot, then the same sequence as Linux uses would be automatically used too, right ?
Sorry for the abysmal delay in my reply.
Are we saying that we shall port/use Linux driver in U-Boot and abandon the existing USB host driver in U-Boot?
No, the existing driver in U-Boot is a port of the Linux driver, it is just outdated. I am saying, just pick the missing patches from Linux and add them to U-Boot, so the two drivers are in sync.