OSDN Git Service

net: phy: broadcom: Enable 10BaseT DAC early wake
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 16 Sep 2021 21:27:41 +0000 (14:27 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 17 Sep 2021 02:11:17 +0000 (19:11 -0700)
commit8dc84dcd7f74b50f81de3dbf6f6b5b146e3a8eea
tree26b550162b1d4a1ac01f2614a1025c03fd13def4
parent44ded7ca63f1957c55bd1cb280a717aa69c51ec6
net: phy: broadcom: Enable 10BaseT DAC early wake

Enable the DAC early wake when then link operates at 10BaseT allows
power savings in the hundreds of milli Watts by shutting down the
transmitter. A number of errata have been issued for various Gigabit
PHYs and the recommendation is to enable both the early and forced DAC
wake to be on the safe side. This needs to be done dynamically based
upon the link state, which is why a link_change_notify callback is
utilized.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20210916212742.1653088-1-f.fainelli@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/broadcom.c
include/linux/brcmphy.h