diff options
| author | Alexandru Gagniuc | 2025-11-27 20:11:11 +0000 |
|---|---|---|
| committer | Robert Marko | 2025-11-30 15:51:12 +0000 |
| commit | 6891dc2562312753943cabb5de158153d3998d93 (patch) | |
| tree | 56c6d71708e377be1c93e5f97e78ece46a27d857 | |
| parent | 2b3efc300ad761084fe41c0763e0c74d01b10d14 (diff) | |
| download | openwrt-6891dc2562312753943cabb5de158153d3998d93.tar.gz | |
qualcommbe: use ipq_pcs_get/put() in PPE (MAC) driver
ipq_unipcs_create/destroy() are provided by an older version of the
IPQ9574 PCS driver. Use the renamed versions ipq_pcs_get/put() to
allow updating the PCS driver.
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20993
Signed-off-by: Robert Marko <robimarko@gmail.com>
| -rw-r--r-- | target/linux/qualcommbe/patches-6.12/0338-net-ethernet-qualcomm-Add-phylink-support-for-PPE-MA.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/qualcommbe/patches-6.12/0338-net-ethernet-qualcomm-Add-phylink-support-for-PPE-MA.patch b/target/linux/qualcommbe/patches-6.12/0338-net-ethernet-qualcomm-Add-phylink-support-for-PPE-MA.patch index 348e834f80..b108366b1a 100644 --- a/target/linux/qualcommbe/patches-6.12/0338-net-ethernet-qualcomm-Add-phylink-support-for-PPE-MA.patch +++ b/target/linux/qualcommbe/patches-6.12/0338-net-ethernet-qualcomm-Add-phylink-support-for-PPE-MA.patch @@ -102,7 +102,7 @@ Signed-off-by: Lei Wei <quic_leiwei@quicinc.com> + +#include <linux/clk.h> +#include <linux/of_net.h> -+#include <linux/pcs/pcs-qcom-ipq-uniphy.h> ++#include <linux/pcs/pcs-qcom-ipq9574.h> +#include <linux/phylink.h> +#include <linux/reset.h> +#include <linux/regmap.h> @@ -494,7 +494,7 @@ Signed-off-by: Lei Wei <quic_leiwei@quicinc.com> + if (!pcs_node) + return -ENODEV; + -+ ppe_port->pcs = ipq_unipcs_create(pcs_node); ++ ppe_port->pcs = ipq_pcs_get(pcs_node); + of_node_put(pcs_node); + if (IS_ERR(ppe_port->pcs)) { + dev_err(ppe_dev->dev, "%s: port %d failed to create PCS\n", @@ -551,7 +551,7 @@ Signed-off-by: Lei Wei <quic_leiwei@quicinc.com> + phylink_destroy(ppe_port->phylink); + ppe_port->phylink = NULL; +err_free_pcs: -+ ipq_unipcs_destroy(ppe_port->pcs); ++ ipq_pcs_put(ppe_port->pcs); + ppe_port->pcs = NULL; + return ret; +} @@ -576,7 +576,7 @@ Signed-off-by: Lei Wei <quic_leiwei@quicinc.com> + + /* Destroy PCS */ + if (ppe_port->pcs) { -+ ipq_unipcs_destroy(ppe_port->pcs); ++ ipq_pcs_put(ppe_port->pcs); + ppe_port->pcs = NULL; + } +} |