On Fri, 2009-12-11 at 16:01 +0100, Stefan Seyfried wrote: > On Fri, 11 Dec 2009 09:42:22 -0500 > "John W. Linville" <linville@xxxxxxxxxxxxx> wrote: > > > On Fri, Dec 11, 2009 at 01:36:03PM +0100, Stefan Seyfried wrote: > > > Is anyhting wrong with those? > > > Are those too trivial and "USB only" and thus better suited for direct > > > submission to Greg? > > > > Trivial or not, they are wireless LAN patches and they go here. > > That's what i guessed, too. I was just deafened by the silence ;) > > > It strikes me as strange that you are hitting two drivers to support > > one device. Are you saying that your ar9170usb has the goofy storage > > device thing using the same USB IDs that the zd1211rw devices like that > > used? I suppose that makes some sense given the shared heritage... > > Yes, exactly. And a different configuration (different endpoint), > that's why I had to touch the zd1211rw driver, even though it is > otherwise totally unrelated to the device. > > The method with the reverse loop counting down from ep1 to ep0 was > chosen to be as sure as possible to not break the other devices that > are already working. > > > We did just have a long (and possibly unresolved thread) about > > this type of practice (i.e. eject in the driver) not too long ago. > > But since zd1211rw is already doing this, maybe this patch is > > acceptable...? > > Maybe a separate driver that is ejecting all those fake storage > devices, be it 3G modems or wireless LAN might be a good idea, but I am > probably not the right one to code that ;) > Or maybe we decide that userspace should handle it for all devices... If the device actually changes USB IDs after the switch, then the right place to put this code is probably unusual_devs instead of touching /two/ drivers. I'd say extract the code from zd1211rw and put the new code that works for both zd1211rw/ar9170 into unusual_devs. In fact, people might be happier if you posted two patches, (1) move the code to unusual_devs unchanged, and (2) fix up the moved code to support the new device's behavior. Dan -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html