Re: [patch 2.6.24-rc3] usb peripheral controller driver oops avoidance

Alan Stern <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Mon, 19 Nov 2007, David Brownell wrote:

> > net2280 and dummy_hcd are different from the other device controllers 
> 
> Maybe dummy_hcd is, but net2280 doesn't do that.  In fact it
> already has that dev.driver = NULL line, which is why it did
> not get added.

Sorry, my mistake.

> > in that they register the gadget driver with the driver core.  Hence 
> > they don't need this extra action when unregistering a gadget driver.
> 
> ISTR trying to make net2280 bind to the driver core way way
> way back when, but the driver core complained about it since
> it demanded that there be some (pointless singleton) bus
> associated with the driver, else it'd hijack me to oopsville.

It would be appropriate to use the platform bus.  In fact, I have 
thought for some time that struct gadget should contain an embedded 
struct platform_device instead of an embedded struct device.  It would 
be a nuisance to change everything over now, though.

> OK, I'll take the dummy_hcd bit out -- but add a comment to
> highlight this unique behavior.

Thanks.

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.