summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2016-07-22 10:16:09 (GMT)
committerHans de Goede <hdegoede@redhat.com>2016-07-26 19:56:02 (GMT)
commit687284483c15b569da25f4727b3449e1e1d0dc17 (patch)
tree6d1c014867ab3ed093c6310d9933009d13660c4b /drivers/net
parent6d7b22a5d83ca5ea507d9a644c368771463aa070 (diff)
downloadu-boot-687284483c15b569da25f4727b3449e1e1d0dc17.tar.xz
net: sun8i_emac: Do not configure AHB2 clock
The sun8i_emac driver erroneously configures the AHB2 clock when it assumes it is configuring the AXI gates, which is not even documented or ever appeared in either the WiP kernel driver or Allwinner's original driver. As a result, AHB2 clock mux is set to an invalid setting, making the EPHY unusable. Fixes: a29710c525ff ("net: Add EMAC driver for H3/A83T/A64 SoCs.") Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/sun8i_emac.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/sun8i_emac.c b/drivers/net/sun8i_emac.c
index 4bed50d..508fbfe 100644
--- a/drivers/net/sun8i_emac.c
+++ b/drivers/net/sun8i_emac.c
@@ -599,9 +599,6 @@ static void sun8i_emac_board_setup(struct emac_eth_dev *priv)
/* Set clock gating for emac */
setbits_le32(&ccm->ahb_gate0, BIT(AHB_GATE_OFFSET_GMAC));
- /* Set EMAC clock */
- setbits_le32(&ccm->axi_gate, (BIT(1) | BIT(0)));
-
/* De-assert EMAC */
setbits_le32(&ccm->ahb_reset0_cfg, BIT(AHB_RESET_OFFSET_GMAC));
}