From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <1bc4a83f021e1f3542be7e8c1d0233e4@plan9.escet.urjc.es> To: 9fans@cse.psu.edu Subject: Re: [9fans] USB developments From: Fco.J.Ballesteros In-Reply-To: <20040115104258.A25947@cackle.proxima.alt.za> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Thu, 15 Jan 2004 10:13:10 +0100 Topicbox-Message-UUID: b8eb41ea-eacc-11e9-9e20-41e7f4b1d025 > I think we'll need a database of those anyway, could we use someone's > hospitality and list the usb/usbd debug output and whoever may have > an interest in that particular entry (a little like /lib/vgadb) on > a globally accessible server? Sure. I'm willing to open accounts here, although perhaps sources is a better place to do that. > We'll also probably need a /lib/vgadb definition file for all the > quirks that USB devices seem to suffer from (I have a document that > covers foibles in CBI devices, a google find I'm sure I can repeat). After taking a look to it all, I ended up thinking that the scheme should be like: #U, does mostly what it does, but stays appart of csp definitions. usbd: simply configures the device and reads a usbdb file to learn which program is to be used for each csp. usbd: starts those programs when a new csp is noticed. drivers: are started always on a particular target, and work just for a particular device. All of it started at boot time. For example, we have to keep an ugly sleep in boot.c to give usbd some time before usbhid starts. It would be better the other way. > > I would like to set up a special interest group, if that's OK with > anyone else who's interested, but not really a separate mailing > list unless the traffic starts swamping other interests here. Yep. Better keep on using 9fans. There's no need for a separate list. > Nemo, you're much more familiar with the kernel code, could you > look into the bit I suggested, where a USB utility merges a kernel > function (ATA is my immediate interest) with the USB device, > analogously to the ip/ipconfig does? I'll be thrilled to implement > the ideas, if you can set me on the right track. > I'd just modify usbd to start the driver when a device is first seen, then the driver can be responsible for killing himself, should the device go away. If the device comes back again, usbd could start the device again. Isn't that enough?