]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: phy: support 'active-high' property for PHY LEDs
authorDaniel Golle <daniel@makrotopia.org>
Thu, 10 Oct 2024 12:54:19 +0000 (13:54 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 15 Oct 2024 09:24:21 +0000 (11:24 +0200)
commita274465cc3bef2dfd9c9ea5100848dda0a8641e1
tree945ad44164bfbbb240377b7628c9d15b04953c90
parent9c5ad7bf8aff6b05fe875722f3bd4a1e9dcccea3
net: phy: support 'active-high' property for PHY LEDs

In addition to 'active-low' and 'inactive-high-impedance' also
support 'active-high' property for PHY LED pin configuration.
As only either 'active-high' or 'active-low' can be set at the
same time, WARN and return an error in case both are set.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/91598487773d768f254d5faf06cf65b13e972f0e.1728558223.git.daniel@makrotopia.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/phy/phy_device.c
include/linux/phy.h