1 From ffe2a80fb76ccdc1781f817f6bbc9a8aa919816e Mon Sep 17 00:00:00 2001
2 From: Alexandru Gagniuc <mr.nuke.me@gmail.com>
3 Date: Mon, 12 May 2025 09:11:05 -0500
4 Subject: [PATCH] net: pcs: qcom-ipq9574: remove "neg_mode" argument from
7 Since commit c6739623c91bb ("net: phylink: pass neg_mode into
8 .pcs_get_state() method"), the "neg_mode" parameter is part of the
9 argument list of .pcs_get_state(). This is available starting with
10 v6.14. However, we want to use the backported IPQ9574 driver on v6.12.
11 Remove this parameter from ipq_pcs_get_state(), as it is not part of
12 .pcs_get_state() in v6.12.
14 Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
16 drivers/net/pcs/pcs-qcom-ipq9574.c | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
19 --- a/drivers/net/pcs/pcs-qcom-ipq9574.c
20 +++ b/drivers/net/pcs/pcs-qcom-ipq9574.c
21 @@ -457,7 +457,7 @@ static void ipq_pcs_disable(struct phyli
22 clk_disable_unprepare(qpcs_mii->tx_clk);
25 -static void ipq_pcs_get_state(struct phylink_pcs *pcs, unsigned int neg_mode,
26 +static void ipq_pcs_get_state(struct phylink_pcs *pcs,
27 struct phylink_link_state *state)
29 struct ipq_pcs_mii *qpcs_mii = phylink_pcs_to_qpcs_mii(pcs);