]> git.dujemihanovic.xyz Git - linux.git/commit
net: stmmac: dwmac-qcom-ethqos: Fix drops in 10M SGMII RX
authorSneh Shah <quic_snehshah@quicinc.com>
Tue, 12 Dec 2023 09:22:08 +0000 (14:52 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 14 Dec 2023 09:51:08 +0000 (10:51 +0100)
commit981d947bcd382c3950a593690e0e13d194d65b1c
tree34b6cb4dd6310356ed50e7ea08d9c0bf8d69b3b4
parent89e0c6467eefec542e49712d987086cb2a43d7a3
net: stmmac: dwmac-qcom-ethqos: Fix drops in 10M SGMII RX

In 10M SGMII mode all the packets are being dropped due to wrong Rx clock.
SGMII 10MBPS mode needs RX clock divider programmed to avoid drops in Rx.
Update configure SGMII function with Rx clk divider programming.

Fixes: 463120c31c58 ("net: stmmac: dwmac-qcom-ethqos: add support for SGMII")
Tested-by: Andrew Halaney <ahalaney@redhat.com>
Signed-off-by: Sneh Shah <quic_snehshah@quicinc.com>
Reviewed-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Link: https://lore.kernel.org/r/20231212092208.22393-1-quic_snehshah@quicinc.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c