]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Enable EEE HW LPI timer with auto SW/HW switching
authorVineetha G. Jaya Kumaran <vineetha.g.jaya.kumaran@intel.com>
Tue, 27 Oct 2020 16:00:51 +0000 (00:00 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 30 Oct 2020 16:59:26 +0000 (09:59 -0700)
commit4dba7440612a1690faa272fc9237296f152782be
tree2d15f884d060a9a4ce7514a24e541bd309ee6262
parent68c1f37055a0869273daea7c6609f684abdebacb
net: stmmac: Enable EEE HW LPI timer with auto SW/HW switching

This patch enables the HW LPI Timer which controls the automatic entry
and exit of the LPI state.
The EEE LPI timer value is configured through ethtool. The driver will
auto select the LPI HW timer if the value in the HW timer supported range.
Else, the driver will fallback to SW timer.

Signed-off-by: Vineetha G. Jaya Kumaran <vineetha.g.jaya.kumaran@intel.com>
Signed-off-by: Voon Weifeng <weifeng.voon@intel.com>
Link: https://lore.kernel.org/r/20201027160051.22898-1-weifeng.voon@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/common.h
drivers/net/ethernet/stmicro/stmmac/dwmac4.h
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
drivers/net/ethernet/stmicro/stmmac/hwif.h
drivers/net/ethernet/stmicro/stmmac/stmmac.h
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c