net: phy: aquantia: check for changed interface mode in read_status
authorNikita Yushchenko <nikita.yoush@cogentembedded.com>
Tue, 19 Mar 2019 22:05:50 +0000 (23:05 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Mar 2019 17:58:17 +0000 (10:58 -0700)
commit1e614b5086ee8b2287238f74a9fa6d7935084a3c
tree203b4e4e68befe46a1fe99cd3687bb4f4067292f
parent570c8a7d53032b1773ecfc6d317402450ada6de4
net: phy: aquantia: check for changed interface mode in read_status

Depending on the auto-negotiated speed the PHY may change the interface
mode. Check for new mode and set phydev->interface accordingly.

Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
[hkallweit1@gmail.com: picked from bigger patch and reworked]
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/aquantia_main.c