On Mon, 20 Apr 2015, Ramneek Mehresh wrote:

> > > This is the wrong way to connect platform-private data with the
> > > ehci_hcd structure.  The right way is to use an ehci_driver_overrides
> > > structure, like in ehci-omap.c and quite a few other EHCI platform 
> > > drivers.
> > >
> >
> Hi Alan, I checked again...we are not connecting ehci_hcd structure here with 
> platform-private data. We are just having a wrapper on it to have some 
> additional 
> Information that can be used for ehci fsl driver. This additional information 
> is 
> private to ehci fsl driver, and is mainly used for otg driver functionality 
> and to
> save/restore fsl regsiters during deep-sleep 

It doesn't matter -- private data is private data, whether it is
platform-private or driver-private.

Either way, you can't wrap ehci-hcd in anything.  The private data has
to added to the end, the way ehci-omap.c does it.

Alan Stern

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

Reply via email to