OSDN Git Service

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)
commit390b4cad81484124db2b676ed20a265adc032bae
treed20104b60f63ca70e555935a19bf89f51e5acc2c
parent623c13295cf4e2d6ee80a6e8bae43529c0f020c9
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