bo-yang / plan9front

Automatically exported from code.google.com/p/plan9front
0 stars 0 forks source link

new usb stuff is suboptimal #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
the new usb approach is crap. just linking all drivers
into usbd and forcing them to use this braindead usbfs lib9p
clone is NOT the way todo it.

the system was better before the new usbd, it was just lacking
hotplug...

the way it really should work is this:

- kernel provides basic usb driver/endpoint abstraction (done!)

- there is a small library that helps with common usb related tasks
  like parsing descriptors or enumerating endpoints and devices.
  (we where there once!)

- you just write a program or a fileserver that uses this usb library
  and the usual plan9 libs for the rest. (there too)

- the usb hub driver should provides a "event" file that can be read
  by a simple (and customizable) rc script that returns a easily
  parsable text description of the device plugged in, and that script
  has a big switch statement where is starts the appropriate program
  for the device. (not there)

- that "event" file should be able to handle multiple readers so some
  usb programs can handle ther own plugging events.

Original issue reported on code.google.com by cinap_le...@felloff.net on 20 May 2011 at 5:06

GoogleCodeExporter commented 9 years ago
ok, its not all crap... but still, usbfs is overkill

Original comment by cinap_le...@felloff.net on 20 May 2011 at 7:29

GoogleCodeExporter commented 9 years ago

Original comment by cinap_le...@felloff.net on 20 May 2011 at 7:29

GoogleCodeExporter commented 9 years ago

Original comment by a...@phicode.de on 26 May 2011 at 5:21

GoogleCodeExporter commented 9 years ago

Original comment by a...@phicode.de on 26 May 2011 at 5:24

GoogleCodeExporter commented 9 years ago

Original comment by a...@phicode.de on 18 Jun 2011 at 9:11

GoogleCodeExporter commented 9 years ago

Original comment by a...@phicode.de on 23 Jun 2011 at 5:48

GoogleCodeExporter commented 9 years ago

Original comment by a...@phicode.de on 18 Jul 2011 at 9:03

GoogleCodeExporter commented 9 years ago
nusb is there now.

Original comment by cinap_le...@felloff.net on 1 Aug 2011 at 1:22