aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorAndrew Lunn <[email protected]>2019-02-09 15:24:47 +0100
committerDavid S. Miller <[email protected]>2019-02-09 09:32:04 -0800
commitefbdfdc29bdd4dbf79ad4bddc8f7a5ac62c66bfe (patch)
tree91e7fe76b8d68927e68c7284dffbc720114ec965 /tools/perf/scripts/python/exported-sql-viewer.py
parent92ed2eb7f4b73e9944b432e5c8c65ec3ec00eb9d (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 <[email protected]> [[email protected]: fixed small checkpatch complaint in one comment] Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions