Re: [net-next PATCH v3] net: phy: Validate PHY LED OPs presence before registering

From: Andrew Lunn
Date: Tue Oct 08 2024 - 15:52:09 EST


On Tue, Oct 08, 2024 at 09:47:16PM +0200, Christian Marangi wrote:
> Validate PHY LED OPs presence before registering and parsing them.
> Defining LED nodes for a PHY driver that actually doesn't supports them
> is redundant and useless.
>
> It's also the case with Generic PHY driver used and a DT having LEDs
> node for the specific PHY.
>
> Skip it and report the error with debug print enabled.
>
> Signed-off-by: Christian Marangi <ansuelsmth@xxxxxxxxx>

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew