]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
kernel/ipq40xx: refresh patches for v6.18
authorTil Kaiser <mail@tk154.de>
Sun, 1 Feb 2026 15:04:04 +0000 (16:04 +0100)
committerNick Hainke <vincent@systemli.org>
Fri, 8 May 2026 22:23:52 +0000 (00:23 +0200)
Refreshed patches for ipq40xx/patches-6.18
by running make target/linux/refresh.

Signed-off-by: Til Kaiser <mail@tk154.de>
Link: https://github.com/openwrt/openwrt/pull/22930
Signed-off-by: Nick Hainke <vincent@systemli.org>
16 files changed:
target/linux/ipq40xx/patches-6.18/100-ARM-dts-qcom-ipq4019-add-label-to-SCM.patch
target/linux/ipq40xx/patches-6.18/104-clk-fix-apss-cpu-overclocking.patch
target/linux/ipq40xx/patches-6.18/301-arm-compressed-add-appended-DTB-section.patch
target/linux/ipq40xx/patches-6.18/400-mmc-sdhci-sdhci-msm-use-sdhci_set_clock-instead-of-s.patch
target/linux/ipq40xx/patches-6.18/700-net-ipqess-introduce-the-Qualcomm-IPQESS-driver.patch
target/linux/ipq40xx/patches-6.18/701-net-dsa-add-out-of-band-tagging-protocol.patch
target/linux/ipq40xx/patches-6.18/702-net-ipqess-Add-out-of-band-DSA-tagging-support.patch
target/linux/ipq40xx/patches-6.18/704-net-qualcomm-ipqess-enable-threaded-NAPI-by-default.patch
target/linux/ipq40xx/patches-6.18/705-ARM-dts-qcom-ipq4019-Add-description-for-the-IPQESS-.patch
target/linux/ipq40xx/patches-6.18/707-arm-dts-ipq4019-add-switch-node.patch
target/linux/ipq40xx/patches-6.18/710-arm-dts-ipq4019-QCA807x-properties.patch
target/linux/ipq40xx/patches-6.18/712-ARM-dts-qcom-ipq4019-add-reference-label-for-PCIe.patch
target/linux/ipq40xx/patches-6.18/850-soc-add-qualcomm-syscon.patch
target/linux/ipq40xx/patches-6.18/900-PCI-qcom-add-hack-compatible-for-ipq4019-Lantiq-DSL.patch
target/linux/ipq40xx/patches-6.18/910-Revert-firmware-qcom_scm-Clear-download-bit-during-r.patch
target/linux/ipq40xx/patches-6.18/999-atm-mpoa-intel-dsl-phy-support.patch

index 23d8745bdef15562e75c24d01f934e764926a815..67ac2e0cc97d12baed5beeee50e15e69b0b54e7e 100644 (file)
@@ -13,7 +13,7 @@ Signed-off-by: Robert Marko <robimarko@gmail.com>
 
 --- a/arch/arm/boot/dts/qcom/qcom-ipq4019.dtsi
 +++ b/arch/arm/boot/dts/qcom/qcom-ipq4019.dtsi
