u-boot/drivers/net
Tony Dinh f0f98758ed net: marvell: mvgbe: Set PHY page 0 before phy_connect
For most Kirkwood boards, the PHY page is already set to page 0
(in register 22) before phy_connect is invoked. But some board like
the Zyxel NSA310S (which uses the network chip MV88E1318S), the PHY page
is not set to page 0. There seems to be some bad data remained in
register 22 when the uclass MVGBE about to invoke phy_connect().

This patch enables the uclass MVGBE to always set the PHY page to 0
before phy_connect.

For reference, please see this discussion:
[RFC PATCH v2] arm: kirkwood: nsa310s: Use Marvell uclass mvgbe
and PHY driver for DM Ethernet.
https://lists.denx.de/pipermail/u-boot/2022-April/480946.html

This patch has been tested with the following Kirkwood boards:

NSA310S (88F6702, network chip MV88E1318S)
Sheevaplug (88F6281, network chip MV88E1318)
Pogo V4 (88F6192, network chip 88E1116R)
GF Home(88F6281, network chip 88E1116R)
Dreamplug (88F6281, network chip MV88E1318)
Dell Kace M300 (88F6282, network chip MV88E1318) - out of tree u-boot

Signed-off-by: Tony Dinh <mibodhi@gmail.com>
2022-05-02 07:47:26 +02:00
..
bnxt net: brcm: netXtreme driver 2021-12-02 08:34:01 +02:00
fm treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
fsl-mc drivers: net: fsl-mc: add a command which dumps the MC log 2021-11-09 17:18:06 +05:30
ldpaa_eth treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
mscc_eswitch treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
octeontx WS cleanup: remove trailing empty lines 2021-09-30 08:08:56 -04:00
octeontx2 doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
pfe_eth doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
phy Merge branch 'next' of https://source.denx.de/u-boot/custodians/u-boot-net 2022-04-15 08:10:32 -04:00
qe treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
ti driver: net: ti: keystone_net: Change priv member type 2022-04-13 15:12:03 +03:00
ag7xxx.c treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
altera_tse.c net: phy: don't require PHY interface mode during PHY creation 2022-04-10 08:44:13 +03:00
altera_tse.h
aspeed_mdio.c drivers: net: add Aspeed MDIO driver 2021-11-23 09:57:56 +02:00
bcm-sf2-eth-gmac.c
bcm-sf2-eth-gmac.h
bcm-sf2-eth.c net: bcm-sf2: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation 2021-09-28 18:50:56 +03:00
bcm-sf2-eth.h
bcm6348-eth.c treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
bcm6368-eth.c net: bcm63xx: Don't check clk_free 2022-03-30 13:02:55 -04:00
bcmgenet.c bcmgenet, sun8i_emac: Don't connect PHY two times 2022-04-10 08:44:13 +03:00
calxedaxgmac.c WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
cortina_ni.c
cortina_ni.h
dc2114x.c
designware.c treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
designware.h
dm9000x.c net: dm9000: Add DM support 2022-04-13 15:13:54 +03:00
dm9000x.h
dsa_sandbox.c net: update NXP copyright text 2021-09-28 18:50:56 +03:00
dwc_eth_qos.c Merge branch 'next' of https://source.denx.de/u-boot/custodians/u-boot-net 2022-04-15 08:10:32 -04:00
dwmac_meson8b.c net: designware: meson8b: add g12a compatible 2021-05-14 17:46:50 +02:00
dwmac_s700.c
dwmac_socfpga.c
e1000.c WS cleanup: remove excessive empty lines 2021-09-30 08:08:56 -04:00
e1000.h WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
e1000_spi.c global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
eepro100.c net: eepro100: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation 2021-09-28 18:50:56 +03:00
eth-phy-uclass.c net: eth-phy: prevent undesired de-assertion of phy-reset on request 2022-04-10 08:44:13 +03:00
ethoc.c net: phy: don't require PHY interface mode during PHY creation 2022-04-10 08:44:13 +03:00
fec_mxc.c net: fec: prevent undesired de-assertion of phy-reset on request 2022-04-10 08:44:13 +03:00
fec_mxc.h net: fec_mxc: Declare 'promisc' as bool 2021-11-23 09:57:56 +02:00
fsl_enetc.c treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
fsl_enetc.h net: enetc: force the RGMII MAC speed/duplex instead of using in-band signaling 2021-07-06 05:22:41 +03:00
fsl_enetc_mdio.c
fsl_ls_mdio.c net: fsl: Fix busy flag polling register 2022-01-15 18:53:16 +02:00
fsl_mcdmafec.c net: mcdmafec: ensure bus->name is NULL terminated after MDIO_NAME_LEN truncation 2021-09-28 18:50:56 +03:00
fsl_mdio.c
ftgmac100.c treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
ftgmac100.h
ftmac100.c
ftmac100.h
gmac_rockchip.c clk: Allow force setting clock defaults before relocation 2021-06-17 09:40:57 +08:00
higmacv300.c treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
Kconfig net: dm9000: Add Kconfig entry 2022-04-13 15:13:54 +03:00
ks8851_mll.c
ks8851_mll.h
ksz9477.c net: add support for KSZ9477/KSZ9897/KSZ9567 GbE switch 2021-07-10 18:12:42 +02:00
lpc32xx_eth.c net: lpc32xx: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation 2021-09-28 18:50:56 +03:00
macb.c treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
macb.h
Makefile arm: Remove unused ep93xx code 2022-04-08 10:46:22 -04:00
mcffec.c m68k: Remove M54451EVB board 2021-07-18 21:03:57 -04:00
mcfmii.c Convert CONFIG_MII_INIT to Kconfig 2022-03-25 12:01:15 +00:00
mdio-ipq4019.c
mdio_mux_i2creg.c
mdio_mux_meson_g12a.c
mdio_mux_mmioreg.c
mdio_mux_sandbox.c treewide: use dm_mdio_read/write/reset() wrappers 2022-04-10 08:44:12 +03:00
mdio_sandbox.c
mpc8xx_fec.c net: mpc8xx_fec: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation 2021-09-28 18:50:56 +03:00
mt7620-eth.c treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
mt7628-eth.c
mtk_eth.c treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
mtk_eth.h
mvgbe.c net: marvell: mvgbe: Set PHY page 0 before phy_connect 2022-05-02 07:47:26 +02:00
mvgbe.h
mvmdio.c WS cleanup: remove trailing empty lines 2021-09-30 08:08:56 -04:00
mvneta.c net: mvneta: add SFP TX disable handling 2022-04-21 12:31:36 +02:00
mvpp2.c treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
netconsole.c global: Convert simple_strtoul() with decimal to dectoul() 2021-08-02 13:32:14 -04:00
pch_gbe.c net: phy: don't require PHY interface mode during PHY creation 2022-04-10 08:44:13 +03:00
pch_gbe.h
pcnet.c
pic32_eth.c treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
pic32_eth.h
pic32_mdio.c
ravb.c net: phy: don't require PHY interface mode during PHY creation 2022-04-10 08:44:13 +03:00
rtl8139.c
rtl8169.c
sandbox-raw-bus.c
sandbox-raw.c sandbox: net: Ensure host name is always a valid string 2021-07-15 18:42:05 -04:00
sandbox.c
sh_eth.c net: phy: don't require PHY interface mode during PHY creation 2022-04-10 08:44:13 +03:00
sh_eth.h
sja1105.c net: dsa: sja1105: fix device id detection 2022-01-15 18:49:13 +02:00
smc911x.c net: smc911x: ensure mdiodev->name is NULL terminated after MDIO_NAME_LEN truncation 2021-09-28 18:50:56 +03:00
smc911x.h WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
smc91111.c net: Use phys_addr_t for SMC net device addresses 2021-07-22 21:55:05 +03:00
smc91111.h global: Remove dead code that starts with CONFIG_[0-9A] 2021-08-30 14:13:28 -04:00
sni_ave.c net: phy: don't require PHY interface mode during PHY creation 2022-04-10 08:44:13 +03:00
sni_netsec.c treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
sun8i_emac.c Merge branch 'next' of https://source.denx.de/u-boot/custodians/u-boot-net 2022-04-15 08:10:32 -04:00
sunxi_emac.c Merge branch 'next' of https://source.denx.de/u-boot/custodians/u-boot-net 2022-04-15 08:10:32 -04:00
tsec.c treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
vsc7385.c
vsc9953.c
xilinx_axi_emac.c treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA 2022-04-10 08:44:13 +03:00
xilinx_axi_mrmac.c net: xilinx: axi_mrmac: Add MRMAC driver 2021-07-26 09:18:45 +02:00
xilinx_axi_mrmac.h net: xilinx: axi_mrmac: Add MRMAC driver 2021-07-26 09:18:45 +02:00
xilinx_emaclite.c
zynq_gem.c Merge branch 'next' of https://source.denx.de/u-boot/custodians/u-boot-net 2022-04-15 08:10:32 -04:00