From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Thu, 22 Aug 2013 21:37:16 +0200 Subject: [U-Boot] [PATCH] usb: new board-specific USB init interface In-Reply-To: <5215E8A4.1030304@samsung.com> References: <1375786242-11734-1-git-send-email-m.zalega@samsung.com> <201308211508.01104.marex@denx.de> <5215E8A4.1030304@samsung.com> Message-ID: <201308222137.16834.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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