RE: [PATCH v7 10/14] usb: otg: add hcd companion support
From: Alan Stern <stern@rowland.harvard.edu>
Date: 2016-05-12 18:16:41
Also in:
linux-omap, lkml
From: Alan Stern <stern@rowland.harvard.edu>
Date: 2016-05-12 18:16:41
Also in:
linux-omap, lkml
On Thu, 12 May 2016, Yoshihiro Shimoda wrote:
quoted
quoted
Alan, does USB core even know which EHCI and OHCI are linked to the same port or the handoff is software transparent?The core knows. It doesn't use the information for a whole lot of things, but it does use it in a couple of places. Search for "companion" in core/hcd-pci.c and you'll see.Thank you for the information. I didn't know this code. If my understanding is correct, the core/hcd-pci.c code will not be used by non-PCI devices. In other words, nobody sets "hcd->self.hs_companion" if we use such a device.
That's right.
So, I will try to add such a code if needed.
The main thing to watch out for is during system resume. The EHCI controller must not be resumed until all of its companion controllers have been resumed. Alan Stern