USB: set default y for CONFIG_USB_DEVICE_CLASS

Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Cc: bert hubert <bert.hubert@netherlabs.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Kay Sievers 2007-05-27 17:04:58 +02:00 коммит произвёл Greg Kroah-Hartman
Родитель 85f6038f21
Коммит dda034bcb5
1 изменённых файлов: 12 добавлений и 8 удалений

Просмотреть файл

@ -40,21 +40,25 @@ config USB_DEVICEFS
config USB_DEVICE_CLASS config USB_DEVICE_CLASS
bool "USB device class-devices (DEPRECATED)" bool "USB device class-devices (DEPRECATED)"
depends on USB depends on USB
default n default y
---help--- ---help---
Userspace access to USB devices is granted by device-nodes exported Userspace access to USB devices is granted by device-nodes exported
directly from the usbdev in sysfs. Old versions of the driver directly from the usbdev in sysfs. Old versions of the driver
core and udev needed additional class devices to export device nodes. core and udev needed additional class devices to export device nodes.
These additional devices are difficult to handle in userspace, if These additional devices are difficult to handle in userspace, if
information about USB interfaces must be available. One device contains information about USB interfaces must be available. One device
the device node, the other device contains the interface data. Both contains the device node, the other device contains the interface
devices are at the same level in sysfs (siblings) and one can't access data. Both devices are at the same level in sysfs (siblings) and one
the other. The device node created directly by the usbdev is the parent can't access the other. The device node created directly by the
device of the interface and therefore easily accessible from the interface usb device is the parent device of the interface and therefore
event. easily accessible from the interface event.
This option provides backward compatibility if needed. This option provides backward compatibility for libusb device
nodes (lsusb) when usbfs is not used, and the following udev rule
doesn't exist:
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", \
NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0644"
config USB_DYNAMIC_MINORS config USB_DYNAMIC_MINORS
bool "Dynamic USB minor allocation (EXPERIMENTAL)" bool "Dynamic USB minor allocation (EXPERIMENTAL)"