lkml.org 
[lkml]   [2016]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRE: [PATCH v7 10/14] usb: otg: add hcd companion support
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

\
 
 \ /
  Last update: 2016-05-12 20:41    [W:0.108 / U:2.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site