USB: rename USB OTG hub configuration option

The USB OTG code has the ability to disable external hubs, but the
configuration option for it is oddly named.  Rename it to be more
obvious as to what it does.

Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Bin Liu <b-liu@ti.com>
Cc: Paul Cercueil <paul@crapouillou.net>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Eugeniu Rosca <erosca@de.adit-jv.com>
Cc: Kai-Heng Feng <kai.heng.feng@canonical.com>
Cc: David Heinzelmann <heinzelmann.david@gmail.com>
Cc: "Lee, Chiasheng" <chiasheng.lee@intel.com>
Cc: Keiya Nobuta <nobuta.keiya@fujitsu.com>
Cc: Hardik Gajjar <hgajjar@de.adit-jv.com>
Link: https://lore.kernel.org/r/20200618094300.1887727-3-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Greg Kroah-Hartman 2020-06-18 11:42:54 +02:00
parent 91c7eaa686
commit 9af54301b6
5 changed files with 6 additions and 6 deletions

View File

@ -96,7 +96,7 @@ CONFIG_SND_SIMPLE_CARD=y
CONFIG_USB_CONN_GPIO=y CONFIG_USB_CONN_GPIO=y
CONFIG_USB=y CONFIG_USB=y
CONFIG_USB_OTG=y CONFIG_USB_OTG=y
CONFIG_USB_OTG_BLACKLIST_HUB=y CONFIG_USB_OTG_DISABLE_EXTERNAL_HUB=y
CONFIG_USB_OHCI_HCD=y CONFIG_USB_OHCI_HCD=y
CONFIG_USB_OHCI_HCD_PLATFORM=y CONFIG_USB_OHCI_HCD_PLATFORM=y
CONFIG_USB_MUSB_HDRC=y CONFIG_USB_MUSB_HDRC=y

View File

@ -66,7 +66,7 @@ config USB_OTG_WHITELIST
"Targeted Peripherals List". "Embedded Hosts" are likewise "Targeted Peripherals List". "Embedded Hosts" are likewise
allowed to support only a limited number of peripherals. allowed to support only a limited number of peripherals.
config USB_OTG_BLACKLIST_HUB config USB_OTG_DISABLE_EXTERNAL_HUB
bool "Disable external hubs" bool "Disable external hubs"
depends on USB_OTG || EXPERT depends on USB_OTG || EXPERT
help help

View File

@ -1834,7 +1834,7 @@ static int hub_probe(struct usb_interface *intf, const struct usb_device_id *id)
return -E2BIG; return -E2BIG;
} }
#ifdef CONFIG_USB_OTG_BLACKLIST_HUB #ifdef CONFIG_USB_OTG_DISABLE_EXTERNAL_HUB
if (hdev->parent) { if (hdev->parent) {
dev_warn(&intf->dev, "ignoring external hub\n"); dev_warn(&intf->dev, "ignoring external hub\n");
return -ENODEV; return -ENODEV;

View File

@ -113,7 +113,7 @@ config USB_MUSB_JZ4740
depends on OF depends on OF
depends on MIPS || COMPILE_TEST depends on MIPS || COMPILE_TEST
depends on USB_MUSB_GADGET depends on USB_MUSB_GADGET
depends on USB=n || USB_OTG_BLACKLIST_HUB depends on USB=n || USB_OTG_DISABLE_EXTERNAL_HUB
select USB_ROLE_SWITCH select USB_ROLE_SWITCH
config USB_MUSB_MEDIATEK config USB_MUSB_MEDIATEK

View File

@ -1637,8 +1637,8 @@ static int musb_core_init(u16 musb_type, struct musb *musb)
musb->is_multipoint = 0; musb->is_multipoint = 0;
type = ""; type = "";
if (IS_ENABLED(CONFIG_USB) && if (IS_ENABLED(CONFIG_USB) &&
!IS_ENABLED(CONFIG_USB_OTG_BLACKLIST_HUB)) { !IS_ENABLED(CONFIG_USB_OTG_DISABLE_EXTERNAL_HUB)) {
pr_err("%s: kernel must blacklist external hubs\n", pr_err("%s: kernel must disable external hubs, please fix the configuration\n",
musb_driver_name); musb_driver_name);
} }
} }