Re: [PATCH] net: phy: leds: Trigger leds only if PHY speed is known

From: Andrew Lunn
Date: Wed Aug 11 2021 - 10:39:56 EST


> I think will be easier if we protect public phylib API internally with
> lock, otherwise it is easy to make mistakes, obviously. But still this
> will not protect users which directly dereference phy_device members.

Anybody directly dereference phy_device members, rather than going
through the API, is directly responsible for any breakage they
cause. This is not a supported use case.

Andrew