diff options
author | Andrey Konovalov <andrey.konovalov@linaro.org> | 2023-01-27 00:35:39 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-01-30 07:21:25 +0000 |
commit | 54aa39a513dbf2164ca462a19f04519b2407a224 (patch) | |
tree | 7a0cbfaab484ff6f8fe6e5c6c504efc7c589aa90 /drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | |
parent | a6efc42a86c0c87cfe2f1c3d1f09a4c9b13ba890 (diff) | |
download | lwn-54aa39a513dbf2164ca462a19f04519b2407a224.tar.gz lwn-54aa39a513dbf2164ca462a19f04519b2407a224.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c index 835caa15d55f..732774645c1a 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c @@ -560,6 +560,8 @@ static int qcom_ethqos_probe(struct platform_device *pdev) plat_dat->has_gmac4 = 1; plat_dat->pmt = 1; plat_dat->tso_en = of_property_read_bool(np, "snps,tso"); + if (of_device_is_compatible(np, "qcom,qcs404-ethqos")) + plat_dat->rx_clk_runs_in_lpi = 1; ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); if (ret) |