diff options
-rw-r--r-- | drivers/usb/core/Kconfig | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/drivers/usb/core/Kconfig b/drivers/usb/core/Kconfig index f493fb1eaa27..346fc030c929 100644 --- a/drivers/usb/core/Kconfig +++ b/drivers/usb/core/Kconfig | |||
@@ -40,21 +40,25 @@ config USB_DEVICEFS | |||
40 | config USB_DEVICE_CLASS | 40 | config USB_DEVICE_CLASS |
41 | bool "USB device class-devices (DEPRECATED)" | 41 | bool "USB device class-devices (DEPRECATED)" |
42 | depends on USB | 42 | depends on USB |
43 | default n | 43 | default y |
44 | ---help--- | 44 | ---help--- |
45 | Userspace access to USB devices is granted by device-nodes exported | 45 | Userspace access to USB devices is granted by device-nodes exported |
46 | directly from the usbdev in sysfs. Old versions of the driver | 46 | directly from the usbdev in sysfs. Old versions of the driver |
47 | core and udev needed additional class devices to export device nodes. | 47 | core and udev needed additional class devices to export device nodes. |
48 | 48 | ||
49 | These additional devices are difficult to handle in userspace, if | 49 | These additional devices are difficult to handle in userspace, if |
50 | information about USB interfaces must be available. One device contains | 50 | information about USB interfaces must be available. One device |
51 | the device node, the other device contains the interface data. Both | 51 | contains the device node, the other device contains the interface |
52 | devices are at the same level in sysfs (siblings) and one can't access | 52 | data. Both devices are at the same level in sysfs (siblings) and one |
53 | the other. The device node created directly by the usbdev is the parent | 53 | can't access the other. The device node created directly by the |
54 | device of the interface and therefore easily accessible from the interface | 54 | usb device is the parent device of the interface and therefore |
55 | event. | 55 | easily accessible from the interface event. |
56 | 56 | ||
57 | This option provides backward compatibility if needed. | 57 | This option provides backward compatibility for libusb device |
58 | nodes (lsusb) when usbfs is not used, and the following udev rule | ||
59 | doesn't exist: | ||
60 | SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", \ | ||
61 | NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0644" | ||
58 | 62 | ||
59 | config USB_DYNAMIC_MINORS | 63 | config USB_DYNAMIC_MINORS |
60 | bool "Dynamic USB minor allocation (EXPERIMENTAL)" | 64 | bool "Dynamic USB minor allocation (EXPERIMENTAL)" |