forked from Openwrt-EcoNet/openwrt
Add the v5 of the PCS patch. This is the latest submission as of this writing. THe last four patches are not part of the submission. They make the series work with v6.12 kernel, resolve a circular dependency with the clocks, and add the DTS node. Include them as bundle. Link: https://lore.kernel.org/lkml/20250207-ipq_pcs_6-14_rc1-v5-0-be2ebec32921@quicinc.com/ Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Link: https://github.com/openwrt/openwrt/pull/18796 Signed-off-by: Robert Marko <robimarko@gmail.com>
30 lines
1.2 KiB
Diff
30 lines
1.2 KiB
Diff
From ffe2a80fb76ccdc1781f817f6bbc9a8aa919816e Mon Sep 17 00:00:00 2001
|
|
From: Alexandru Gagniuc <mr.nuke.me@gmail.com>
|
|
Date: Mon, 12 May 2025 09:11:05 -0500
|
|
Subject: [PATCH] net: pcs: qcom-ipq9574: remove "neg_mode" argument from
|
|
ipq_pcs_get_state
|
|
|
|
Since commit c6739623c91bb ("net: phylink: pass neg_mode into
|
|
.pcs_get_state() method"), the "neg_mode" parameter is part of the
|
|
argument list of .pcs_get_state(). This is available starting with
|
|
v6.14. However, we want to use the backported IPQ9574 driver on v6.12.
|
|
Remove this parameter from ipq_pcs_get_state(), as it is not part of
|
|
.pcs_get_state() in v6.12.
|
|
|
|
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
|
|
---
|
|
drivers/net/pcs/pcs-qcom-ipq9574.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/net/pcs/pcs-qcom-ipq9574.c
|
|
+++ b/drivers/net/pcs/pcs-qcom-ipq9574.c
|
|
@@ -457,7 +457,7 @@ static void ipq_pcs_disable(struct phyli
|
|
clk_disable_unprepare(qpcs_mii->tx_clk);
|
|
}
|
|
|
|
-static void ipq_pcs_get_state(struct phylink_pcs *pcs, unsigned int neg_mode,
|
|
+static void ipq_pcs_get_state(struct phylink_pcs *pcs,
|
|
struct phylink_link_state *state)
|
|
{
|
|
struct ipq_pcs_mii *qpcs_mii = phylink_pcs_to_qpcs_mii(pcs);
|