Re: [PATCH net v2 1/2] net: stmmac: fix PHY handle parsing

From: Fabian Bläse
Date: Tue Mar 14 2023 - 06:03:39 EST


On 14.03.23 08:02, Michael Sit Wei Hong wrote:
phylink_fwnode_phy_connect returns 0 when set to MLO_AN_INBAND.
This causes the PHY handle parsing to skip and the PHY will not be attached
to the MAC.

Add additional check for PHY handle parsing when set to MLO_AN_INBAND.

Fixes: ab21cf920928 ("net: stmmac: make mdio register skips PHY scanning for fixed-link")
Signed-off-by: Michael Sit Wei Hong <michael.wei.hong.sit@xxxxxxxxx>
Signed-off-by: Lai Peter Jun Ann <peter.jun.ann.lai@xxxxxxxxx>

Tested-by: Fabian Bläse <fabian@xxxxxxxxx>