Alan Stern wrote:
On Wed, 30 Jul 2003, David Brownell wrote:

I have a patch, not yet submitted, that makes the gadget controller
appear as a sysfs class -- exactly like Greg's "usb_host" class,
with the debug files sitting there.  It's done for net2280, and
likely the pxa2xx_udc will choose the same answer ... though I may
first rip out the class support, it doesn't seem useful.

The gadget itself is a child of the controller, just like the root
hub is (on the host side).  You can certainly assume the gadget
will appear in sysfs.  But it won't be accessible to the gadget
driver until after binding, which means it can't be used for any
information that's needed to initialize any device configurations.

It'd be more useful to you maybe if gadget _drivers_ were in sysfs.
But that can't be done without a sysfs "bus", it seems.


That's sort of what I had in mind. But you must already have a bus available -- how is the USB controller connected? With a net2280, for instance, presumably it's a device on the PCI bus. The gadget could be a child of the controller, and that would give you a place for the driver.

But it wouldn't be a PCI driver. For the gadget drivers to show up in sysfs, they'd need to appear on a "gadget" bus. That's a bus for which there will only ever be a single device ... which in the case of a net2280 will be a child of the PCI device node.

It's no problem having the gadget device appear; that doesn't need a bus.

- Dave





-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to