net: phy: probe the PHY before determining the supported features
authorAndrew Lunn <andrew@lunn.ch>
Sat, 9 Feb 2019 13:46:30 +0000 (14:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 Feb 2019 17:31:30 +0000 (09:31 -0800)
commit92ed2eb7f4b73e9944b432e5c8c65ec3ec00eb9d
tree5c79d0e768b83ac15ab25bef960275d1e4a53fd0
parent50684da7427b3c36ce0ccf89814df28d9dbe3fe4
net: phy: probe the PHY before determining the supported features

We will soon support asking the PHY at runtime to determine what
features it supports, rather than forcing it to be compile time.
But we should probe the PHY first. So probe the phy driver earlier.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c