From af50e4d6c863ae93f753578a9ff0726f27d44fd5 Mon Sep 17 00:00:00 2001 From: Jonas Jelonek Date: Sun, 30 Nov 2025 12:26:15 +0000 Subject: [PATCH] realtek: pcs: 6.18: fix neg_mode handling Between 6.12 and 6.18, neg_mode moved from struct phylink_pcs to a parameter passed to pcs_get_state. Adjust the implementation accordingly. Signed-off-by: Jonas Jelonek Link: https://github.com/openwrt/openwrt/pull/21181 Signed-off-by: Robert Marko --- .../linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c b/target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c index 14ea03b1cd..e2af24b105 100644 --- a/target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c +++ b/target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c @@ -3823,7 +3823,8 @@ static int rtpcs_931x_init(struct rtpcs_ctrl *ctrl) /* Common functions */ -static void rtpcs_pcs_get_state(struct phylink_pcs *pcs, struct phylink_link_state *state) +static void rtpcs_pcs_get_state(struct phylink_pcs *pcs, unsigned int neg_mode, + struct phylink_link_state *state) { struct rtpcs_link *link = rtpcs_phylink_pcs_to_link(pcs); struct rtpcs_ctrl *ctrl = link->ctrl; @@ -3995,7 +3996,6 @@ struct phylink_pcs *rtpcs_create(struct device *dev, struct device_node *np, int link->port = port; link->sds = sds; link->pcs.ops = ctrl->cfg->pcs_ops; - link->pcs.neg_mode = true; ctrl->link[port] = link;