]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: realtek: read actual speed to detect downshift
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 18 Mar 2020 22:07:24 +0000 (23:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Mar 2020 00:05:34 +0000 (17:05 -0700)
commite81f8aa47a632567969557758538e1fc2201fca2
tree67b58939ede90b36c280f78221464b45e6948488
parent3e24c529ceae0976cedfccad9dfae0872cf98c88
net: phy: realtek: read actual speed to detect downshift

At least some integrated PHY's in RTL8168/RTL8125 chip versions support
downshift, and the actual link speed can be read from a vendor-specific
register. Info about this register was provided by Realtek.
More details about downshift configuration (e.g. number of attempts)
aren't available, therefore the downshift tunable is not implemented.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/realtek.c