On Fri, Feb 14, 2025 at 06:46:50PM +0100, Niklas Söderlund wrote: > When adding LED support for mv88q222x devices the PHY private data > structure was added to the mv88q211x code path, the data structure is > however only allocated during mv88q222x probe. This results in a nullptr > deference for mv88q2110 devices. > > Fix this by using a generic probe function for both mv88q211x and > mv88q222x devices that allocates the PHY private data structure, while > only the mv88q222x probes for LED support. > > Fixes: a3783dbf2574 ("net: phy: marvell-88q2xxx: Add support for PHY LEDs on 88q2xxx") > Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@xxxxxxxxxxxx> Reviewed-by: Andrew Lunn <andrew@xxxxxxx> Andrew