net: macb: Fixed reading MII_LPA register
authorRadu Pirea <radu_nicolae.pirea@upb.ro>
Fri, 7 Jun 2019 11:18:35 +0000 (14:18 +0300)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 15 Jul 2019 18:32:26 +0000 (13:32 -0500)
commit1b0c9914cc75d1570359181ebd493cd5746cb0ed
tree8fac39384ffc3f88edb8252bc68d01738f758a1a
parentc558c50dbb468656748037af9a9dd900c5d2030d
net: macb: Fixed reading MII_LPA register

If macb is gem and is gigabit capable, lpa value is not read from
the right register(MII_LPA) and is read from MII_STAT1000. This patch
fixes reading of the lpa value.

Signed-off-by: Radu Pirea <radu_nicolae.pirea@upb.ro>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/macb.c