net: stmmac: dwmac-visconti: Fix clock configuration for RMII mode
authorYuji Ishikawa <yuji2.ishikawa@toshiba.co.jp>
Wed, 19 Jan 2022 04:46:48 +0000 (13:46 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Feb 2022 16:27:10 +0000 (17:27 +0100)
commit82688a07cc025f5242f0b03db5e790a63bb54f14
treef3fa90f4070fa35576a3338e11f1220f0a4139f7
parent27e249cafa4fb35ad28fe9952b93ca515c16f52c
net: stmmac: dwmac-visconti: Fix clock configuration for RMII mode

[ Upstream commit 0959bc4bd4206433ed101a1332a23e93ad16ec77 ]

Bit pattern of the ETHER_CLOCK_SEL register for RMII/MII mode should be fixed.
Also, some control bits should be modified with a specific sequence.

Fixes: b38dd98ff8d0 ("net: stmmac: Add Toshiba Visconti SoCs glue driver")
Signed-off-by: Yuji Ishikawa <yuji2.ishikawa@toshiba.co.jp>
Reviewed-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c