net: phy: qca808x: fix the active-high LED polarity mode
Status from this message: This series was applied to netdev/net-next.git (main)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 2 repliesApplied 2/2
- v21 patch 3 repliesSuperseded
- v11 patch 1 replySuperseded
Patches in v3 All 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | net: phy: qca808x: accept the active-high LED polarity modedrivers/ | +3 | 1 reply | Applied |
| 2/2 | net: phy: qca808x: keep an explicit active-high LED across the resetdrivers/ | +7 | 1 reply | Applied |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Christian Marangi |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net v3 0/2] net: phy: qca808x: fix the active-high LED polarity mode
A QCA8081 with an 'active-high' LED node does not work today, in two separate ways, so this is now two patches: qca808x_led_polarity_set() rejects the mode outright, and once it stops doing that qca808x_config_init() still will not put the bit back after the reset phy_init_hw() runs.
Tested in QEMU against a synthetic MDIO bus that answers as a QCA8081 and emulates MMD7 0x901a, with the reset clearing BIT(6) as f203c8c77c76 describes. One kernel, one harness, three arms, x86_64, 7.3.0-rc2+:
DT node base 1/2 only 1/2 + 2/2 active-high -EINVAL inverted correct active-low correct correct correct no polarity node correct correct correct high-impedance -EINVAL -EINVAL -EINVAL
Still no QCA808x hardware here; the harness emulates the one register, so a confirmation on a real board would be welcome.
Changes since v2: https://lore.kernel.org/netdev/[email protected]/
- Split in two, one defect each, per Christian Marangi.
- Add QCA808X_PHY_LED_UNSET and express the condition as
PHY_LED_ACTIVE_LOW instead of bare -1/0/1, per Christian Marangi.
- Tested rather than compile-tested; see the table above.
Donggeun Yoo (2):
net: phy: qca808x: accept the active-high LED polarity mode
net: phy: qca808x: keep an explicit active-high LED across the reset
drivers/net/phy/qcom/qca808x.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-)
Signature · 1 line
2.53.0