]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: phy: intel-xway: enable integrated led functions
authorMartin Schiller <ms@dev.tdt.de>
Wed, 21 Apr 2021 05:50:47 +0000 (07:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 08:50:15 +0000 (10:50 +0200)
commit56756737ca946188bf840c72d11e4161a9fd0196
treed174aa08dea7e90891fe6f59a8c2bc1f8f25911b
parent5992f723a8c6bb7258977860dd1566e1a940de74
net: phy: intel-xway: enable integrated led functions

[ Upstream commit 357a07c26697a770d39d28b6b111f978deb4017d ]

The Intel xway phys offer the possibility to deactivate the integrated
LED function and to control the LEDs manually.
If this was set by the bootloader, it must be ensured that the
integrated LED function is enabled for all LEDs when loading the driver.

Before commit 6e2d85ec0559 ("net: phy: Stop with excessive soft reset")
the LEDs were enabled by a soft-reset of the PHY (using
genphy_soft_reset). Initialize the XWAY_MDIO_LED with it's default
value (which is applied during a soft reset) instead of adding back
the soft reset. This brings back the default LED configuration while
still preventing an excessive amount of soft resets.

Fixes: 6e2d85ec0559 ("net: phy: Stop with excessive soft reset")
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/phy/intel-xway.c