net: stmmac: do not stop RX_CLK in Rx LPI state for qcs404 SoC
authorAndrey Konovalov <andrey.konovalov@linaro.org>
Thu, 26 Jan 2023 21:35:39 +0000 (00:35 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Jan 2023 07:21:25 +0000 (07:21 +0000)
commit54aa39a513dbf2164ca462a19f04519b2407a224
tree7a0cbfaab484ff6f8fe6e5c6c504efc7c589aa90
parenta6efc42a86c0c87cfe2f1c3d1f09a4c9b13ba890
net: stmmac: do not stop RX_CLK in Rx LPI state for qcs404 SoC

Currently in phy_init_eee() the driver unconditionally configures the PHY
to stop RX_CLK after entering Rx LPI state. This causes an LPI interrupt
storm on my qcs404-base board.

Change the PHY initialization so that for "qcom,qcs404-ethqos" compatible
device RX_CLK continues to run even in Rx LPI state.

Signed-off-by: Andrey Konovalov <andrey.konovalov@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
include/linux/stmmac.h