RFC Port of MUSB gadget driver from Linux
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest0 of 5 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 5 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [U-Boot] [RFC PATCH 0/5] Port of MUSB gadget driver from Linux
Dear Ilya Yanok,
Quoted 14 lines
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.
Quoted 8 lines
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?
Quoted 6 lines
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