diff options
| author | Bin Meng <[email protected]> | 2019-08-14 03:29:42 -0700 |
|---|---|---|
| committer | Joe Hershberger <[email protected]> | 2019-09-04 11:37:19 -0500 |
| commit | 19f3b78dfbc63c46574e1c2232a8a89fc122405f (patch) | |
| tree | 7c4258bbbe7975d00db204134e8304eaa5a35f21 /drivers | |
| parent | 2e0f3241787ead5087e8fe81095e830c48b29b36 (diff) | |
Revert "net: macb: Fixed reading MII_LPA register"
This reverts commit 1b0c9914cc75d1570359181ebd493cd5746cb0ed.
Commit 1b0c9914cc75 ("net: macb: Fixed reading MII_LPA register")
causes 100Mbps does not work any more with SiFive FU540 GEM on the
HiFive Unleashed board. Revert it.
Signed-off-by: Bin Meng <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/net/macb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/macb.c b/drivers/net/macb.c index c99cf663a41..25f79136e0f 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c @@ -643,7 +643,7 @@ static int macb_phy_init(struct macb_device *macb, const char *name) /* First check for GMAC and that it is GiB capable */ if (gem_is_gigabit_capable(macb)) { - lpa = macb_mdio_read(macb, MII_LPA); + lpa = macb_mdio_read(macb, MII_STAT1000); if (lpa & (LPA_1000FULL | LPA_1000HALF | LPA_1000XFULL | LPA_1000XHALF)) { |