-@@ -155,7 +155,7 @@
+@@ -151,7 +151,7 @@
        };
  
        firmware {
index 378e530ef6f8c8a9f0f9b5b917acf22c7867e374..99c3e9ffb5d812bd4ec2905712528e7a8095c823 100644 (file)
@@ -74,16 +74,16 @@ Signed-off-by: John Crispin <john@phrozen.org>
  /*
   * Round rate function for APSS CPU PLL Clock divider.
   * It looks up the frequency table and returns the next higher frequency
-@@ -132,7 +155,7 @@ static long clk_cpu_div_round_rate(struc
+@@ -132,7 +155,7 @@ static int clk_cpu_div_determine_rate(st
        struct clk_hw *p_hw;
        const struct freq_tbl *f;
  
--      f = qcom_find_freq(pll->freq_tbl, rate);
-+      f = qcom_find_freq_close(pll->freq_tbl, rate);
+-      f = qcom_find_freq(pll->freq_tbl, req->rate);
++      f = qcom_find_freq_close(pll->freq_tbl, req->rate);
        if (!f)
                return -EINVAL;
  
-@@ -154,7 +177,7 @@ static int clk_cpu_div_set_rate(struct c
+@@ -156,7 +179,7 @@ static int clk_cpu_div_set_rate(struct c
        const struct freq_tbl *f;
        u32 mask;
  
@@ -92,7 +92,7 @@ Signed-off-by: John Crispin <john@phrozen.org>
        if (!f)
                return -EINVAL;
  
-@@ -181,6 +204,7 @@ static unsigned long
+@@ -183,6 +206,7 @@ static unsigned long
  clk_cpu_div_recalc_rate(struct clk_hw *hw,
                        unsigned long parent_rate)
  {
@@ -100,7 +100,7 @@ Signed-off-by: John Crispin <john@phrozen.org>
        struct clk_fepll *pll = to_clk_fepll(hw);
        u32 cdiv, pre_div;
        u64 rate;
-@@ -201,7 +225,11 @@ clk_cpu_div_recalc_rate(struct clk_hw *h
+@@ -203,7 +227,11 @@ clk_cpu_div_recalc_rate(struct clk_hw *h
        rate = clk_fepll_vco_calc_rate(pll, parent_rate) * 2;
        do_div(rate, pre_div);
  
index 0448574e7e5e0eec38d6978d767ec3c26ba10972..25d3e879752a8dc68596bc12f790a128ac716224 100644 (file)
@@ -26,7 +26,7 @@ Signed-off-by: Robert Marko <robimarko@gmail.com>
 
 --- a/arch/arm/boot/compressed/vmlinux.lds.S
 +++ b/arch/arm/boot/compressed/vmlinux.lds.S
-@@ -103,6 +103,13 @@ SECTIONS
+@@ -104,6 +104,13 @@ SECTIONS
  
    _edata = .;
  
@@ -40,7 +40,7 @@ Signed-off-by: Robert Marko <robimarko@gmail.com>
    /*
     * The image_end section appears after any additional loadable sections
     * that the linker may decide to insert in the binary image.  Having
-@@ -140,4 +147,4 @@ SECTIONS
+@@ -141,4 +148,4 @@ SECTIONS
  
    ARM_ASSERTS
  }
index 7bba4d7111b6fdbd41632a292a45df3a998a3488..2a41e088ef1d576cb068f29211798d633b12f818 100644 (file)
@@ -13,7 +13,7 @@ Signed-off-by: Robert Marko <robert.marko@sartura.hr>
 
 --- a/drivers/mmc/host/sdhci-msm.c
 +++ b/drivers/mmc/host/sdhci-msm.c
-@@ -2401,7 +2401,7 @@ MODULE_DEVICE_TABLE(of, sdhci_msm_dt_mat
+@@ -2454,7 +2454,7 @@ MODULE_DEVICE_TABLE(of, sdhci_msm_dt_mat
  
  static const struct sdhci_ops sdhci_msm_ops = {
        .reset = sdhci_and_cqhci_reset,
index ce22642f68c0b97ac56778a458c71bda71d7cb9d..d1bc5e9bde7ab8a0cff3e192881212a9162a1e88 100644 (file)
@@ -32,7 +32,7 @@ Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
 
 --- a/MAINTAINERS
 +++ b/MAINTAINERS
-@@ -19038,6 +19038,13 @@ L:    netdev@vger.kernel.org
+@@ -21140,6 +21140,13 @@ L:    netdev@vger.kernel.org
  S:    Maintained
  F:    drivers/net/ethernet/qualcomm/emac/
  
@@ -48,9 +48,9 @@ Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
  L:    netdev@vger.kernel.org
 --- a/drivers/net/ethernet/qualcomm/Kconfig
 +++ b/drivers/net/ethernet/qualcomm/Kconfig
-@@ -61,6 +61,17 @@ config QCOM_EMAC
-         low power, Receive-Side Scaling (RSS), and IEEE 1588-2008
-         Precision Clock Synchronization Protocol.
+@@ -75,6 +75,17 @@ config QCOM_PPE
+         To compile this driver as a module, choose M here. The module
+         will be called qcom-ppe.
  
 +config QCOM_IPQ4019_ESS_EDMA
 +      tristate "Qualcomm Atheros IPQ4019 ESS EDMA support"
@@ -68,12 +68,13 @@ Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
  endif # NET_VENDOR_QUALCOMM
 --- a/drivers/net/ethernet/qualcomm/Makefile
 +++ b/drivers/net/ethernet/qualcomm/Makefile
-@@ -11,4 +11,6 @@ qcauart-objs := qca_uart.o
+@@ -11,5 +11,7 @@ qcauart-objs := qca_uart.o
  
  obj-y += emac/
  
 +obj-$(CONFIG_QCOM_IPQ4019_ESS_EDMA) += ipqess/
 +
+ obj-$(CONFIG_QCOM_PPE) += ppe/
  obj-$(CONFIG_RMNET) += rmnet/
 --- /dev/null
 +++ b/drivers/net/ethernet/qualcomm/ipqess/Makefile
@@ -1326,7 +1327,7 @@ Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
 +              .of_match_table = ipqess_of_mtable,
 +      },
 +      .probe    = ipqess_axi_probe,
-+      .remove_new   = ipqess_axi_remove,
++      .remove   = ipqess_axi_remove,
 +};
 +
 +module_platform_driver(ipqess_axi_driver);
index 2a350b033651b061d369380a51a321c75402154d..503e9cafdecaf939bf1f1d167d73096a5a09016a 100644 (file)
@@ -64,7 +64,7 @@ Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
  
 --- a/MAINTAINERS
 +++ b/MAINTAINERS
-@@ -19044,6 +19044,7 @@ L:     netdev@vger.kernel.org
+@@ -21146,6 +21146,7 @@ L:     netdev@vger.kernel.org
  S:    Maintained
  F:    Documentation/devicetree/bindings/net/qcom,ipq4019-ess-edma.yaml
  F:    drivers/net/ethernet/qualcomm/ipqess/
@@ -93,9 +93,9 @@ Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
 +#endif
 --- a/include/linux/skbuff.h
 +++ b/include/linux/skbuff.h
-@@ -4850,6 +4850,9 @@ enum skb_ext_id {
- #if IS_ENABLED(CONFIG_MCTP_FLOWS)
-       SKB_EXT_MCTP,
+@@ -4920,6 +4920,9 @@ enum skb_ext_id {
+ #if IS_ENABLED(CONFIG_INET_PSP)
+       SKB_EXT_PSP,
  #endif
 +#if IS_ENABLED(CONFIG_NET_DSA_TAG_OOB)
 +      SKB_EXT_DSA_OOB,
@@ -123,9 +123,9 @@ Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
  struct dsa_switch;
 --- a/net/core/skbuff.c
 +++ b/net/core/skbuff.c
-@@ -65,8 +65,12 @@
- #include <linux/kcov.h>
+@@ -66,8 +66,12 @@
  #include <linux/iov_iter.h>
+ #include <linux/crc32.h>
  #include <linux/if.h>
 +#ifdef CONFIG_NET_DSA_TAG_OOB
 +#include <linux/dsa/oob.h>
@@ -136,9 +136,9 @@ Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
  #include <net/dst.h>
  #include <net/sock.h>
  #include <net/checksum.h>
-@@ -5067,6 +5071,9 @@ static const u8 skb_ext_type_len[] = {
- #if IS_ENABLED(CONFIG_MCTP_FLOWS)
-       [SKB_EXT_MCTP] = SKB_EXT_CHUNKSIZEOF(struct mctp_flow),
+@@ -5082,6 +5086,9 @@ static const u8 skb_ext_type_len[] = {
+ #if IS_ENABLED(CONFIG_INET_PSP)
+       [SKB_EXT_PSP] = SKB_EXT_CHUNKSIZEOF(struct psp_skb_ext),
  #endif
 +#if IS_ENABLED(CONFIG_NET_DSA_TAG_OOB)
 +      [SKB_EXT_DSA_OOB] = SKB_EXT_CHUNKSIZEOF(struct dsa_oob_tag_info),
index f6c58c912860358e3dca384cfc66b8e240878bc3..7f67a15664d0585bc1b834eaff15ea5b50be127b 100644 (file)
@@ -25,7 +25,7 @@ Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
 
 --- a/drivers/net/ethernet/qualcomm/Kconfig
 +++ b/drivers/net/ethernet/qualcomm/Kconfig
-@@ -65,6 +65,7 @@ config QCOM_IPQ4019_ESS_EDMA
+@@ -79,6 +79,7 @@ config QCOM_IPQ4019_ESS_EDMA
        tristate "Qualcomm Atheros IPQ4019 ESS EDMA support"
        depends on (OF && ARCH_QCOM) || COMPILE_TEST
        select PHYLINK
index b85a9633fe2f1b080f75471f5300b4f9c859dec5..833a3c0c1688b8b9d60a8922455de6a0b4ab286f 100644 (file)
@@ -42,7 +42,7 @@ Signed-off-by: Robert Marko <robimarko@gmail.com>
        if (err)
                goto err_notifier_unregister;
  
-+      dev_set_threaded(netdev, true);
++      dev_set_threaded(netdev, NETDEV_NAPI_THREADED_ENABLED);
 +
        return 0;
  
index 3fea0cce550c0dce27b72781d4c129473bf55ece..8b9d36c24a9a224becf8f967da8af4242de968a5 100644 (file)
@@ -21,7 +21,7 @@ Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
 
 --- a/arch/arm/boot/dts/qcom/qcom-ipq4019.dtsi
 +++ b/arch/arm/boot/dts/qcom/qcom-ipq4019.dtsi
-@@ -600,6 +600,54 @@
+@@ -597,6 +597,54 @@
                        status = "disabled";
                };
  
index bd41ceac1677efb3c511abd85711ee0feb7e8b44..80d2660dccd17752d05eb1af32e5e39ec6fdbd1b 100644 (file)
@@ -13,7 +13,7 @@ Signed-off-by: Robert Marko <robert.marko@sartura.hr>
 
 --- a/arch/arm/boot/dts/qcom/qcom-ipq4019.dtsi
 +++ b/arch/arm/boot/dts/qcom/qcom-ipq4019.dtsi
-@@ -600,6 +600,82 @@
+@@ -597,6 +597,82 @@
                        status = "disabled";
                };
  
index 749313cc542fd6b7f60773d863152427e09f640f..edcdde4a53574dc8b07a852105156978fc2bf7f0 100644 (file)
@@ -12,7 +12,7 @@ Signed-off-by: Robert Marko <robert.marko@sartura.hr>
 
 --- a/arch/arm/boot/dts/qcom/qcom-ipq4019.dtsi
 +++ b/arch/arm/boot/dts/qcom/qcom-ipq4019.dtsi
-@@ -758,6 +758,10 @@
+@@ -755,6 +755,10 @@
                                ethphy4: ethernet-phy@4 {
                                        reg = <4>;
                                };
index bd3e2168bdbcdc9dd1bd0e476d83dad239099221..1768ca6dc42dbe4e7ebfc872a9e11ef097b39581 100644 (file)
@@ -13,7 +13,7 @@ Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
 
 --- a/arch/arm/boot/dts/qcom/qcom-ipq4019.dtsi
 +++ b/arch/arm/boot/dts/qcom/qcom-ipq4019.dtsi
-@@ -470,7 +470,7 @@
+@@ -467,7 +467,7 @@
  
                        status = "disabled";
  
index 00221f7e0e8189925fedb7030e2116f4fc8e589f..538249bc4a275e53ba6f7a0ca248bb4435562dc7 100644 (file)
@@ -2,7 +2,7 @@ From: Christian Lamparter <chunkeey@googlemail.com>
 Subject: SoC: add qualcomm syscon
 --- a/drivers/soc/qcom/Kconfig
 +++ b/drivers/soc/qcom/Kconfig
-@@ -295,4 +295,11 @@ config QCOM_PBS
+@@ -295,6 +295,13 @@ config QCOM_PBS
          This module provides the APIs to the client drivers that wants to send the
          PBS trigger event to the PBS RAM.
  
@@ -14,13 +14,16 @@ Subject: SoC: add qualcomm syscon
 +        functions for various peripherals.
 +
  endmenu
+ config QCOM_UBWC_CONFIG
 --- a/drivers/soc/qcom/Makefile
 +++ b/drivers/soc/qcom/Makefile
-@@ -39,3 +39,4 @@ obj-$(CONFIG_QCOM_ICC_BWMON) += icc-bwmo
+@@ -39,4 +39,5 @@ obj-$(CONFIG_QCOM_ICC_BWMON) += icc-bwmo
  qcom_ice-objs                 += ice.o
  obj-$(CONFIG_QCOM_INLINE_CRYPTO_ENGINE)       += qcom_ice.o
  obj-$(CONFIG_QCOM_PBS) +=     qcom-pbs.o
 +obj-$(CONFIG_QCOM_TCSR)               += qcom_tcsr.o
+ obj-$(CONFIG_QCOM_UBWC_CONFIG) += ubwc_config.o
 --- /dev/null
 +++ b/drivers/soc/qcom/qcom_tcsr.c
 @@ -0,0 +1,94 @@
index fb50b4a233a3748bb8f2d30b594c19e2c44893ae..42a010b88391025b5b8291ff384318c5e693d54d 100644 (file)
@@ -18,7 +18,7 @@ Signed-off-by: Florian Maurer <f.maurer@outlook.com>
 
 --- a/drivers/pci/controller/dwc/pcie-qcom.c
 +++ b/drivers/pci/controller/dwc/pcie-qcom.c
-@@ -206,11 +206,24 @@ struct qcom_pcie_resources_2_3_3 {
+@@ -203,11 +203,24 @@ struct qcom_pcie_resources_2_3_3 {
  };
  
  #define QCOM_PCIE_2_4_0_MAX_RESETS            12
@@ -43,7 +43,7 @@ Signed-off-by: Florian Maurer <f.maurer@outlook.com>
  };
  
  #define QCOM_PCIE_2_7_0_MAX_SUPPLIES          2
-@@ -710,12 +723,65 @@ static int qcom_pcie_post_init_2_3_2(str
+@@ -727,12 +740,65 @@ static int qcom_pcie_post_init_2_3_2(str
        return 0;
  }
  
@@ -110,7 +110,7 @@ Signed-off-by: Florian Maurer <f.maurer@outlook.com>
        int ret;
  
        res->num_clks = devm_clk_bulk_get_all(dev, &res->clks);
-@@ -754,6 +820,17 @@ static void qcom_pcie_deinit_2_4_0(struc
+@@ -771,6 +837,17 @@ static void qcom_pcie_deinit_2_4_0(struc
        clk_bulk_disable_unprepare(res->num_clks, res->clks);
  }
  
@@ -128,7 +128,7 @@ Signed-off-by: Florian Maurer <f.maurer@outlook.com>
  static int qcom_pcie_init_2_4_0(struct qcom_pcie *pcie)
  {
        struct qcom_pcie_resources_2_4_0 *res = &pcie->res.v2_4_0;
-@@ -1336,6 +1413,16 @@ static const struct qcom_pcie_ops ops_2_
+@@ -1379,6 +1456,16 @@ static const struct qcom_pcie_ops ops_2_
        .ltssm_enable = qcom_pcie_2_3_2_ltssm_enable,
  };
  
@@ -145,7 +145,7 @@ Signed-off-by: Florian Maurer <f.maurer@outlook.com>
  /* Qcom IP rev.: 2.3.3        Synopsys IP rev.: 4.30a */
  static const struct qcom_pcie_ops ops_2_3_3 = {
        .get_resources = qcom_pcie_get_resources_2_3_3,
-@@ -1404,6 +1491,10 @@ static const struct qcom_pcie_cfg cfg_2_
+@@ -1457,6 +1544,10 @@ static const struct qcom_pcie_cfg cfg_2_
        .ops = &ops_2_4_0,
  };
  
@@ -156,11 +156,11 @@ Signed-off-by: Florian Maurer <f.maurer@outlook.com>
  static const struct qcom_pcie_cfg cfg_2_7_0 = {
        .ops = &ops_2_7_0,
  };
-@@ -1827,6 +1918,7 @@ static const struct of_device_id qcom_pc
+@@ -2016,6 +2107,7 @@ static const struct of_device_id qcom_pc
        { .compatible = "qcom,pcie-apq8064", .data = &cfg_2_1_0 },
        { .compatible = "qcom,pcie-apq8084", .data = &cfg_1_0_0 },
        { .compatible = "qcom,pcie-ipq4019", .data = &cfg_2_4_0 },
 +      { .compatible = "qcom,pcie-ipq4019-lantiq-hack", .data = &cfg_2_4_0_lantiq_hack },
+       { .compatible = "qcom,pcie-ipq5018", .data = &cfg_2_9_0 },
        { .compatible = "qcom,pcie-ipq6018", .data = &cfg_2_9_0 },
        { .compatible = "qcom,pcie-ipq8064", .data = &cfg_2_1_0 },
-       { .compatible = "qcom,pcie-ipq8064-v2", .data = &cfg_2_1_0 },
index 8a7b193e99ef027312b1cf649126d050a8ffa940..f2910560be992efcf992f132f9bde24e9f48bbe6 100644 (file)
@@ -15,7 +15,7 @@ Signed-off-by: Robert Marko <robimarko@gmail.com>
 
 --- a/drivers/firmware/qcom/qcom_scm.c
 +++ b/drivers/firmware/qcom/qcom_scm.c
-@@ -2095,7 +2095,8 @@ err:
+@@ -2465,7 +2465,8 @@ static int qcom_scm_probe(struct platfor
  static void qcom_scm_shutdown(struct platform_device *pdev)
  {
        /* Clean shutdown, disable download mode to allow normal restart */
index 942292e8a1f43f71b8228ba8a3b48db35380e76b..4e52155c9958a4c3750e398fb34155aec6a8b38b 100644 (file)
@@ -4,7 +4,7 @@ Subject: [PATCH] UGW_SW-29163: ATM oam support
 
 --- a/drivers/net/ppp/ppp_generic.c
 +++ b/drivers/net/ppp/ppp_generic.c
-@@ -2985,6 +2985,24 @@ char *ppp_dev_name(struct ppp_channel *c
+@@ -3003,6 +3003,24 @@ char *ppp_dev_name(struct ppp_channel *c
        return name;
  }
  
@@ -29,7 +29,7 @@ Subject: [PATCH] UGW_SW-29163: ATM oam support
  
  /*
   * Disconnect a channel from the generic layer.
-@@ -3646,6 +3664,7 @@ EXPORT_SYMBOL(ppp_unregister_channel);
+@@ -3664,6 +3682,7 @@ EXPORT_SYMBOL(ppp_unregister_channel);
  EXPORT_SYMBOL(ppp_channel_index);
  EXPORT_SYMBOL(ppp_unit_number);
  EXPORT_SYMBOL(ppp_dev_name);