path: root/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
diff options
authorAndrew Lunn <andrew@lunn.ch>2019-02-09 15:24:47 +0100
committerDavid S. Miller <davem@davemloft.net>2019-02-09 09:32:04 -0800
commitefbdfdc29bdd4dbf79ad4bddc8f7a5ac62c66bfe (patch)
tree91e7fe76b8d68927e68c7284dffbc720114ec965 /drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
parentnet: phy: probe the PHY before determining the supported features (diff)
net: phy: Add support for asking the PHY its abilities
Add support for runtime determination of what the PHY supports, by adding a new function to the phy driver. The get_features call should set the phydev->supported member with the features the PHY supports. It is only called if phydrv->features is NULL. This requires minor changes to pause. The PHY driver should not set pause abilities, except for when it has odd cause capabilities, e.g. pause cannot be disabled. With this change, phydev->supported already contains the drivers abilities, including pause. So rather than considering phydrv->features, look at the phydev->supported, and enable pause if neither of the pause bits are already set. Signed-off-by: Andrew Lunn <andrew@lunn.ch> [hkallweit1@gmail.com: fixed small checkpatch complaint in one comment] Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c')
0 files changed, 0 insertions, 0 deletions