RFC MXS: Add i.MX28 USB Host driver
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest0 of 8 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 8 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 [RFC PATCH 0/8] MXS: Add i.MX28 USB Host driver
Dear Sascha Hauer,
Quoted 10 lines
Hi Marek,
Quoted 2 lines · Marek Vasut
This patchset introduces the USB Host driver for i.MX28 CPU, utilising the generic USB PHY infrastructure.
Your patches won't work when more than one USB port is enabled because of the singular usb transceiver present in the kernel. That of course is not your fault. I think Heikki (Added to Cc) is working on this issue, but I don't know the status here.
All right, I'll let Heikki hack on that. I'm not sure if we have any mx28 based device with multiple USB ports in kernel. Do we ?
Quoted 2 lines
Another problem is that what you are doing does not integrate at all with otg.
Well, how should this be done to integrate with OTG then?
Quoted 10 lines
I don't ask you to implement otg support because you are likely not interested in this, but since you are adding a new ehci glue driver anyway I suggest another approach:
Put a driver under
drivers/usb/otgwhich:- matches a 'imx-usb' device
- gets/enables all clocks needed for USB
- finds the transceiver
- registers a ehci device
So the PHY actually registers the EHCI driver (plat_bus->phy->ehci)? That's slightly weird, don't you think?
Quoted 7 lines
Future additions would be:
- Put a USB_MODE_HOST/DEVICE flag into
platform_data, and register a host or gadget driver depending on this flag
- Add aUSB_MODE_OTGflag toplatform_dataand implement otg in this driver (or use whatever infrastructure present in the kernel then)
Ok, this sounds reasonable.
Quoted 2 lines
This is similar to what msm does. This way we have the clocks and phys handled where they are needed. We may use this code on i.MX later.
Ok, I'll check the MSM stuff.
Quoted 3 lines
We did this wrong on i.MX (and several other architectures) and getting this right will be hard work. No need to introduce the same flaws again with a new architecture.
Ack, thanks for pointers.
Quoted 1 line
Sascha
Best regards,
Marek Vasut