net: stmmac: split xPCS setup from mdio register
authorVoon Weifeng <weifeng.voon@intel.com>
Tue, 8 Jun 2021 03:51:56 +0000 (11:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jun 2021 21:31:43 +0000 (14:31 -0700)
commit597a68ce32167e7d07bf40648e1501f786f60f99
treef954de48a3e1b9de82024aae9f1da6aed627f99c
parent303597e49b835471dc571849af02a99fa74ba3ae
net: stmmac: split xPCS setup from mdio register

This patch is a preparation patch for the enabling of Intel mGbE 2.5Gbps
link speed. The Intel mGbR link speed configuration (1G/2.5G) is depends on
a mdio ADHOC register which can be configured in the bios menu.
As PHY interface might be different for 1G and 2.5G, the mdio bus need be
ready to check the link speed and select the PHY interface before probing
the xPCS.

Signed-off-by: Voon Weifeng <weifeng.voon@intel.com>
Signed-off-by: Michael Sit Wei Hong <michael.wei.hong.sit@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac.h
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c