]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Apr 2021 17:59:17 +0000 (10:59 -0700)
commit9f2a450f9eeb911e7689048d97b05cf0170fb213
tree7579644b422c0e389fdc614566f90da0a90d6e59
parenta6690e25d9347a9075754605ede4a89046d1c9fc
net: phy: intel-xway: enable integrated led functions

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 0e1533a35669 ("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: 0e1533a35669 ("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>
drivers/net/phy/intel-xway.c