0007-RISC-V-Networking-fix-Hack.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From b720ad246b285e678cc16f0c35ef1921ace80043 Mon Sep 17 00:00:00 2001
  2. From: Atish Patra <atish.patra@wdc.com>
  3. Date: Fri, 7 Sep 2018 10:22:27 -0700
  4. Subject: [PATCH 07/10] RISC-V: Networking fix Hack
  5. It looks like that kernel driver now supports reseting the
  6. signal one additional time. As it had been already reset
  7. twice in FSBL, PHY gets into incorrect state causing below error.
  8. ----------------------------------------------------------------------
  9. macb 10090000.ethernet (unnamed net_device) (uninitialized): Could not attach to PHY
  10. macb: probe of 10090000.ethernet failed with error -110
  11. ----------------------------------------------------------------------
  12. This patch is just a temporary fix until we have a fix a FSBL.
  13. It is just a **HACK** and **NOT TO BE MERGED** into mainline.
  14. Signed-off-by: Atish Patra <atish.patra@wdc.com>
  15. ---
  16. drivers/net/phy/mdio_bus.c | 3 ---
  17. 1 file changed, 3 deletions(-)
  18. diff --git a/drivers/net/phy/mdio_bus.c b/drivers/net/phy/mdio_bus.c
  19. index 4be4cc09eb90..a69a95304cb3 100644
  20. --- a/drivers/net/phy/mdio_bus.c
  21. +++ b/drivers/net/phy/mdio_bus.c
  22. @@ -57,9 +57,6 @@ static int mdiobus_register_gpiod(struct mdio_device *mdiodev)
  23. mdiodev->reset = gpiod;
  24. - /* Assert the reset signal again */
  25. - mdio_device_reset(mdiodev, 1);
  26. -
  27. return 0;
  28. }
  29. --
  30. 2.21.0