Skip to content

Commit

Permalink
rockchip: drop all ugly phy hack code
Browse files Browse the repository at this point in the history
These junk code breaks other phy drivers, just remove it.
  • Loading branch information
aiamadeus committed Aug 21, 2022
1 parent db33967 commit 89cea59
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 5,370 deletions.
1 change: 0 additions & 1 deletion target/linux/rockchip/armv8/config-5.10
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,6 @@ CONFIG_IRQ_WORK=y
CONFIG_JBD2=y
CONFIG_JFFS2_ZLIB=y
CONFIG_JUMP_LABEL=y
CONFIG_JLSEMI_JL2XX1_PHY=y
CONFIG_KALLSYMS=y
CONFIG_KEXEC_CORE=y
CONFIG_KEXEC_FILE=y
Expand Down
1 change: 0 additions & 1 deletion target/linux/rockchip/armv8/config-5.15
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,6 @@ CONFIG_IRQ_WORK=y
CONFIG_JBD2=y
CONFIG_JFFS2_ZLIB=y
CONFIG_JUMP_LABEL=y
CONFIG_JLSEMI_JL2XX1_PHY=y
CONFIG_KALLSYMS=y
CONFIG_KEXEC_CORE=y
CONFIG_KEXEC_FILE=y
Expand Down
1 change: 0 additions & 1 deletion target/linux/rockchip/armv8/config-5.4
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ CONFIG_IRQ_WORK=y
CONFIG_JBD2=y
CONFIG_JFFS2_ZLIB=y
CONFIG_JUMP_LABEL=y
CONFIG_JLSEMI_JL2XX1_PHY=y
CONFIG_KALLSYMS=y
CONFIG_KEXEC_CORE=y
CONFIG_KEXEC_FILE=y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -766,29 +766,3 @@
+ status = "okay";
+};
+
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
@@ -363,6 +363,11 @@ int stmmac_mdio_register(struct net_device *ndev)
goto bus_register_fail;
}

+ stmmac_mdio_write(new_bus,0,31,2627);
+ stmmac_mdio_write(new_bus,0,25,0x1801);
+ stmmac_mdio_write(new_bus,0,31,0);
+ stmmac_mdio_write(new_bus,0,0,0x8000);
+
if (priv->plat->phy_node || mdio_node)
goto bus_register_done;


--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -2191,6 +2191,8 @@ static int stmmac_init_dma_engine(struct stmmac_priv *priv)
if (priv->extend_desc && (priv->mode == STMMAC_RING_MODE))
atds = 1;

+ msleep(1500);
+
ret = stmmac_reset(priv, priv->ioaddr);
if (ret) {
dev_err(priv->device, "Failed to reset the dma\n");
Loading

0 comments on commit 89cea59

Please sign in to comment.