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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Jan 2022 11:58:44 +0000 (11:58 +0000)
commit0959bc4bd4206433ed101a1332a23e93ad16ec77
tree561e7358c30ab271bfc58ffcf079379fd7bf4587
parent1ba1a4a90fa416a6f389206416c5f488cf8b1543
net: stmmac: dwmac-visconti: Fix clock configuration for RMII mode

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>
drivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c