diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2021-02-23 18:44:55 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-23 12:37:05 +0100 |
commit | 4da57dbbffdfa7fe4e2b70b047fc5ff95ff25a3d (patch) | |
tree | c5be6a0fabab49dd22287b07bcc6817aceac4a94 /drivers/usb/host/ehci-platform.c | |
parent | dt-bindings: usb: generic-ehci: document spurious-oc flag (diff) | |
download | linux-4da57dbbffdfa7fe4e2b70b047fc5ff95ff25a3d.tar.xz linux-4da57dbbffdfa7fe4e2b70b047fc5ff95ff25a3d.zip |
usb: host: ehci-platform: add spurious_oc DT support
Over-current reporting isn't supported on some platforms such as bcm63xx.
These devices will incorrectly report over-current if this flag isn't properly
activated.
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Link: https://lore.kernel.org/r/20210223174455.1378-4-noltari@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ehci-platform.c')
-rw-r--r-- | drivers/usb/host/ehci-platform.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-platform.c b/drivers/usb/host/ehci-platform.c index 4d7b17f4f82b..c70f2d0b4aaf 100644 --- a/drivers/usb/host/ehci-platform.c +++ b/drivers/usb/host/ehci-platform.c @@ -286,6 +286,9 @@ static int ehci_platform_probe(struct platform_device *dev) if (of_property_read_bool(dev->dev.of_node, "big-endian")) ehci->big_endian_mmio = ehci->big_endian_desc = 1; + if (of_property_read_bool(dev->dev.of_node, "spurious-oc")) + ehci->spurious_oc = 1; + if (of_property_read_bool(dev->dev.of_node, "needs-reset-on-resume")) priv->reset_on_resume = true; |