Merge branch 'net-phy-generic-polarity-led-support-for-qca808x'
authorJakub Kicinski <kuba@kernel.org>
Sat, 27 Jan 2024 05:03:43 +0000 (21:03 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 27 Jan 2024 05:03:43 +0000 (21:03 -0800)
commitc09f32a859458002b40ba44fc736329a4c0fe4e5
tree9b7bc7adc9a3950640e99831b640dceb9c46ecd3
parent5642c82b9463c3263c086efb002516244bd4c668
parent7196062b64ee470b91015f3d2e82d225948258ea
Merge branch 'net-phy-generic-polarity-led-support-for-qca808x'

Christian Marangi says:

====================
net: phy: generic polarity + LED support for qca808x

This small series add LEDs support for qca808x.

QCA808x apply on PHY reset a strange polarity settings and require
some tweak to apply a more common configuration found on devices.
On adding support for it, it was pointed out that a similar
feature is also being implemented for a marvell PHY where
LED polarity is set per LED (and not global) and also have
a special mode where the LED is tristated.

The first 3 patch are to generalize this as we expect more PHY
in the future to have a similar configuration.

The implementation is extensible to support additional special
mode in the future with minimal changes and don't create regression
on already implemented PHY drivers.
====================

Link: https://lore.kernel.org/r/20240125203702.4552-1-ansuelsmth@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>