OSDN Git Service

usb: ehci: add spurious flag to disable overcurrent checking
authorFlorian Fainelli <florian@openwrt.org>
Tue, 23 Feb 2021 17:44:53 +0000 (18:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Mar 2021 11:36:17 +0000 (12:36 +0100)
commit2d5ba37461013253d2ff0a3641b727fd32ea97a9
treef119fc49dde3192c35d56784a060045084c36763
parent729979e16451233b34f3082bd16b93c354252c50
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>
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ehci-hub.c
drivers/usb/host/ehci-platform.c
drivers/usb/host/ehci.h
include/linux/usb/ehci_pdriver.h