Re: [PATCH] move eject code from zd1211rw to usb-storage

Matthew Dharm
2009-12-17T18:22:31Z

[-- Attachment #1: Type: text/plain, Size: 1074 bytes --]

On Thu, Dec 17, 2009 at 02:02:41PM +0100, Oliver Neukum wrote:
> Am Mittwoch, 16. Dezember 2009 20:52:58 schrieb Matthew Dharm:
> > > > If this is the case, then the only reasonable answer to is to push the
> > > > modeswitch code for both into udev and out of the kernel. It will take
> > >
> > > you mean usb_modeswitch, not udev actually.
> >
> > That is correct; I had mis-typed. Tho, the actual implementation is udev
> > calling usb_modeswitch and/or eject.
>
> Can storage tell the devices apart so that it knows which ones to leave
> to the kernel solution and which devices to accept so that udev can
> issue an eject command?

Maybe. Depends on how identical the devices are. We would need to compare
descriptors between the two devices.

Matt

--
Matthew Dharm Home: mdharm-usb@one-eyed-alien.net
Maintainer, Linux USB Mass Storage Driver

E: You run this ship with Windows?! YOU IDIOT!
L: Give me a break, it came bundled with the computer!
-- ESR and Lan Solaris
User Friendly, 12/8/1998

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]