stmmac: dwmac-mediatek: re-arrange clock setting
authorBiao Huang <biao.huang@mediatek.com>
Mon, 14 Mar 2022 07:57:09 +0000 (15:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Mar 2022 12:49:23 +0000 (12:49 +0000)
commit4fe3075fa699e681eb4c0d1d4f25577a35a4fd39
tree1c749012c323274984a01514ebabc2a55ddf33d6
parenta71e67b21081b1e0c2221c68c4edd49f37c2c313
stmmac: dwmac-mediatek: re-arrange clock setting

The rmii_internal clock is needed only when PHY
interface is RMII, and reference clock is from MAC.

Re-arrange the clock setting as following:
1. the optional "rmii_internal" is controlled by devm_clk_get(),
2. other clocks still be configured by devm_clk_bulk_get().

Signed-off-by: Biao Huang <biao.huang@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c