9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Fco.J.Ballesteros <nemo@plan9.escet.urjc.es>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] USB developments
Date: Thu, 15 Jan 2004 10:13:10 +0100	[thread overview]
Message-ID: <1bc4a83f021e1f3542be7e8c1d0233e4@plan9.escet.urjc.es> (raw)
In-Reply-To: <20040115104258.A25947@cackle.proxima.alt.za>

> 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?



  reply	other threads:[~2004-01-15  9:13 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-15  6:16 Lucio De Re
2004-01-15  8:23 ` Fco.J.Ballesteros
2004-01-15  8:42   ` Lucio De Re
2004-01-15  9:13     ` Fco.J.Ballesteros [this message]
2004-01-15  9:17       ` Fco.J.Ballesteros
2004-01-15 10:05       ` Lucio De Re
2004-01-15 10:23         ` Fco.J.Ballesteros
2004-01-15 13:02         ` Lucio De Re
2004-01-15 14:05           ` Richard Miller
2004-01-15 14:44             ` Lucio De Re
2004-01-15 14:56               ` Fco.J.Ballesteros
2004-01-15 15:20                 ` Lucio De Re
2004-01-15 15:41                   ` Fco.J.Ballesteros
2004-01-15 14:53             ` Fco.J.Ballesteros
2004-01-15 21:25             ` Dan Cross
2004-01-15 10:30       ` usbd - revision (Was: [9fans] USB developments) Lucio De Re
2004-01-15 10:46         ` Fco.J.Ballesteros
2004-01-15 11:47           ` Lucio De Re
2004-01-15 12:11             ` Charles Forsyth
2004-01-15 12:43               ` Lucio De Re
2004-01-15 18:01                 ` C H Forsyth
2004-01-15 19:10                   ` Lucio De Re
2004-01-15 20:24                     ` Charles Forsyth
2004-01-15 21:00                       ` Micah Stetson
2004-01-16  6:18                       ` Lucio De Re
2004-01-16  7:34                     ` Fco.J.Ballesteros
2004-01-16  7:38                     ` Fco.J.Ballesteros
2004-01-16  7:59                       ` Lucio De Re
2004-01-16 10:23                       ` Bruce Ellis
2004-01-16 10:32                         ` Lucio De Re
2004-01-16 10:39                           ` boyd, rounin
2004-01-16 10:45                           ` Richard Miller
2004-01-16 11:41                             ` Bruce Ellis
2004-01-16 11:50                               ` rog
2004-01-15  9:07   ` [9fans] USB developments Charles Forsyth
2004-01-15  9:18     ` Fco.J.Ballesteros
2004-01-15 10:39     ` Lucio De Re
2004-01-15 10:48       ` Richard Miller
2004-01-15  9:10 ` Richard Miller
2004-01-15  9:14   ` Fco.J.Ballesteros
2004-01-16  9:59 ` boyd, rounin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1bc4a83f021e1f3542be7e8c1d0233e4@plan9.escet.urjc.es \
    --to=nemo@plan9.escet.urjc.es \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).