819-v5.13-usb-host-ehci-platform-add-spurious_oc-DT-support.patch 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. From 4da57dbbffdfa7fe4e2b70b047fc5ff95ff25a3d Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= <[email protected]>
  3. Date: Tue, 23 Feb 2021 18:44:55 +0100
  4. Subject: [PATCH 3/3] usb: host: ehci-platform: add spurious_oc DT support
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Over-current reporting isn't supported on some platforms such as bcm63xx.
  9. These devices will incorrectly report over-current if this flag isn't properly
  10. activated.
  11. Signed-off-by: Álvaro Fernández Rojas <[email protected]>
  12. Link: https://lore.kernel.org/r/[email protected]
  13. Signed-off-by: Greg Kroah-Hartman <[email protected]>
  14. ---
  15. drivers/usb/host/ehci-platform.c | 3 +++
  16. 1 file changed, 3 insertions(+)
  17. --- a/drivers/usb/host/ehci-platform.c
  18. +++ b/drivers/usb/host/ehci-platform.c
  19. @@ -286,6 +286,9 @@ static int ehci_platform_probe(struct pl
  20. if (of_property_read_bool(dev->dev.of_node, "big-endian"))
  21. ehci->big_endian_mmio = ehci->big_endian_desc = 1;
  22. + if (of_property_read_bool(dev->dev.of_node, "spurious-oc"))
  23. + ehci->spurious_oc = 1;
  24. +
  25. if (of_property_read_bool(dev->dev.of_node,
  26. "needs-reset-on-resume"))
  27. priv->reset_on_resume = true;