Hi, On Tuesday 20 June 2017 07:14 PM, Lukasz Majewski wrote: > Hi Marek, Vignesh, [...] >>> >>> All gadget drivers like ether.c or f_mass_storage.c call >>> usb_gadget_handle_interrupts() just passing the index of the USB >>> instance. This does not help at all in dm case. What we would need >>> is usb_gadget_handle_interrupts() to provide at least the usb_gadget >>> instance as parameter from which we could derive controller specific >>> structure using container_of(). And then, we could call the SoC >>> specific isr callback. >>> This would require modifying all gadget driver like ether.c to call >>> a different function instead of usb_gadget_handle_interrupts() when >>> DM_USB is used. >> >> This is something to consult with Lukasz then. > > And it seems that we are heading to adding "gadget" infrastructure to > DM..... >
Yes, U-Boot is moving to DM for good and this has cascading effect. I was actually trying to enable DM_ETH on some TI platforms which forced me to move USB_ETH to DM as well and therefore seems like USB gadget framework needs tweaks to adapt to DM... > I will do my best to provide some ideas for this task..... > Thanks! -- Regards Vignesh _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot