I've been playing around with a AT91RM9200-based board for couple of
days and I'm stuck with some problems regarding at91_udc and gadgetfs.

First of all, at91_udc activates the pullup in ..._register_driver(), so
even if I don't load any gadget module, the host starts enumeration.
Obviously no device will be detected. I've looked at other drivers and
omap_udc for example checks if there's a driver loaded before enabling
the pullup on VBUS change. The same could be done with at91_udc. I'd be
happy to provide a patch, after I'll have tested it thoroughly, but I'd
like to know first if such change won't break some expected behaviour.

The second problem is related with the previous one and gadgetfs. 
handle_setup() in at91_udc.c calls udc->driver->setup() without checking
if udc->driver is not NULL. If I load gadgetfs and mount /dev/gadget
and plug in the USB cable _before_ loading the user-space driver, I get
a kernel panic, because udc->driver is still empty. The patch is
trivial, but I don't know against which kernel tree should the patch be.
Is 2.6.17 okay? Or maybe the latest 2.6.18-rc?

Regards,
Wojtek

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to