From 2690a2fe520c4952ba4beec2faf2fb2effaaa1a9 Mon Sep 17 00:00:00 2001 From: George Moussalem Date: Tue, 1 Sep 2026 12:58:11 +0400 Subject: [PATCH] qualcommax: pcs: qca-uniphy: drop kernel version checks Remove kernel version comparison directives from the QCA UNIPHY PCS driver since the qualcommax targets have been updated to kernel 6.18. Signed-off-by: George Moussalem Link: https://github.com/openwrt/openwrt/pull/24973 Signed-off-by: Christian Marangi --- .../linux/qualcommax/files/drivers/net/pcs/pcs-qca-uniphy.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/target/linux/qualcommax/files/drivers/net/pcs/pcs-qca-uniphy.c b/target/linux/qualcommax/files/drivers/net/pcs/pcs-qca-uniphy.c index 224cd9468a1..5b8c6f61822 100644 --- a/target/linux/qualcommax/files/drivers/net/pcs/pcs-qca-uniphy.c +++ b/target/linux/qualcommax/files/drivers/net/pcs/pcs-qca-uniphy.c @@ -432,9 +432,7 @@ static void qca_uniphy_pcs_get_state_10base_r(struct qca_uniphy *uniphy, } static void qca_uniphy_pcs_get_state(struct phylink_pcs *pcs, -#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 18, 0) unsigned int neg_mode, -#endif struct phylink_link_state *state) { struct qca_uniphy_pcs *upcs = to_qca_uniphy_pcs(pcs); @@ -1099,9 +1097,6 @@ static int qca_uniphy_probe(struct platform_device *pdev) for (i = 0; i < QCA_UNIPHY_CHANNELS; i++) { uniphy->port_pcs[i].pcs.ops = &qca_uniphy_pcs_ops; -#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 18, 0) - uniphy->port_pcs[i].pcs.neg_mode = true; -#endif uniphy->port_pcs[i].pcs.poll = true; uniphy->port_pcs[i].uniphy = uniphy; uniphy->port_pcs[i].channel = i;