]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'phy_check_downshift'
authorDavid S. Miller <davem@davemloft.net>
Tue, 24 Mar 2020 04:09:47 +0000 (21:09 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Mar 2020 04:09:47 +0000 (21:09 -0700)
commit7f6d26cc0ec1aeba010037c999084015d5536d98
treec50164b243112f3e3b8cc79aca4786305a9a18ed
parenta31a80c59b37446a0ba8bfd569d3708afa7602f8
parent9e0ea6c01938bf33e22ed25daef497b686311095
Merge branch 'phy_check_downshift'

Heiner Kallweit says:

====================
net: phy: add and use phy_check_downshift

So far PHY drivers have to check whether a downshift occurred to be
able to notify the user. To make life of drivers authors a little bit
easier move the downshift notification to phylib. phy_check_downshift()
compares the highest mutually advertised speed with the actual value
of phydev->speed (typically read by the PHY driver from a
vendor-specific register) to detect a downshift.

v2: Add downshift hint to phy_print_status().
====================

Signed-off-by: David S. Miller <davem@davemloft.net>