[U-Boot] [PATCH] usb: new board-specific USB init interface

Marek Vasut
2013-08-22T19:37:16Z

Dear Mateusz Zalega,

> >>> The EHCI supports multi-bus thing (passing the controller *), will this
> >>> be viable to pass in this case too, so the busses can be inited
> >>> selectively in host/gadget functions?
> >>
> >> Hello, Marek.
> >> I need more context. Could you show me the part of code in which you'd
> >> like to pass/use additional arguments?
> >
> > Please grep the 'controller' pointer that is passed to various functions
> > at least in the EHCI case. It would be nice to pass that to the init
> > functions too, no?
>
> It may be possible, but note that board_usb_init() is not used solely by
> EHCI code (please grep or cscope function calls). In order to do that,
> we would need to devise some generic interface.
>
> Is it worth the time? Are there targets that would benefit from this
> change?

In case you want to separatelly init one port for USB peripheral mode and one
for Host mode, yes.

Best regards,
Marek Vasut