]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Add callbacks for DWC xpcs Energy Efficient Ethernet
authorMichael Sit Wei Hong <michael.wei.hong.sit@intel.com>
Mon, 17 May 2021 09:43:32 +0000 (17:43 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 May 2021 22:53:58 +0000 (15:53 -0700)
commita82eae4b13033fc85cbd8b1b45b84132eeeba99b
tree3c680fdc647e8191167059fa1f6cb724333c0f12
parentf01a4bb840bea3fe30eb30211387715344812efc
net: stmmac: Add callbacks for DWC xpcs Energy Efficient Ethernet

Link xpcs callback functions for MAC to configure the xpcs EEE feature.

The clk_eee frequency is used to calculate the MULT_FACT_100NS. This is
to adjust the clock tic closer to 100ns.

Signed-off-by: Michael Sit Wei Hong <michael.wei.hong.sit@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c
drivers/net/ethernet/stmicro/stmmac/hwif.h
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
include/linux/stmmac.h