Re: [PATCH] driverfs support for USB - take 2

Dave Jones (davej@suse.de)
Wed, 30 Jan 2002 02:03:12 +0100


On Tue, Jan 29, 2002 at 04:24:18PM -0800, Greg KH wrote:
> Hi,
>
> Well after determining that the last version of this patch doesn't show
> the USB tree properly, here's another patch against 2.5.3-pre6 that
> fixes this issue.
>
> With this patch (the driver core changes were from Pat Mochel, thanks
> Pat for putting up with my endless questions) my machine now shows the
> following tree:

Looks good, now when the PM bits can power down from the leaves,
and turn off USB devices /before/ the USB controller and PCI bridges,
which sounds much more sensible.

> Yes, I need to have better names for the devices than just "usb_bus",
> any suggestions? These devices nodes are really the USB root hubs in
> the USB controller, so they could just have the USB number as the name
> like the other USB devices (001), but that's pretty boring :)

"usb_root0" .. "usb_rootN" ?

btw, a script to marry the busid's from driverfs to lspci/lsusb
output may be useful in the future especially if combined somehow
with tree(1). Could be very handy when it gets time to debug
those "My system won't suspend to disk" "What does /driver look like?"
situations.

-- 
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/