]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
usb-host: rip out legacy procfs support
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 16 Dec 2011 10:54:11 +0000 (11:54 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 13 Jan 2012 09:25:44 +0000 (10:25 +0100)
commit097db4384860b4363364eb531285296f616d89e5
treed011fd4dbb6fd36dbe01974f0ea43002756400d6
parent515aa3c57986b3e26558d72ecaeb7545ecd30510
usb-host: rip out legacy procfs support

This patch removes support for parsing /proc/bus/usb/devices for device
discovery.  The code lacks a few features compared to the sysfs code and
is also bitrotting as everybody has sysfs these days.

This implies having sysfs mounted is mandatory now to use the usb-host
driver.  udev isn't required though.  qemu will prefer the udev-managed
device nodes below /dev/bus/usb, but in case this directory isn't preset
qemu will use the device nodes below /proc/bus/usb (default usbfs mount
point).

Bottom line: make sure you have both sysfs and usbfs mounted properly,
and everything should continue to work as it did before.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
usb-linux.c