]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: phy: intel-xway: add support for PHY LEDs
authorDaniel Golle <daniel@makrotopia.org>
Thu, 10 Oct 2024 12:55:29 +0000 (13:55 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 15 Oct 2024 09:24:22 +0000 (11:24 +0200)
commit1758af47b98c17da464cb45f476875150955dd48
treec2f0edeae76cf7bb6c0debc61017ecb7a00506ab
parenteb89c79c1b8f17fc1611540768678e60df89ac42
net: phy: intel-xway: add support for PHY LEDs

The intel-xway PHY driver predates the PHY LED framework and currently
initializes all LED pins to equal default values.

Add PHY LED functions to the drivers and don't set default values if
LEDs are defined in device tree.

According the datasheets 3 LEDs are supported on all Intel XWAY PHYs.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/81f4717ab9acf38f3239727a4540ae96fd01109b.1728558223.git.daniel@makrotopia.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/phy/intel-xway.c