]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: at803x: add support for configuring SmartEEE
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 14 Jan 2021 10:45:49 +0000 (10:45 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 15 Jan 2021 23:06:07 +0000 (15:06 -0800)
commitb00b7bb2cc0cfe4a08ca78e164bb39b4a102054d
treed20104b60f63ca70e555935a19bf89f51e5acc2c
parenta0ad1eeb7c06017b4d2ba2dc9991346306db6c76
net: phy: at803x: add support for configuring SmartEEE

SmartEEE for the atheros phy was deemed buggy by Freescale and commits
were added to disable it for their boards.

In initial testing, SolidRun found that the default settings were
causing disconnects but by increasing the Tw buffer time we could allow
enough time for all parts of the link to come out of a low power state
and function properly without causing a disconnect. This allows us to
have functional power savings of between 300 and 400mW, rather than
disabling the feature altogether.

This commit adds support for disabling SmartEEE and configuring the Tw
parameters for 1G and 100M speeds.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/at803x.c