435-net-phy-fix-marvell-phy-status-reading.patch 781 B

1234567891011121314151617181920212223242526
  1. From: Russell King <[email protected]>
  2. Date: Fri, 23 Dec 2016 18:54:01 +0000
  3. Subject: [PATCH] net: phy: fix marvell phy status reading
  4. The Marvell driver incorrectly provides phydev->lp_advertising as the
  5. logical and of the link partner's advert and our advert. This is
  6. incorrect - this field is supposed to store the link parter's unmodified
  7. advertisment.
  8. This allows ethtool to report the correct link partner auto-negotiation
  9. status.
  10. Signed-off-by: Russell King <[email protected]>
  11. ---
  12. --- a/drivers/net/phy/marvell.c
  13. +++ b/drivers/net/phy/marvell.c
  14. @@ -1114,8 +1114,6 @@ static int marvell_read_status_page(stru
  15. if (adv < 0)
  16. return adv;
  17. - lpa &= adv;
  18. -
  19. if (status & MII_M1011_PHY_STATUS_FULLDUPLEX)
  20. phydev->duplex = DUPLEX_FULL;
  21. else