net: stmmac: dwmac-meson8b: only configure the clocks in RGMII mode
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Mon, 15 Jan 2018 17:10:12 +0000 (18:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Jan 2018 19:41:05 +0000 (14:41 -0500)
commit37512b42f082d784a012c3734ef109f25d199786
tree9a5b0fb858f73ecfc1cb013346b1c7cdc11dc9a6
parent416ef9b15c688b91edbf654ebe7bc349c9151147
net: stmmac: dwmac-meson8b: only configure the clocks in RGMII mode

Neither the m25_div_clk nor the m250_div_clk or m250_mux_clk are used in
RMII mode. The m25_div_clk output is routed to the RGMII PHY's "RGMII
clock".
This means that we don't need to configure the clocks in RMII mode. The
driver however did this - with no effect since the clocks are not routed
to the PHY in RMII mode.

While here also rename meson8b_init_clk to meson8b_init_rgmii_tx_clk to
make it easier to understand the code.

Fixes: 566e8251625304 ("net: stmmac: add a glue driver for the Amlogic Meson 8b / GXBB DWMAC")
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Tested-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c