From: Przemek K. <prz...@gm...> - 2007-09-26 20:16:11
|
On 9/26/07, Oleg Verych (Gmane) <!gmane?ole...@fl...> wrote: > The main problem is linux usb stack, as it is today, after 3 rewrites. > Design prohibits driver to change usb configuration of the device. This > is because usb driver in linux is not driver of the usb hardware, but > usb-interface (as in usb spec.) driver. Changing configuration of the > device, cuts trunk of the "driver", and everything falls down. > > I don't understand the USB stack design all that well, so correct me if I misunderstand your point. You seem to be saying that after a reconfiguration, the original USB interface disappears, and so the kernel driver loses access to the hardware. However, for USB this should not be a problem---it's the same as if we unplugged the old device and plugged a new one. The driver for the new device should load, and start talking to the hardware on the new interface. At any given steady state point, there should be a driver for each USB interface the hardware presents. How is that bad? |