net: phy: qcom: qca808x: default to LED active High if not set
authorChristian Marangi <ansuelsmth@gmail.com>
Thu, 1 Feb 2024 13:46:01 +0000 (14:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Feb 2024 12:50:45 +0000 (12:50 +0000)
commitf203c8c77c7616c099647636f4c67d59a45fe8a2
treea01b18cf0669e7bdc8bfb78c45300a6217c4b5b5
parentf2ec98566775dd4341ec1dcf93aa5859c60de826
net: phy: qcom: qca808x: default to LED active High if not set

qca808x PHY provide support for the led_polarity_set OP to configure
and apply the active-low property but on PHY reset, the Active High bit
is not set resulting in the LED driven as active-low.

To fix this, check if active-low is not set in DT and enable Active High
polarity by default to restore correct funcionality of the LED.

Fixes: 7196062b64ee ("net: phy: at803x: add LED support for qca808x")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/qcom/qca808x.c