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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Feb 2023 11:57:02 +0000 (12:57 +0100)
commit4fdc19e4fa238e4a12983c54dc1d0d201a00dc18
tree31a24b4441eda90bef0cfbc5a3ce50abc66a9740
parent6769cd8a74880869357fea3b74a40d3262c39048
net: stmmac: do not stop RX_CLK in Rx LPI state for qcs404 SoC

[ Upstream commit 54aa39a513dbf2164ca462a19f04519b2407a224 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
include/linux/stmmac.h