From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Thu, 9 Aug 2012 21:15:16 +0200 Subject: [U-Boot] [RFC PATCH 0/5] Port of MUSB gadget driver from Linux In-Reply-To: <1344460381-22362-1-git-send-email-ilya.yanok@cogentembedded.com> References: <1344460381-22362-1-git-send-email-ilya.yanok@cogentembedded.com> Message-ID: <201208092115.16264.marek.vasut@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Ilya Yanok, > Current MUSB driver in U-Boot uses old UDC API while new gagdet > client drivers need new gadget API. Also current MUSB driver has > some significant limitations (like inability to handle tx for > endpoints other than ep0). So I think port of new Linux driver is > desirable. > > This is initial port, performed mostly by putting DM, host and OTG > code under #ifndef __UBOOT__ clauses. My intention was to be as > close as possible to the original to ease of possible resyncs. > Some warnings are suppressed via CFLAGS. There are some style > problems but I'm not touching them for now for the above mentioned > reason. There is obviously some room for optimisation, some > structure fields are unused as well as (probably) some code. > > This is not a replacement for existing MUSB driver (at least for > now), cause host mode is not supported and there are still consumers > of the old interface. > > Host mode, OTG and DMA are not supported. The only ported driver > is for TI AM33xx, but others should be easy to port too. > > Tested it on AM335x EVM and BeagleBone with CDC Ethernet gadget. I hate to say it ... but given that this will cause duplication of code, I'm somehow inclined to push you to do a complete replacement of the old musb code, remove it and add this. Tom, what do you think? > Ilya Yanok (5): > linux/usb/ch9.h: update with the version from Linux tree > musb-new: port of Linux musb gadget driver > musb-new: dsps backend driver > am33xx: init OTG hardware and new musb gadget driver > am335x_evm: enable musb gadget on port 0 Best regards, Marek Vasut