381-net-bcm63xx_enet-fully-reset-ephy.patch 958 B

12345678910111213141516171819202122232425262728
  1. From: Jonas Gorski <jonas.gorski@gmail.com>
  2. Subject: [PATCH] net: bcm63xx_enet: fully reset ephy
  3. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
  4. ---
  5. drivers/net/ethernet/broadcom/bcm63xx_enet.c | 4 ++--
  6. 1 file changed, 2 insertions(+), , 1 deletions(-)
  7. --- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c
  8. +++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
  9. @@ -2873,7 +2873,7 @@ static int bcm_enet_shared_probe(struct
  10. memset(bcm_enet_shared_base, 0, sizeof(bcm_enet_shared_base));
  11. - ephy_reset = devm_gpiod_get_optional(&pdev->dev, "ephy-reset", GPIOD_ASIS);
  12. + ephy_reset = devm_gpiod_get_optional(&pdev->dev, "ephy-reset", GPIOD_OUT_HIGH);
  13. if (IS_ERR(ephy_reset))
  14. return PTR_ERR(ephy_reset);
  15. @@ -2887,7 +2887,7 @@ static int bcm_enet_shared_probe(struct
  16. memcpy(bcm_enet_shared_base, p, sizeof(bcm_enet_shared_base));
  17. if (ephy_reset)
  18. - gpiod_direction_output(ephy_reset, 0);
  19. + gpiod_set_value(ephy_reset, 0);
  20. return 0;
  21. }