diff options
author | Andrew Lunn <andrew@lunn.ch> | 2024-02-27 04:29:07 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-02-28 15:18:04 +0300 |
commit | 17206c116d756268824db0acb272e2ac4230bd36 (patch) | |
tree | a3ff1fcab0598053986f92cdaae5206e05e65a3d /drivers/net/usb/Kconfig | |
parent | 2e26b6dfade4db750809b9231cce49498bb71767 (diff) | |
download | linux-17206c116d756268824db0acb272e2ac4230bd36.tar.xz |
net: usb: r8152: Use linkmode helpers for EEE
Make use of the existing linkmode helpers for converting PHY EEE
register values into links modes, now that ethtool_keee uses link
modes, rather than u32 values.
Rework determining if EEE is active to make is similar as to how
phylib decides, and make use of a phylib helper to validate if EEE is
valid in for the current link mode. This then requires that PHYLIB is
selected.
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/Kconfig')
-rw-r--r-- | drivers/net/usb/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/usb/Kconfig b/drivers/net/usb/Kconfig index 3fd7dccf0f9c..3c360d4f0635 100644 --- a/drivers/net/usb/Kconfig +++ b/drivers/net/usb/Kconfig @@ -99,6 +99,7 @@ config USB_RTL8150 config USB_RTL8152 tristate "Realtek RTL8152/RTL8153 Based USB Ethernet Adapters" select MII + select PHYLIB select CRC32 select CRYPTO select CRYPTO_HASH |