net: stmmac: make mdio register skips PHY scanning for fixed-link
authorOng Boon Leong <boon.leong.ong@intel.com>
Wed, 15 Jun 2022 08:39:08 +0000 (16:39 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jun 2022 09:55:35 +0000 (10:55 +0100)
commitab21cf920928a791aa70b8665b395294da17667c
tree1ff996b6875f488a0eac6d854f459e4d5260a612
parent72edaf39fc6511b9b30615027cdfafc6d330dd9c
net: stmmac: make mdio register skips PHY scanning for fixed-link

stmmac_mdio_register() lacks fixed-link consideration and only skip PHY
scanning if it has done DT style PHY discovery. So, for DT or ACPI _DSD
setting of fixed-link, the PHY scanning should not happen.

v2: fix incorrect order related to fwnode that is not caught in non-DT
    platform.

Tested-by: Emilio Riva <emilio.riva@ericsson.com>
Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c