On Thu, 14 Feb 2008, Brian Tuchten wrote: > Thanks Phil, > > >Your patch disables the USB Storage card all together in order to get access > >to the modem. We have other such hacks in the tree, but is there no way to > >simply "eject" the USB Storage device so we don't have to actually disable > >it for all users and they can choose which component of the device they'd > >like to use? > > We are actually using the 2.6.17.7 kernel ( old I know ) but we found a way > from some other GPL code > in the "zy" driver to actually eject the device. I don't know if you want to > work it into > ~/drivers/usb/storage/usb.c or not. The way we are ejecting is actually not > propor since it will > eject _any_ unusual device, but we don't look for any other unusual devices > in our embedded > platform. Possibly a better way to go would to have a define to be used in > unusual_devs.h called > US_FL_EJECT_DEVICE to eject only certain devices. I know the patch is > crappy, but if I was using a > more recent kernel, I would have written it better. > > The Novatel X950D modem comes with a virtual CD, which has MAC OS/Wind*ws > installer. So it is > useless to Linux. But until the virtual CD is ejected, you can't access the > modem ( times out after > about 5 minutes, which is too long to wait ).
Why don't you just write a udev rule to run the "eject" program when it sees the Novatel device has been plugged in? Alan Stern - To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html