On Thu, 9 Jun 2011, Felipe Balbi wrote: > Hi, > > > > Alan Stern wrote: > > > > How do you deal with the fact that after this change, > > > > > > > > modprobe gadget_driver > > > > > > > > will fail if the UDC driver isn't already loaded? This could break > > > > some userspace scripts. > > > > > > The driver should be loaded by udev. There could be some breakage if > > I like the idea of depending on udev. I remember I had a discussion with > Greg before and he told me we should rely on udev for these things. Yes, that makes sense. In fact, is there any reason why this shouldn't be working already? My PC has a net2280 card, but I don't recall seeing the driver automatically loaded when I boot a kernel that has it configured. Maybe that's my own fault, though... I don't enable the net2280 driver very often. > I mean, it's the same on your PC right ? if you drop udev, ehci/ohci > won't load automatically and you'll have host drivers binding with > usbcore and no ehci/ohci loaded. UDC/gadget drivers are a little different from host/device drivers. In general, each gadget will want to be bound to a specific UDC, whereas a device driver usually doesn't care which bus a device is on. Eventually we'll have to figure out how to arrange this. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html