net: sun8i_emac: Do not configure AHB2 clock
authorChen-Yu Tsai <wens@csie.org>
Fri, 22 Jul 2016 10:16:09 +0000 (18:16 +0800)
committerHans de Goede <hdegoede@redhat.com>
Tue, 26 Jul 2016 19:56:02 +0000 (21:56 +0200)
commit687284483c15b569da25f4727b3449e1e1d0dc17
tree6d1c014867ab3ed093c6310d9933009d13660c4b
parent6d7b22a5d83ca5ea507d9a644c368771463aa070
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>
drivers/net/sun8i_emac.c