diff options
author | Florian Fainelli <florian@openwrt.org> | 2021-02-23 18:44:53 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-23 12:36:17 +0100 |
commit | 2d5ba37461013253d2ff0a3641b727fd32ea97a9 (patch) | |
tree | f119fc49dde3192c35d56784a060045084c36763 /include/linux/usb | |
parent | 729979e16451233b34f3082bd16b93c354252c50 (diff) | |
download | linux-stable-2d5ba37461013253d2ff0a3641b727fd32ea97a9.tar.gz linux-stable-2d5ba37461013253d2ff0a3641b727fd32ea97a9.tar.bz2 linux-stable-2d5ba37461013253d2ff0a3641b727fd32ea97a9.zip |
usb: ehci: add spurious flag to disable overcurrent checking
This patch adds an ignore_oc flag which can be set by EHCI controller
not supporting or wanting to disable overcurrent checking. The EHCI
platform data in include/linux/usb/ehci_pdriver.h is also augmented to
take advantage of this new flag.
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Link: https://lore.kernel.org/r/20210223174455.1378-2-noltari@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb')
-rw-r--r-- | include/linux/usb/ehci_pdriver.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/usb/ehci_pdriver.h b/include/linux/usb/ehci_pdriver.h index dd742afdc03f..89fc901e778f 100644 --- a/include/linux/usb/ehci_pdriver.h +++ b/include/linux/usb/ehci_pdriver.h @@ -50,6 +50,7 @@ struct usb_ehci_pdata { unsigned no_io_watchdog:1; unsigned reset_on_resume:1; unsigned dma_mask_64:1; + unsigned spurious_oc:1; /* Turn on all power and clocks */ int (*power_on)(struct platform_device *pdev); |