]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: dwmac-sun8i: make clk really gated during rpm suspended
authorJisheng Zhang <jszhang@kernel.org>
Fri, 28 Jan 2022 14:52:13 +0000 (22:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Jan 2022 15:15:04 +0000 (15:15 +0000)
commit761ce7a88433e5cde4a4170e146c8d3089356b64
tree5d10cccd6640c66fd847d7637ac63e2ed7d3016f
parent8ec60684891ca9c47e9643c92218c4eb1f1b32bd
net: stmmac: dwmac-sun8i: make clk really gated during rpm suspended

Currently, the dwmac-sun8i's stmmaceth clk isn't disabled even if the
the device has been runtime suspended. The reason is the driver gets
the "stmmaceth" clk as tx_clk and enabling it during probe. But
there's no other usage of tx_clk except preparing and enabling, so
we can remove tx_clk and its usage then rely on the common routine
stmmac_probe_config_dt() to prepare and enable the stmmaceth clk
during driver initialization, and benefit from the runtime pm feature
after probed.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c