net/fsl: enable extended scanning in xgmac_mdio
authorJeremy Linton <jeremy.linton@arm.com>
Mon, 22 Jun 2020 15:05:34 +0000 (20:35 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jun 2020 03:35:15 +0000 (20:35 -0700)
commit0f183fd151c8c7e215385edfbdc5112d743434dc
tree02a7bfefc78a53f46621b886bf2216c6ac675201
parent229f4bb47512ece7b8ca0bd1a097fee30886b9b8
net/fsl: enable extended scanning in xgmac_mdio

Since we know the xgmac hardware always has a c45
compliant bus, let's try scanning for c22 capable
PHYs first. If we fail to find any, then it will
fall back to c45 automatically.

Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Signed-off-by: Calvin Johnson <calvin.johnson@oss.nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/xgmac_mdio.c