]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: stmmac: dwmac-rk: Fix clk rate when provided by soc
authorHeiko Stübner <heiko@sntech.de>
Sun, 21 Jun 2015 19:52:52 +0000 (21:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 17:26:18 +0000 (19:26 +0200)
commit2a0538e207c245fa649a090eaa3585302eb950e5
tree17b3ebabb0d540e0232ca13beffffd0c01f2f6ee
parent4d95fbcd38406f6747aeb86560a15a95e4527cc4
net: stmmac: dwmac-rk: Fix clk rate when provided by soc

commit c48fa33c1fb2ccdb4bcc863a7b841f11efe0f8b0 upstream.

The first iteration of the dwmac-rk support did access an intermediate
clock directly below the pll selector. This was removed in a subsequent
revision, but the clock and one invocation remained. This results in
the driver trying to set the rate of a non-existent clock when the soc
and not some external source provides the phy clock for RMII phys.

So set the rate of the correct clock and remove the remaining now
completely unused definition.

Fixes: 436f5ae08f9d ("GMAC: add driver for Rockchip RK3288 SoCs integrated GMAC")
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c