diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /drivers/usb/core/Kconfig | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'drivers/usb/core/Kconfig')
-rw-r--r-- | drivers/usb/core/Kconfig | 55 |
1 files changed, 54 insertions, 1 deletions
diff --git a/drivers/usb/core/Kconfig b/drivers/usb/core/Kconfig index f70c1a1694a..18d02e32a3d 100644 --- a/drivers/usb/core/Kconfig +++ b/drivers/usb/core/Kconfig | |||
@@ -27,6 +27,58 @@ config USB_ANNOUNCE_NEW_DEVICES | |||
27 | comment "Miscellaneous USB options" | 27 | comment "Miscellaneous USB options" |
28 | depends on USB | 28 | depends on USB |
29 | 29 | ||
30 | config USB_DEVICEFS | ||
31 | bool "USB device filesystem (DEPRECATED)" | ||
32 | depends on USB | ||
33 | ---help--- | ||
34 | If you say Y here (and to "/proc file system support" in the "File | ||
35 | systems" section, above), you will get a file /proc/bus/usb/devices | ||
36 | which lists the devices currently connected to your USB bus or | ||
37 | busses, and for every connected device a file named | ||
38 | "/proc/bus/usb/xxx/yyy", where xxx is the bus number and yyy the | ||
39 | device number; the latter files can be used by user space programs | ||
40 | to talk directly to the device. These files are "virtual", meaning | ||
41 | they are generated on the fly and not stored on the hard drive. | ||
42 | |||
43 | You may need to mount the usbfs file system to see the files, use | ||
44 | mount -t usbfs none /proc/bus/usb | ||
45 | |||
46 | For the format of the various /proc/bus/usb/ files, please read | ||
47 | <file:Documentation/usb/proc_usb_info.txt>. | ||
48 | |||
49 | Modern Linux systems do not use this. | ||
50 | |||
51 | Usbfs entries are files and not character devices; usbfs can't | ||
52 | handle Access Control Lists (ACL) which are the default way to | ||
53 | grant access to USB devices for untrusted users of a desktop | ||
54 | system. | ||
55 | |||
56 | The usbfs functionality is replaced by real device-nodes managed by | ||
57 | udev. These nodes lived in /dev/bus/usb and are used by libusb. | ||
58 | |||
59 | config USB_DEVICE_CLASS | ||
60 | bool "USB device class-devices (DEPRECATED)" | ||
61 | depends on USB | ||
62 | default y | ||
63 | ---help--- | ||
64 | Userspace access to USB devices is granted by device-nodes exported | ||
65 | directly from the usbdev in sysfs. Old versions of the driver | ||
66 | core and udev needed additional class devices to export device nodes. | ||
67 | |||
68 | These additional devices are difficult to handle in userspace, if | ||
69 | information about USB interfaces must be available. One device | ||
70 | contains the device node, the other device contains the interface | ||
71 | data. Both devices are at the same level in sysfs (siblings) and one | ||
72 | can't access the other. The device node created directly by the | ||
73 | usb device is the parent device of the interface and therefore | ||
74 | easily accessible from the interface event. | ||
75 | |||
76 | This option provides backward compatibility for libusb device | ||
77 | nodes (lsusb) when usbfs is not used, and the following udev rule | ||
78 | doesn't exist: | ||
79 | SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", \ | ||
80 | NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0644" | ||
81 | |||
30 | config USB_DYNAMIC_MINORS | 82 | config USB_DYNAMIC_MINORS |
31 | bool "Dynamic USB minor allocation" | 83 | bool "Dynamic USB minor allocation" |
32 | depends on USB | 84 | depends on USB |
@@ -56,7 +108,7 @@ config USB_SUSPEND | |||
56 | 108 | ||
57 | config USB_OTG | 109 | config USB_OTG |
58 | bool "OTG support" | 110 | bool "OTG support" |
59 | depends on USB | 111 | depends on USB && EXPERIMENTAL |
60 | depends on USB_SUSPEND | 112 | depends on USB_SUSPEND |
61 | default n | 113 | default n |
62 | help | 114 | help |
@@ -73,6 +125,7 @@ config USB_OTG_WHITELIST | |||
73 | bool "Rely on OTG Targeted Peripherals List" | 125 | bool "Rely on OTG Targeted Peripherals List" |
74 | depends on USB_OTG || EXPERT | 126 | depends on USB_OTG || EXPERT |
75 | default y if USB_OTG | 127 | default y if USB_OTG |
128 | default n if EXPERT | ||
76 | help | 129 | help |
77 | If you say Y here, the "otg_whitelist.h" file will be used as a | 130 | If you say Y here, the "otg_whitelist.h" file will be used as a |
78 | product whitelist, so USB peripherals not listed there will be | 131 | product whitelist, so USB peripherals not listed there will be |