On Tue, 18 Jul 2006, Matthew Dharm wrote: > On Tue, Jul 18, 2006 at 05:01:32PM +0100, Daniel Drake wrote: > > Alan Stern wrote: > > >Wouldn't it be easy enough to write a user program to send the necessary > > >command URB via usbfs? > > That seems more reasonable. > > > That aside, it's not something that really makes sense to do in > > userspace - the zd1211rw driver doesn't require any zd1211-specific > > software, and it wouldn't be realistic to do something like this inside > > iwconfig. The quirk is simple and it allows the kernel to actually > > provide a wireless device after a wireless adapter is plugged in. I'm > > happy to consider alternative approaches though - perhaps we could just > > get usb-storage to ignore it, and have another standalone driver perform > > the quirk or something like that? > > I think that is a better approach than your patch. Perhaps the zd1211rw > driver could know the VID/PID of the fake CD-ROM to attach to it and send > the fake eject command. The usb-storage (and probably ub) would just have > to ignore the device.
You might distribute a udev script that would recognize the ZD1211 and run a user program to unbind it (in case it's already bound to usb-storage or ub) and then send the START-STOP UNIT command. This would allow the device to be configured automatically without modifying any existing drivers. Alan Stern ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel