RE: [PATCH v7 10/14] usb: otg: add hcd companion support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 12 May 2016, Yoshihiro Shimoda wrote:

> > > 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

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux