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)
committerDom Cobley <popcornmix@gmail.com>
Fri, 24 Jun 2022 10:20:43 +0000 (11:20 +0100)
commit145c2c74d273063576915db7fe904956b266c0ed
tree1c7da450ec2801a4fe819e6b5925bda8a50b827c
parent3e989aad29391966dcc1a04586a5d88807d32dd1
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