Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: regroup all depends on USB within an if USB block

This patch removes the depends on USB from all config symbols in
drivers/usb/host/Kconfig and replace that with an if USB / endif block
as suggested by Alan Stern. Some source ... Kconfig lines have been
shuffled around to permit a better regroupment of the Kconfig files
depending on "config USB" item. No functionnal change is introduced.

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Florian Fainelli and committed by
Greg Kroah-Hartman
25e11ec4 a2a2d6c7

+36 -74
+15 -8
drivers/usb/Kconfig
··· 122 122 To compile this driver as a module, choose M here: the 123 123 module will be called usbcore. 124 124 125 - source "drivers/usb/core/Kconfig" 125 + if USB 126 126 127 - source "drivers/usb/dwc3/Kconfig" 127 + source "drivers/usb/core/Kconfig" 128 128 129 129 source "drivers/usb/mon/Kconfig" 130 130 ··· 134 134 135 135 source "drivers/usb/musb/Kconfig" 136 136 137 - source "drivers/usb/chipidea/Kconfig" 138 - 139 137 source "drivers/usb/renesas_usbhs/Kconfig" 140 138 141 139 source "drivers/usb/class/Kconfig" ··· 142 144 143 145 source "drivers/usb/image/Kconfig" 144 146 147 + endif 148 + 149 + source "drivers/usb/dwc3/Kconfig" 150 + 151 + source "drivers/usb/chipidea/Kconfig" 152 + 145 153 comment "USB port drivers" 146 - depends on USB 154 + 155 + if USB 147 156 148 157 config USB_USS720 149 158 tristate "USS720 parport driver" 150 - depends on USB && PARPORT 159 + depends on PARPORT 151 160 select PARPORT_NOT_PC 152 161 ---help--- 153 162 This driver is for USB parallel port adapters that use the Lucent ··· 185 180 186 181 source "drivers/usb/misc/Kconfig" 187 182 188 - source "drivers/usb/phy/Kconfig" 189 - 190 183 source "drivers/usb/atm/Kconfig" 184 + 185 + endif # USB 186 + 187 + source "drivers/usb/phy/Kconfig" 191 188 192 189 source "drivers/usb/gadget/Kconfig" 193 190
+1 -1
drivers/usb/atm/Kconfig
··· 4 4 5 5 menuconfig USB_ATM 6 6 tristate "USB DSL modem support" 7 - depends on USB && ATM 7 + depends on ATM 8 8 select CRC32 9 9 default n 10 10 help
+1 -5
drivers/usb/class/Kconfig
··· 2 2 # USB Class driver configuration 3 3 # 4 4 comment "USB Device Class drivers" 5 - depends on USB 6 5 7 6 config USB_ACM 8 7 tristate "USB Modem (CDC ACM) support" 9 - depends on USB && TTY 8 + depends on TTY 10 9 ---help--- 11 10 This driver supports USB modems and ISDN adapters which support the 12 11 Communication Device Class Abstract Control Model interface. ··· 20 21 21 22 config USB_PRINTER 22 23 tristate "USB Printer support" 23 - depends on USB 24 24 help 25 25 Say Y here if you want to connect a USB printer to your computer's 26 26 USB port. ··· 29 31 30 32 config USB_WDM 31 33 tristate "USB Wireless Device Management support" 32 - depends on USB 33 34 ---help--- 34 35 This driver supports the WMC Device Management functionality 35 36 of cell phones compliant to the CDC WMC specification. You can use ··· 39 42 40 43 config USB_TMC 41 44 tristate "USB Test and Measurement Class support" 42 - depends on USB 43 45 help 44 46 Say Y here if you want to connect a USB device that follows 45 47 the USB.org specification for USB Test and Measurement devices
-6
drivers/usb/core/Kconfig
··· 3 3 # 4 4 config USB_DEBUG 5 5 bool "USB verbose debug messages" 6 - depends on USB 7 6 help 8 7 Say Y here if you want the USB core & hub drivers to produce a bunch 9 8 of debug messages to the system log. Select this if you are having a ··· 10 11 11 12 config USB_ANNOUNCE_NEW_DEVICES 12 13 bool "USB announce new devices" 13 - depends on USB 14 14 default N 15 15 help 16 16 Say Y here if you want the USB core to always announce the ··· 23 25 log, or have any doubts about this, say N here. 24 26 25 27 comment "Miscellaneous USB options" 26 - depends on USB 27 28 28 29 config USB_DEFAULT_PERSIST 29 30 bool "Enable USB persist by default" 30 - depends on USB 31 31 default y 32 32 help 33 33 Say N here if you don't want USB power session persistance ··· 41 45 42 46 config USB_DYNAMIC_MINORS 43 47 bool "Dynamic USB minor allocation" 44 - depends on USB 45 48 help 46 49 If you say Y here, the USB subsystem will use dynamic minor 47 50 allocation for any device that uses the USB major number. ··· 51 56 52 57 config USB_OTG 53 58 bool "OTG support" 54 - depends on USB 55 59 depends on USB_SUSPEND 56 60 default n 57 61 help
+11 -19
drivers/usb/host/Kconfig
··· 2 2 # USB Host Controller Drivers 3 3 # 4 4 comment "USB Host Controller Drivers" 5 - depends on USB 6 5 7 6 config USB_C67X00_HCD 8 7 tristate "Cypress C67x00 HCD support" 9 - depends on USB 10 8 help 11 9 The Cypress C67x00 (EZ-Host/EZ-OTG) chips are dual-role 12 10 host/peripheral/OTG USB controllers. ··· 17 19 18 20 config USB_XHCI_HCD 19 21 tristate "xHCI HCD (USB 3.0) support" 20 - depends on USB && USB_ARCH_HAS_XHCI 22 + depends on USB_ARCH_HAS_XHCI 21 23 ---help--- 22 24 The eXtensible Host Controller Interface (xHCI) is standard for USB 3.0 23 25 "SuperSpeed" host controller hardware. ··· 41 43 42 44 config USB_EHCI_HCD 43 45 tristate "EHCI HCD (USB 2.0) support" 44 - depends on USB && USB_ARCH_HAS_EHCI 46 + depends on USB_ARCH_HAS_EHCI 45 47 ---help--- 46 48 The Enhanced Host Controller Interface (EHCI) is standard for USB 2.0 47 49 "high speed" (480 Mbit/sec, 60 Mbyte/sec) host controller hardware. ··· 278 280 279 281 config USB_OXU210HP_HCD 280 282 tristate "OXU210HP HCD support" 281 - depends on USB && GENERIC_HARDIRQS 283 + depends on GENERIC_HARDIRQS 282 284 ---help--- 283 285 The OXU210HP is an USB host/OTG/device controller. Enable this 284 286 option if your board has this chip. If unsure, say N. ··· 291 293 292 294 config USB_ISP116X_HCD 293 295 tristate "ISP116X HCD support" 294 - depends on USB 295 296 ---help--- 296 297 The ISP1160 and ISP1161 chips are USB host controllers. Enable this 297 298 option if your board has this chip. If unsure, say N. ··· 302 305 303 306 config USB_ISP1760_HCD 304 307 tristate "ISP 1760 HCD support" 305 - depends on USB 306 308 ---help--- 307 309 The ISP1760 chip is a USB 2.0 host controller. 308 310 ··· 316 320 317 321 config USB_ISP1362_HCD 318 322 tristate "ISP1362 HCD support" 319 - depends on USB 320 323 default N 321 324 ---help--- 322 325 Supports the Philips ISP1362 chip as a host controller ··· 327 332 328 333 config USB_OHCI_HCD 329 334 tristate "OHCI HCD support" 330 - depends on USB && USB_ARCH_HAS_OHCI 335 + depends on USB_ARCH_HAS_OHCI 331 336 select ISP1301_OMAP if MACH_OMAP_H2 || MACH_OMAP_H3 332 337 depends on USB_ISP1301 || !ARCH_LPC32XX 333 338 ---help--- ··· 485 490 486 491 config USB_UHCI_HCD 487 492 tristate "UHCI HCD (most Intel and VIA) support" 488 - depends on USB && (PCI || SPARC_LEON || ARCH_VT8500) 493 + depends on PCI || SPARC_LEON || ARCH_VT8500 489 494 ---help--- 490 495 The Universal Host Controller Interface is a standard by Intel for 491 496 accessing the USB hardware in the PC (which is also called the USB ··· 525 530 526 531 config USB_FHCI_HCD 527 532 tristate "Freescale QE USB Host Controller support" 528 - depends on USB && OF_GPIO && QE_GPIO && QUICC_ENGINE 533 + depends on OF_GPIO && QE_GPIO && QUICC_ENGINE 529 534 select FSL_GTM 530 535 select QE_USB 531 536 help ··· 542 547 543 548 config USB_U132_HCD 544 549 tristate "Elan U132 Adapter Host Controller" 545 - depends on USB && USB_FTDI_ELAN 550 + depends on USB_FTDI_ELAN 546 551 default M 547 552 help 548 553 The U132 adapter is a USB to CardBus adapter specifically designed ··· 570 575 571 576 config USB_SL811_HCD 572 577 tristate "SL811HS HCD support" 573 - depends on USB 574 578 help 575 579 The SL811HS is a single-port USB controller that supports either 576 580 host side or peripheral side roles. Enable this option if your ··· 601 607 602 608 config USB_R8A66597_HCD 603 609 tristate "R8A66597 HCD support" 604 - depends on USB 605 610 help 606 611 The R8A66597 is a USB 2.0 host and peripheral controller. 607 612 ··· 612 619 613 620 config USB_RENESAS_USBHS_HCD 614 621 tristate "Renesas USBHS HCD support" 615 - depends on USB 616 622 depends on USB_RENESAS_USBHS 617 623 help 618 624 The Renesas USBHS is a USB 2.0 host and peripheral controller. ··· 636 644 637 645 config USB_HWA_HCD 638 646 tristate "Host Wire Adapter (HWA) driver" 639 - depends on USB && UWB 647 + depends on UWB 640 648 select USB_WUSB 641 649 select UWB_HWA 642 650 help ··· 650 658 651 659 config USB_IMX21_HCD 652 660 tristate "i.MX21 HCD support" 653 - depends on USB && ARM && ARCH_MXC 661 + depends on ARM && ARCH_MXC 654 662 help 655 663 This driver enables support for the on-chip USB host in the 656 664 i.MX21 processor. ··· 660 668 661 669 config USB_OCTEON_EHCI 662 670 bool "Octeon on-chip EHCI support" 663 - depends on USB && USB_EHCI_HCD && CPU_CAVIUM_OCTEON 671 + depends on USB_EHCI_HCD && CPU_CAVIUM_OCTEON 664 672 default n 665 673 select USB_EHCI_BIG_ENDIAN_MMIO 666 674 help ··· 671 679 672 680 config USB_OCTEON_OHCI 673 681 bool "Octeon on-chip OHCI support" 674 - depends on USB && USB_OHCI_HCD && CPU_CAVIUM_OCTEON 682 + depends on USB_OHCI_HCD && CPU_CAVIUM_OCTEON 675 683 default USB_OCTEON_EHCI 676 684 select USB_OHCI_BIG_ENDIAN_MMIO 677 685 select USB_OHCI_LITTLE_ENDIAN
+1 -3
drivers/usb/image/Kconfig
··· 2 2 # USB Imaging devices configuration 3 3 # 4 4 comment "USB Imaging devices" 5 - depends on USB 6 5 7 6 config USB_MDC800 8 7 tristate "USB Mustek MDC800 Digital Camera support" 9 - depends on USB 10 8 ---help--- 11 9 Say Y here if you want to connect this type of still camera to 12 10 your computer's USB port. This driver can be used with gphoto 0.4.3 ··· 17 19 18 20 config USB_MICROTEK 19 21 tristate "Microtek X6USB scanner support" 20 - depends on USB && SCSI 22 + depends on SCSI 21 23 help 22 24 Say Y here if you want support for the Microtek X6USB and 23 25 possibly the Phantom 336CX, Phantom C6 and ScanMaker V6U(S)L.
-21
drivers/usb/misc/Kconfig
··· 2 2 # USB Miscellaneous driver configuration 3 3 # 4 4 comment "USB Miscellaneous drivers" 5 - depends on USB 6 5 7 6 config USB_EMI62 8 7 tristate "EMI 6|2m USB Audio interface support" 9 - depends on USB 10 8 ---help--- 11 9 This driver loads firmware to Emagic EMI 6|2m low latency USB 12 10 Audio and Midi interface. ··· 19 21 20 22 config USB_EMI26 21 23 tristate "EMI 2|6 USB Audio interface support" 22 - depends on USB 23 24 ---help--- 24 25 This driver loads firmware to Emagic EMI 2|6 low latency USB 25 26 Audio interface. ··· 31 34 32 35 config USB_ADUTUX 33 36 tristate "ADU devices from Ontrak Control Systems" 34 - depends on USB 35 37 help 36 38 Say Y if you want to use an ADU device from Ontrak Control 37 39 Systems. ··· 40 44 41 45 config USB_SEVSEG 42 46 tristate "USB 7-Segment LED Display" 43 - depends on USB 44 47 help 45 48 Say Y here if you have a USB 7-Segment Display by Delcom 46 49 ··· 48 53 49 54 config USB_RIO500 50 55 tristate "USB Diamond Rio500 support" 51 - depends on USB 52 56 help 53 57 Say Y here if you want to connect a USB Rio500 mp3 player to your 54 58 computer's USB port. Please read <file:Documentation/usb/rio.txt> ··· 58 64 59 65 config USB_LEGOTOWER 60 66 tristate "USB Lego Infrared Tower support" 61 - depends on USB 62 67 help 63 68 Say Y here if you want to connect a USB Lego Infrared Tower to your 64 69 computer's USB port. ··· 70 77 71 78 config USB_LCD 72 79 tristate "USB LCD driver support" 73 - depends on USB 74 80 help 75 81 Say Y here if you want to connect an USBLCD to your computer's 76 82 USB port. The USBLCD is a small USB interface board for ··· 81 89 82 90 config USB_LED 83 91 tristate "USB LED driver support" 84 - depends on USB 85 92 help 86 93 Say Y here if you want to connect an USBLED device to your 87 94 computer's USB port. ··· 90 99 91 100 config USB_CYPRESS_CY7C63 92 101 tristate "Cypress CY7C63xxx USB driver support" 93 - depends on USB 94 102 help 95 103 Say Y here if you want to connect a Cypress CY7C63xxx 96 104 micro controller to your computer's USB port. Currently this ··· 103 113 104 114 config USB_CYTHERM 105 115 tristate "Cypress USB thermometer driver support" 106 - depends on USB 107 116 help 108 117 Say Y here if you want to connect a Cypress USB thermometer 109 118 device to your computer's USB port. This device is also known ··· 115 126 116 127 config USB_IDMOUSE 117 128 tristate "Siemens ID USB Mouse Fingerprint sensor support" 118 - depends on USB 119 129 help 120 130 Say Y here if you want to use the fingerprint sensor on 121 131 the Siemens ID Mouse. There is also a Siemens ID Mouse ··· 128 140 129 141 config USB_FTDI_ELAN 130 142 tristate "Elan PCMCIA CardBus Adapter USB Client" 131 - depends on USB 132 143 default M 133 144 help 134 145 ELAN's Uxxx series of adapters are USB to PCMCIA CardBus adapters. ··· 151 164 152 165 config USB_APPLEDISPLAY 153 166 tristate "Apple Cinema Display support" 154 - depends on USB 155 167 select BACKLIGHT_LCD_SUPPORT 156 168 select BACKLIGHT_CLASS_DEVICE 157 169 help ··· 161 175 162 176 config USB_LD 163 177 tristate "USB LD driver" 164 - depends on USB 165 178 help 166 179 This driver is for generic USB devices that use interrupt transfers, 167 180 like LD Didactic's USB devices. ··· 170 185 171 186 config USB_TRANCEVIBRATOR 172 187 tristate "PlayStation 2 Trance Vibrator driver support" 173 - depends on USB 174 188 help 175 189 Say Y here if you want to connect a PlayStation 2 Trance Vibrator 176 190 device to your computer's USB port. ··· 179 195 180 196 config USB_IOWARRIOR 181 197 tristate "IO Warrior driver support" 182 - depends on USB 183 198 help 184 199 Say Y here if you want to support the IO Warrior devices from Code 185 200 Mercenaries. This includes support for the following devices: ··· 192 209 193 210 config USB_TEST 194 211 tristate "USB testing driver" 195 - depends on USB 196 212 help 197 213 This driver is for testing host controller software. It is used 198 214 with specialized device firmware for regression and stress testing, ··· 202 220 203 221 config USB_ISIGHTFW 204 222 tristate "iSight firmware loading support" 205 - depends on USB 206 223 select FW_LOADER 207 224 help 208 225 This driver loads firmware for USB Apple iSight cameras, allowing ··· 214 233 215 234 config USB_YUREX 216 235 tristate "USB YUREX driver support" 217 - depends on USB 218 236 help 219 237 Say Y here if you want to connect a YUREX to your computer's 220 238 USB port. The YUREX is a leg-shakes sensor. See ··· 226 246 227 247 config USB_EZUSB_FX2 228 248 tristate "Functions for loading firmware on EZUSB chips" 229 - depends on USB 230 249 help 231 250 Say Y here if you need EZUSB device support. 232 251 (Cypress FX/FX2/FX2LP microcontrollers)
+1 -1
drivers/usb/misc/sisusbvga/Kconfig
··· 1 1 2 2 config USB_SISUSBVGA 3 3 tristate "USB 2.0 SVGA dongle support (Net2280/SiS315)" 4 - depends on USB && (USB_MUSB_HDRC || USB_EHCI_HCD) 4 + depends on (USB_MUSB_HDRC || USB_EHCI_HCD) 5 5 ---help--- 6 6 Say Y here if you intend to attach a USB2VGA dongle based on a 7 7 Net2280 and a SiS315 chip.
-1
drivers/usb/mon/Kconfig
··· 4 4 5 5 config USB_MON 6 6 tristate "USB Monitor" 7 - depends on USB 8 7 help 9 8 If you select this option, a component which captures the USB traffic 10 9 between peripheral-specific drivers and HC drivers will be built.
+1 -1
drivers/usb/musb/Kconfig
··· 6 6 # (M)HDRC = (Multipoint) Highspeed Dual-Role Controller 7 7 config USB_MUSB_HDRC 8 8 tristate 'Inventra Highspeed Dual Role Controller (TI, ADI, ...)' 9 - depends on USB && USB_GADGET 9 + depends on USB_GADGET 10 10 help 11 11 Say Y here if your system has a dual role high speed USB 12 12 controller based on the Mentor Graphics silicon IP. Then
+1 -1
drivers/usb/renesas_usbhs/Kconfig
··· 4 4 5 5 config USB_RENESAS_USBHS 6 6 tristate 'Renesas USBHS controller' 7 - depends on USB && USB_GADGET && GENERIC_HARDIRQS 7 + depends on USB_GADGET && GENERIC_HARDIRQS 8 8 default n 9 9 help 10 10 Renesas USBHS is a discrete USB host and peripheral controller chip
+1 -1
drivers/usb/serial/Kconfig
··· 4 4 5 5 menuconfig USB_SERIAL 6 6 tristate "USB Serial Converter support" 7 - depends on USB && TTY 7 + depends on TTY 8 8 ---help--- 9 9 Say Y here if you have a USB device that provides normal serial 10 10 ports, or acts like a serial device, and you want to connect it to
+3 -4
drivers/usb/storage/Kconfig
··· 4 4 5 5 comment "NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may" 6 6 comment "also be needed; see USB_STORAGE Help for more info" 7 - depends on USB 8 7 9 8 config USB_STORAGE 10 9 tristate "USB Mass Storage support" 11 - depends on USB && SCSI 10 + depends on SCSI 12 11 ---help--- 13 12 Say Y here if you want to connect USB mass storage devices to your 14 13 computer's USB port. This is the driver you need for USB ··· 187 188 188 189 config USB_STORAGE_ENE_UB6250 189 190 tristate "USB ENE card reader support" 190 - depends on USB && SCSI 191 + depends on SCSI 191 192 depends on USB_STORAGE 192 193 ---help--- 193 194 Say Y here if you wish to control a ENE SD/MS Card reader. ··· 202 203 203 204 config USB_UAS 204 205 tristate "USB Attached SCSI" 205 - depends on USB && SCSI && BROKEN 206 + depends on SCSI && BROKEN 206 207 help 207 208 The USB Attached SCSI protocol is supported by some USB 208 209 storage devices. It permits higher performance by supporting
-2
drivers/usb/wusbcore/Kconfig
··· 3 3 # 4 4 config USB_WUSB 5 5 tristate "Enable Wireless USB extensions" 6 - depends on USB 7 6 depends on PCI 8 7 depends on UWB 9 8 select CRYPTO ··· 18 19 19 20 config USB_WUSB_CBAF 20 21 tristate "Support WUSB Cable Based Association (CBA)" 21 - depends on USB 22 22 help 23 23 Some WUSB devices support Cable Based Association. It's used to 24 24 enable the secure communication between the host and the