From: Greg KH <greg@kroah.com>
To: linux-usb-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Cc: Patrick Mochel <mochel@osdl.org>
Subject: [RFC] USB driver conversion to "struct device_driver" for 2.5.34
Date: Wed, 11 Sep 2002 16:15:34 -0700 [thread overview]
Message-ID: <20020911231533.GA29887@kroah.com> (raw)
Hi all,
I've made an updated version of the patch that converts the USB core and
drivers to use struct device_driver. It is now against 2.5.34 and can
be found at:
http://www.kernel.org/pub/linux/kernel/people/gregkh/usb/2.5/usb-device_driver-2.5.34.patch
Here's a small list of things different from the previous version of
this patch:
- fix oops when usb device is removed from the system.
- many more USB drivers converted to the new code.
This version is stable for me (am typing with it right now) and I'm
almost ready to sent this in for the main kernel tree, so I'd recommend
people getting this and testing it out.
Here's a list of things left to do:
- convert remaining drivers to the proper code (basically
/drivers/usb/misc and /drivers/usb/net, and USB drivers living
outside of drivers/usb)
- clean up the "grab an interface" logic that usbfs and the
usb-storage code does.
For the curious people, here is what an edited version of driverfs looks
like on my machine with this patch (I've cut out all of the non-USB
portions of the tree). The USB busses now have a simpler name, along
with the different devices. I have a UHCI and EHCI card in the machine,
with a few hubs, 2 usb-serial devices, and a usb trackball attached.
Comments appreciated.
thanks,
greg k-h
|-- bus
| `-- usb
| |-- devices
| | |-- 1-0:0 -> ../../../root/pci0/00:1f.2/usb1/1-0:0
| | |-- 1-1 -> ../../../root/pci0/00:1f.2/usb1/1-1
| | |-- 1-1.2 -> ../../../root/pci0/00:1f.2/usb1/1-1/1-1.2
| | |-- 1-1.2:0 -> ../../../root/pci0/00:1f.2/usb1/1-1/1-1.2/1-1.2:0
| | |-- 1-1:0 -> ../../../root/pci0/00:1f.2/usb1/1-1/1-1:0
| | |-- 2-0:0 -> ../../../root/pci0/00:1e.0/01:0d.0/usb2/2-0:0
| | |-- 3-0:0 -> ../../../root/pci0/00:1e.0/01:0d.1/usb3/3-0:0
| | |-- 3-1 -> ../../../root/pci0/00:1e.0/01:0d.1/usb3/3-1
| | |-- 3-1.3 -> ../../../root/pci0/00:1e.0/01:0d.1/usb3/3-1/3-1.3
| | |-- 3-1.3:0 -> ../../../root/pci0/00:1e.0/01:0d.1/usb3/3-1/3-1.3/3-1.3:0
| | |-- 3-1:0 -> ../../../root/pci0/00:1e.0/01:0d.1/usb3/3-1/3-1:0
| | |-- 4-0:0 -> ../../../root/pci0/00:1e.0/01:0d.2/usb4/4-0:0
| | |-- usb1 -> ../../../root/pci0/00:1f.2/usb1
| | |-- usb2 -> ../../../root/pci0/00:1e.0/01:0d.0/usb2
| | |-- usb3 -> ../../../root/pci0/00:1e.0/01:0d.1/usb3
| | `-- usb4 -> ../../../root/pci0/00:1e.0/01:0d.2/usb4
| `-- drivers
| |-- hid
| |-- hiddev
| |-- hub
| |-- pl2303
| |-- serial
| `-- usbfs
`-- root
|-- pci0
| |-- 00:1e.0
| | |-- 01:0d.0
| | | |-- async
| | | |-- irq
| | | |-- name
| | | |-- periodic
| | | |-- pools
| | | |-- power
| | | |-- resource
| | | `-- usb2
| | | |-- 2-0:0
| | | | |-- altsetting
| | | | |-- name
| | | | `-- power
| | | |-- configuration
| | | |-- manufacturer
| | | |-- name
| | | |-- power
| | | |-- product
| | | `-- serial
| | |-- 01:0d.1
| | | |-- async
| | | |-- irq
| | | |-- name
| | | |-- periodic
| | | |-- pools
| | | |-- power
| | | |-- resource
| | | `-- usb3
| | | |-- 3-0:0
| | | | |-- altsetting
| | | | |-- name
| | | | `-- power
| | | |-- 3-1
| | | | |-- 3-1.3
| | | | | |-- 3-1.3:0
| | | | | | |-- altsetting
| | | | | | |-- name
| | | | | | `-- power
| | | | | |-- configuration
| | | | | |-- name
| | | | | `-- power
| | | | |-- 3-1:0
| | | | | |-- altsetting
| | | | | |-- name
| | | | | `-- power
| | | | |-- configuration
| | | | |-- name
| | | | `-- power
| | | |-- configuration
| | | |-- manufacturer
| | | |-- name
| | | |-- power
| | | |-- product
| | | `-- serial
| | |-- 01:0d.2
| | | |-- async
| | | |-- irq
| | | |-- name
| | | |-- periodic
| | | |-- pools
| | | |-- power
| | | |-- registers
| | | |-- resource
| | | `-- usb4
| | | |-- 4-0:0
| | | | |-- altsetting
| | | | |-- name
| | | | `-- power
| | | |-- configuration
| | | |-- manufacturer
| | | |-- name
| | | |-- power
| | | |-- product
| | | `-- serial
| | |-- irq
| | |-- name
| | |-- power
| | `-- resource
| |-- 00:1f.2
| | |-- irq
| | |-- name
| | |-- pools
| | |-- power
| | |-- resource
| | `-- usb1
| | |-- 1-0:0
| | | |-- altsetting
| | | |-- name
| | | `-- power
| | |-- 1-1
| | | |-- 1-1.2
| | | | |-- 1-1.2:0
| | | | | |-- altsetting
| | | | | |-- name
| | | | | `-- power
| | | | |-- configuration
| | | | |-- manufacturer
| | | | |-- name
| | | | |-- power
| | | | `-- product
| | | |-- 1-1:0
| | | | |-- altsetting
| | | | |-- name
| | | | `-- power
| | | |-- configuration
| | | |-- name
| | | `-- power
| | |-- configuration
| | |-- manufacturer
| | |-- name
| | |-- power
| | |-- product
| | `-- serial
reply other threads:[~2002-09-11 23:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20020911231533.GA29887@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
--cc=mochel@osdl.org \
/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