diff --git a/package/kernel/mac80211/patches/build/150-sysfs-backport.patch b/package/kernel/mac80211/patches/build/150-sysfs-backport.patch index 877040f6eae..e1d4bc16dee 100644 --- a/package/kernel/mac80211/patches/build/150-sysfs-backport.patch +++ b/package/kernel/mac80211/patches/build/150-sysfs-backport.patch @@ -4,7 +4,7 @@ #define WIPHY_PM_OPS NULL #endif -+#if LINUX_VERSION_IS_GEQ(7,0,0) ++#if LINUX_VERSION_IS_GEQ(6,18,65) static const struct ns_common *wiphy_namespace(const struct device *d) { struct wiphy *wiphy = container_of(d, struct wiphy, dev); diff --git a/target/linux/airoha/patches-6.18/886-uart-add-en7523-support.patch b/target/linux/airoha/patches-6.18/886-uart-add-en7523-support.patch index 0340e22b364..3d75d6d514e 100644 --- a/target/linux/airoha/patches-6.18/886-uart-add-en7523-support.patch +++ b/target/linux/airoha/patches-6.18/886-uart-add-en7523-support.patch @@ -158,7 +158,7 @@ depends on ARCH_BCM2835 || COMPILE_TEST --- a/drivers/tty/serial/8250/Makefile +++ b/drivers/tty/serial/8250/Makefile -@@ -20,6 +20,7 @@ obj-$(CONFIG_SERIAL_8250_CONSOLE) += 825 +@@ -21,6 +21,7 @@ obj-$(CONFIG_SERIAL_8250_CONSOLE) += 825 obj-$(CONFIG_SERIAL_8250_ACCENT) += 8250_accent.o obj-$(CONFIG_SERIAL_8250_ACORN) += 8250_acorn.o diff --git a/target/linux/ath79/patches-6.18/900-unaligned_access_hacks.patch b/target/linux/ath79/patches-6.18/900-unaligned_access_hacks.patch index 92c71f1da0d..58a9e235678 100644 --- a/target/linux/ath79/patches-6.18/900-unaligned_access_hacks.patch +++ b/target/linux/ath79/patches-6.18/900-unaligned_access_hacks.patch @@ -259,7 +259,7 @@ SVN-Revision: 35130 #include #include #include -@@ -918,10 +919,10 @@ static void tcp_v6_send_response(const s +@@ -922,10 +923,10 @@ static void tcp_v6_send_response(const s topt = (__be32 *)(t1 + 1); if (tsecr) { @@ -828,7 +828,7 @@ SVN-Revision: 35130 *sum = csum_fold(csum_partial(diff, sizeof(diff), --- a/include/linux/etherdevice.h +++ b/include/linux/etherdevice.h -@@ -560,7 +560,7 @@ static inline bool is_etherdev_addr(cons +@@ -588,7 +588,7 @@ static inline bool is_etherdev_addr(cons * @b: Pointer to Ethernet header * * Compare two Ethernet headers, returns 0 if equal. @@ -837,7 +837,7 @@ SVN-Revision: 35130 * aligned OR the platform can handle unaligned access. This is the * case for all packets coming into netif_receive_skb or similar * entry points. -@@ -583,11 +583,12 @@ static inline unsigned long compare_ethe +@@ -611,11 +611,12 @@ static inline unsigned long compare_ethe fold |= *(unsigned long *)(a + 6) ^ *(unsigned long *)(b + 6); return fold; #else diff --git a/target/linux/bcm27xx/patches-6.18/950-0016-BCM2708-Add-core-Device-Tree-support.patch b/target/linux/bcm27xx/patches-6.18/950-0016-BCM2708-Add-core-Device-Tree-support.patch index 10ca79c1733..b5703c4c418 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0016-BCM2708-Add-core-Device-Tree-support.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0016-BCM2708-Add-core-Device-Tree-support.patch @@ -45931,7 +45931,7 @@ Signed-off-by: Phil Elwell +}; --- a/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-ovl-rp1.dts +++ /dev/null -@@ -1,254 +0,0 @@ +@@ -1,290 +0,0 @@ -// SPDX-License-Identifier: (GPL-2.0 OR MIT) -/dts-v1/; - @@ -45978,6 +45978,30 @@ Signed-off-by: Phil Elwell - }; - }; - +- firmware { +- firmware: rpi-firmware { +- compatible = "raspberrypi,bcm2835-firmware", "simple-mfd"; +- +- mboxes = <&mailbox>; +- +- firmware_clocks: clocks { +- compatible = "raspberrypi,firmware-clocks"; +- #clock-cells = <1>; +- }; +- +- reset: reset { +- compatible = "raspberrypi,firmware-reset"; +- #reset-cells = <1>; +- }; +- +- power: power { +- compatible = "raspberrypi,bcm2835-power"; +- firmware = <&firmware>; +- #power-domain-cells = <1>; +- }; +- }; +- }; +- - sd_io_1v8_reg: sd-io-1v8-reg { - compatible = "regulator-gpio"; - regulator-name = "vdd-sd-io"; @@ -46014,6 +46038,18 @@ Signed-off-by: Phil Elwell - }; -}; - +-&ddc0 { +- status = "okay"; +-}; +- +-&ddc1 { +- status = "okay"; +-}; +- +-&disp_intr { +- status = "okay"; +-}; +- -&pinctrl { - bt_shutdown_default: bt-shutdown-default-state { - function = "gpio"; @@ -46123,33 +46159,6 @@ Signed-off-by: Phil Elwell - }; -}; - --&soc { -- firmware: firmware { -- compatible = "raspberrypi,bcm2835-firmware", "simple-mfd"; -- #address-cells = <1>; -- #size-cells = <1>; -- -- mboxes = <&mailbox>; -- dma-ranges; -- -- firmware_clocks: clocks { -- compatible = "raspberrypi,firmware-clocks"; -- #clock-cells = <1>; -- }; -- -- reset: reset { -- compatible = "raspberrypi,firmware-reset"; -- #reset-cells = <1>; -- }; -- }; -- -- power: power { -- compatible = "raspberrypi,bcm2835-power"; -- firmware = <&firmware>; -- #power-domain-cells = <1>; -- }; --}; -- -/* uarta communicates with the BT module */ -&uarta { - uart-has-rtscts; @@ -46167,16 +46176,27 @@ Signed-off-by: Phil Elwell -&hvs { - clocks = <&firmware_clocks 4>, <&firmware_clocks 16>; - clock-names = "core", "disp"; +- status = "okay"; -}; - -&hdmi0 { - clocks = <&firmware_clocks 13>, <&firmware_clocks 14>, <&dvp 0>, <&clk_27MHz>; - clock-names = "hdmi", "bvb", "audio", "cec"; +- status = "okay"; -}; - -&hdmi1 { - clocks = <&firmware_clocks 13>, <&firmware_clocks 14>, <&dvp 1>, <&clk_27MHz>; - clock-names = "hdmi", "bvb", "audio", "cec"; +- status = "okay"; +-}; +- +-&mop { +- status = "okay"; +-}; +- +-&moplet { +- status = "okay"; -}; - -&pcie1 { @@ -46186,6 +46206,22 @@ Signed-off-by: Phil Elwell -&pcie2 { - status = "okay"; -}; +- +-&pixelvalve0 { +- status = "okay"; +-}; +- +-&pixelvalve1 { +- status = "okay"; +-}; +- +-&v3d { +- clocks = <&firmware_clocks 5>; +-}; +- +-&vc4 { +- status = "okay"; +-}; --- a/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts +++ b/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts @@ -1,68 +1,771 @@ @@ -48501,7 +48537,7 @@ Signed-off-by: Phil Elwell +}; --- a/arch/arm64/boot/dts/broadcom/bcm2712.dtsi +++ b/arch/arm64/boot/dts/broadcom/bcm2712.dtsi -@@ -38,13 +38,6 @@ +@@ -39,13 +39,6 @@ clock-frequency = <200000000>; clock-output-names = "emmc2-clock"; }; @@ -48515,7 +48551,7 @@ Signed-off-by: Phil Elwell }; cpus: cpus { -@@ -259,39 +252,6 @@ +@@ -260,39 +253,6 @@ system-power-controller; }; @@ -48555,7 +48591,7 @@ Signed-off-by: Phil Elwell interrupt-controller@7d517000 { compatible = "brcm,bcm7271-l2-intc"; reg = <0x7d517000 0x10>; -@@ -312,21 +272,6 @@ +@@ -313,21 +273,6 @@ */ }; @@ -48577,7 +48613,7 @@ Signed-off-by: Phil Elwell gicv2: interrupt-controller@7fff9000 { compatible = "arm,gic-400"; reg = <0x7fff9000 0x1000>, -@@ -670,9 +615,14 @@ +@@ -694,10 +639,15 @@ hvs: hvs@107c580000 { compatible = "brcm,bcm2712-hvs"; @@ -48589,6 +48625,7 @@ Signed-off-by: Phil Elwell interrupt-parent = <&disp_intr>; interrupts = <2>, <9>, <16>; interrupt-names = "ch0-eof", "ch1-eof", "ch2-eof"; + status = "disabled"; + iommus = <&iommu4>; }; }; diff --git a/target/linux/bcm27xx/patches-6.18/950-0045-Main-bcm2708-bcm2709-linux-port.patch b/target/linux/bcm27xx/patches-6.18/950-0045-Main-bcm2708-bcm2709-linux-port.patch index bf1dbb7dc43..4e4ca2be858 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0045-Main-bcm2708-bcm2709-linux-port.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0045-Main-bcm2708-bcm2709-linux-port.patch @@ -127,8 +127,8 @@ board_bcm2835: Remove coherent dma pool increase - API has gone + ret = devm_request_irq(dev, platform_get_irq(pdev, 0), bcm2835_mbox_irq, IRQF_NO_SUSPEND, dev_name(dev), mbox); - if (ret) { -@@ -193,7 +196,18 @@ static struct platform_driver bcm2835_mb + if (ret) +@@ -190,7 +193,18 @@ static struct platform_driver bcm2835_mb }, .probe = bcm2835_mbox_probe, }; diff --git a/target/linux/bcm27xx/patches-6.18/950-0064-ASoC-Add-support-for-all-the-downstream-rpi-sound-ca.patch b/target/linux/bcm27xx/patches-6.18/950-0064-ASoC-Add-support-for-all-the-downstream-rpi-sound-ca.patch index 51add02d3f1..d11479a572c 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0064-ASoC-Add-support-for-all-the-downstream-rpi-sound-ca.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0064-ASoC-Add-support-for-all-the-downstream-rpi-sound-ca.patch @@ -1941,7 +1941,7 @@ Signed-off-by: Giedrius Trainavičius +zyxel ZyXEL Communications Corp. --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml -@@ -235,6 +235,8 @@ patternProperties: +@@ -237,6 +237,8 @@ patternProperties: description: Bitmain Technologies "^blaize,.*": description: Blaize, Inc. @@ -24285,7 +24285,7 @@ Signed-off-by: Giedrius Trainavičius depends on I2C select SND_SOC_AD193X -@@ -1309,6 +1313,13 @@ config SND_SOC_LOCHNAGAR_SC +@@ -1314,6 +1318,13 @@ config SND_SOC_LOCHNAGAR_SC This driver support the sound card functionality of the Cirrus Logic Lochnagar audio development board. @@ -24299,7 +24299,7 @@ Signed-off-by: Giedrius Trainavičius config SND_SOC_MADERA tristate default y if SND_SOC_CS47L15=y -@@ -1744,6 +1755,10 @@ config SND_SOC_RT5616 +@@ -1749,6 +1760,10 @@ config SND_SOC_RT5616 tristate "Realtek RT5616 CODEC" depends on I2C @@ -24310,7 +24310,7 @@ Signed-off-by: Giedrius Trainavičius config SND_SOC_RT5631 tristate "Realtek ALC5631/RT5631 CODEC" depends on I2C -@@ -2156,6 +2171,9 @@ config SND_SOC_TFA9879 +@@ -2161,6 +2176,9 @@ config SND_SOC_TFA9879 tristate "NXP Semiconductors TFA9879 amplifier" depends on I2C @@ -24320,7 +24320,7 @@ Signed-off-by: Giedrius Trainavičius config SND_SOC_TFA989X tristate "NXP/Goodix TFA989X (TFA1) amplifiers" depends on I2C -@@ -2788,4 +2806,8 @@ config SND_SOC_LPASS_TX_MACRO +@@ -2793,4 +2811,8 @@ config SND_SOC_LPASS_TX_MACRO select SND_SOC_LPASS_MACRO_COMMON tristate "Qualcomm TX Macro in LPASS(Low Power Audio SubSystem)" @@ -24331,7 +24331,7 @@ Signed-off-by: Giedrius Trainavičius endmenu --- a/sound/soc/codecs/Makefile +++ b/sound/soc/codecs/Makefile -@@ -874,3 +874,12 @@ obj-$(CONFIG_SND_SOC_LPASS_TX_MACRO) += +@@ -876,3 +876,12 @@ obj-$(CONFIG_SND_SOC_LPASS_TX_MACRO) += # Mux obj-$(CONFIG_SND_SOC_SIMPLE_MUX) += snd-soc-simple-mux.o @@ -26992,7 +26992,7 @@ Signed-off-by: Giedrius Trainavičius +#endif /* _TAS5713_H */ --- a/sound/soc/dwc/dwc-i2s.c +++ b/sound/soc/dwc/dwc-i2s.c -@@ -209,12 +209,21 @@ static void i2s_start(struct dw_i2s_dev +@@ -210,12 +210,21 @@ static void i2s_start(struct dw_i2s_dev static void i2s_stop(struct dw_i2s_dev *dev, struct snd_pcm_substream *substream) { @@ -27018,7 +27018,7 @@ Signed-off-by: Giedrius Trainavičius if (!(dev->use_pio || dev->is_jh7110)) i2s_disable_dma(dev, substream->stream); -@@ -224,14 +233,39 @@ static void i2s_stop(struct dw_i2s_dev * +@@ -225,14 +234,39 @@ static void i2s_stop(struct dw_i2s_dev * if (!dev->active) { i2s_write_reg(dev->i2s_base, CER, 0); @@ -27059,7 +27059,7 @@ Signed-off-by: Giedrius Trainavičius if (dev->is_jh7110) { struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); -@@ -243,22 +277,52 @@ static int dw_i2s_startup(struct snd_pcm +@@ -244,22 +278,52 @@ static int dw_i2s_startup(struct snd_pcm return 0; } @@ -27114,7 +27114,7 @@ Signed-off-by: Giedrius Trainavičius } else { i2s_write_reg(dev->i2s_base, RCR(ch_reg), dev->xfer_resolution); -@@ -266,9 +330,11 @@ static void dw_i2s_config(struct dw_i2s_ +@@ -267,9 +331,11 @@ static void dw_i2s_config(struct dw_i2s_ dev->fifo_th - 1); i2s_write_reg(dev->i2s_base, RER(ch_reg), RER_RXCHEN | dev->tdm_mask << RER_RXSLOT_SHIFT); @@ -27127,7 +27127,7 @@ Signed-off-by: Giedrius Trainavičius } static int dw_i2s_hw_params(struct snd_pcm_substream *substream, -@@ -276,24 +342,32 @@ static int dw_i2s_hw_params(struct snd_p +@@ -277,24 +343,32 @@ static int dw_i2s_hw_params(struct snd_p { struct dw_i2s_dev *dev = snd_soc_dai_get_drvdata(dai); struct i2s_clk_config_data *config = &dev->config; @@ -27163,7 +27163,7 @@ Signed-off-by: Giedrius Trainavičius dev->xfer_resolution = 0x05; break; -@@ -314,17 +388,37 @@ static int dw_i2s_hw_params(struct snd_p +@@ -315,17 +389,37 @@ static int dw_i2s_hw_params(struct snd_p case TWO_CHANNEL_SUPPORT: break; default: @@ -27204,7 +27204,7 @@ Signed-off-by: Giedrius Trainavičius if (dev->i2s_clk_cfg) { ret = dev->i2s_clk_cfg(config); if (ret < 0) { -@@ -332,8 +426,7 @@ static int dw_i2s_hw_params(struct snd_p +@@ -333,8 +427,7 @@ static int dw_i2s_hw_params(struct snd_p return ret; } } else { @@ -27214,7 +27214,7 @@ Signed-off-by: Giedrius Trainavičius ret = clk_set_rate(dev->clk, bitclk); if (ret) { -@@ -342,6 +435,8 @@ static int dw_i2s_hw_params(struct snd_p +@@ -343,6 +436,8 @@ static int dw_i2s_hw_params(struct snd_p return ret; } } @@ -27223,7 +27223,7 @@ Signed-off-by: Giedrius Trainavičius } return 0; } -@@ -373,9 +468,12 @@ static int dw_i2s_trigger(struct snd_pcm +@@ -374,9 +469,12 @@ static int dw_i2s_trigger(struct snd_pcm i2s_start(dev, substream); break; @@ -27237,7 +27237,7 @@ Signed-off-by: Giedrius Trainavičius dev->active--; i2s_stop(dev, substream); break; -@@ -459,6 +557,18 @@ static int dw_i2s_set_tdm_slot(struct sn +@@ -460,6 +558,18 @@ static int dw_i2s_set_tdm_slot(struct sn return 0; } @@ -27256,7 +27256,7 @@ Signed-off-by: Giedrius Trainavičius static int dw_i2s_dai_probe(struct snd_soc_dai *dai) { struct dw_i2s_dev *dev = snd_soc_dai_get_drvdata(dai); -@@ -470,11 +580,13 @@ static int dw_i2s_dai_probe(struct snd_s +@@ -471,11 +581,13 @@ static int dw_i2s_dai_probe(struct snd_s static const struct snd_soc_dai_ops dw_i2s_dai_ops = { .probe = dw_i2s_dai_probe, .startup = dw_i2s_startup, @@ -27270,7 +27270,7 @@ Signed-off-by: Giedrius Trainavičius }; static int dw_i2s_runtime_suspend(struct device *dev) -@@ -605,7 +717,7 @@ static int dw_configure_dai(struct dw_i2 +@@ -606,7 +718,7 @@ static int dw_configure_dai(struct dw_i2 idx = 1; dw_i2s_dai->playback.channels_min = MIN_CHANNEL_NUM; dw_i2s_dai->playback.channels_max = @@ -27279,7 +27279,7 @@ Signed-off-by: Giedrius Trainavičius dw_i2s_dai->playback.formats = formats[idx]; dw_i2s_dai->playback.rates = rates; } -@@ -619,7 +731,7 @@ static int dw_configure_dai(struct dw_i2 +@@ -620,7 +732,7 @@ static int dw_configure_dai(struct dw_i2 idx = 1; dw_i2s_dai->capture.channels_min = MIN_CHANNEL_NUM; dw_i2s_dai->capture.channels_max = @@ -27288,7 +27288,7 @@ Signed-off-by: Giedrius Trainavičius dw_i2s_dai->capture.formats = formats[idx]; dw_i2s_dai->capture.rates = rates; } -@@ -680,8 +792,8 @@ static int dw_configure_dai_by_pd(struct +@@ -681,8 +793,8 @@ static int dw_configure_dai_by_pd(struct dev->capture_dma_data.pd.data = pdata->capture_dma_data; dev->play_dma_data.pd.addr = res->start + I2S_TXDMA; dev->capture_dma_data.pd.addr = res->start + I2S_RXDMA; @@ -27299,7 +27299,7 @@ Signed-off-by: Giedrius Trainavičius dev->play_dma_data.pd.addr_width = bus_widths[idx]; dev->capture_dma_data.pd.addr_width = bus_widths[idx]; dev->play_dma_data.pd.filter = pdata->filter; -@@ -701,7 +813,7 @@ static int dw_configure_dai_by_dt(struct +@@ -702,7 +814,7 @@ static int dw_configure_dai_by_dt(struct u32 idx2; int ret; @@ -27308,7 +27308,7 @@ Signed-off-by: Giedrius Trainavičius if (ret < 0) return ret; -@@ -712,7 +824,10 @@ static int dw_configure_dai_by_dt(struct +@@ -713,7 +825,10 @@ static int dw_configure_dai_by_dt(struct dev->play_dma_data.dt.addr = res->start + I2S_TXDMA; dev->play_dma_data.dt.fifo_size = fifo_depth * (fifo_width[idx2]) >> 8; @@ -27320,7 +27320,7 @@ Signed-off-by: Giedrius Trainavičius } if (COMP1_RX_ENABLED(comp1)) { idx2 = COMP2_RX_WORDSIZE_0(comp2); -@@ -721,9 +836,14 @@ static int dw_configure_dai_by_dt(struct +@@ -722,9 +837,14 @@ static int dw_configure_dai_by_dt(struct dev->capture_dma_data.dt.addr = res->start + I2S_RXDMA; dev->capture_dma_data.dt.fifo_size = fifo_depth * (fifo_width[idx2] >> 8); @@ -27336,7 +27336,7 @@ Signed-off-by: Giedrius Trainavičius return 0; } -@@ -967,6 +1087,8 @@ static int dw_i2s_probe(struct platform_ +@@ -971,6 +1091,8 @@ static int dw_i2s_probe(struct platform_ } } diff --git a/target/linux/bcm27xx/patches-6.18/950-0081-net-lan78xx-Disable-TCP-Segmentation-Offload-TSO.patch b/target/linux/bcm27xx/patches-6.18/950-0081-net-lan78xx-Disable-TCP-Segmentation-Offload-TSO.patch index f4e4e5c6d68..00ae2289ba6 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0081-net-lan78xx-Disable-TCP-Segmentation-Offload-TSO.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0081-net-lan78xx-Disable-TCP-Segmentation-Offload-TSO.patch @@ -37,7 +37,7 @@ Signed-off-by: Dave Stevenson static int lan78xx_read_reg(struct lan78xx_net *dev, u32 index, u32 *data) { u32 *buf; -@@ -3794,8 +3803,14 @@ static int lan78xx_bind(struct lan78xx_n +@@ -3806,8 +3815,14 @@ static int lan78xx_bind(struct lan78xx_n if (DEFAULT_RX_CSUM_ENABLE) dev->net->features |= NETIF_F_RXCSUM; diff --git a/target/linux/bcm27xx/patches-6.18/950-0083-lan78xx-Debounce-link-events-to-minimize-poll-storm.patch b/target/linux/bcm27xx/patches-6.18/950-0083-lan78xx-Debounce-link-events-to-minimize-poll-storm.patch index fa97c8f8d8c..43d9a87cf7c 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0083-lan78xx-Debounce-link-events-to-minimize-poll-storm.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0083-lan78xx-Debounce-link-events-to-minimize-poll-storm.patch @@ -28,7 +28,7 @@ See: https://github.com/raspberrypi/linux/issues/2447 static int lan78xx_read_reg(struct lan78xx_net *dev, u32 index, u32 *data) { u32 *buf; -@@ -4773,7 +4778,13 @@ static int lan78xx_probe(struct usb_inte +@@ -4785,7 +4790,13 @@ static int lan78xx_probe(struct usb_inte if (ret < 0) goto out4; diff --git a/target/linux/bcm27xx/patches-6.18/950-0084-Patching-lan78xx-for-SOF_TIMESTAMPING_TX_SOFTWARE-su.patch b/target/linux/bcm27xx/patches-6.18/950-0084-Patching-lan78xx-for-SOF_TIMESTAMPING_TX_SOFTWARE-su.patch index 98cb5f17f82..1d1a7171fb2 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0084-Patching-lan78xx-for-SOF_TIMESTAMPING_TX_SOFTWARE-su.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0084-Patching-lan78xx-for-SOF_TIMESTAMPING_TX_SOFTWARE-su.patch @@ -9,7 +9,7 @@ Subject: [PATCH] Patching lan78xx for SOF_TIMESTAMPING_TX_SOFTWARE support --- a/drivers/net/usb/lan78xx.c +++ b/drivers/net/usb/lan78xx.c -@@ -1953,6 +1953,7 @@ static const struct ethtool_ops lan78xx_ +@@ -1965,6 +1965,7 @@ static const struct ethtool_ops lan78xx_ .set_link_ksettings = lan78xx_set_link_ksettings, .get_regs_len = lan78xx_get_regs_len, .get_regs = lan78xx_get_regs, diff --git a/target/linux/bcm27xx/patches-6.18/950-0102-bcmgenet-Better-coalescing-parameter-defaults.patch b/target/linux/bcm27xx/patches-6.18/950-0102-bcmgenet-Better-coalescing-parameter-defaults.patch index ce0f623a1a3..3b0f8519c03 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0102-bcmgenet-Better-coalescing-parameter-defaults.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0102-bcmgenet-Better-coalescing-parameter-defaults.patch @@ -18,20 +18,15 @@ Signed-off-by: Phil Elwell --- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c +++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c -@@ -2754,7 +2754,7 @@ static void bcmgenet_init_tx_ring(struct - - bcmgenet_tdma_ring_writel(priv, index, 0, TDMA_PROD_INDEX); - bcmgenet_tdma_ring_writel(priv, index, 0, TDMA_CONS_INDEX); -- bcmgenet_tdma_ring_writel(priv, index, 1, DMA_MBUF_DONE_THRESH); -+ bcmgenet_tdma_ring_writel(priv, index, 10, DMA_MBUF_DONE_THRESH); - /* Disable rate control for now */ - bcmgenet_tdma_ring_writel(priv, index, flow_period_val, - TDMA_FLOW_PERIOD); -@@ -4170,6 +4170,7 @@ static int bcmgenet_probe(struct platfor +@@ -4184,9 +4184,10 @@ static int bcmgenet_probe(struct platfor priv->rx_rings[i].priv = priv; priv->rx_rings[i].index = i; priv->rx_rings[i].rx_max_coalesced_frames = 1; + priv->rx_rings[i].rx_coalesce_usecs = 50; } + for (i = 0; i <= priv->hw_params->tx_queues; i++) +- priv->tx_rings[i].tx_max_coalesced_frames = 1; ++ priv->tx_rings[i].tx_max_coalesced_frames = 10; /* Initialize u64 stats seq counter for 32bit machines */ + for (i = 0; i <= GENET_MAX_MQ_CNT; i++) { diff --git a/target/linux/bcm27xx/patches-6.18/950-0158-gpiolib-Don-t-prevent-IRQ-usage-of-output-GPIOs.patch b/target/linux/bcm27xx/patches-6.18/950-0158-gpiolib-Don-t-prevent-IRQ-usage-of-output-GPIOs.patch index 7a8dff7b665..95f13950fb6 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0158-gpiolib-Don-t-prevent-IRQ-usage-of-output-GPIOs.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0158-gpiolib-Don-t-prevent-IRQ-usage-of-output-GPIOs.patch @@ -26,7 +26,7 @@ Signed-off-by: Phil Elwell /* Device and char device-related information */ static DEFINE_IDA(gpio_ida); static dev_t gpio_devt; -@@ -3026,8 +3028,8 @@ int gpiod_direction_output_nonotify(stru +@@ -3028,8 +3030,8 @@ int gpiod_direction_output_nonotify(stru value = !!value; /* GPIOs used for enabled IRQs shall not be set as output */ @@ -37,7 +37,7 @@ Signed-off-by: Phil Elwell gpiod_err(desc, "%s: tried to set a GPIO tied to an IRQ as output\n", __func__); -@@ -4067,8 +4069,8 @@ int gpiochip_lock_as_irq(struct gpio_chi +@@ -4075,8 +4077,8 @@ int gpiochip_lock_as_irq(struct gpio_chi } /* To be valid for IRQ the line needs to be input or open drain */ diff --git a/target/linux/bcm27xx/patches-6.18/950-0203-dt-bindings-vendor-prefixes-Add-Geekworm.patch b/target/linux/bcm27xx/patches-6.18/950-0203-dt-bindings-vendor-prefixes-Add-Geekworm.patch index a8f3c2a6703..efddf504257 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0203-dt-bindings-vendor-prefixes-Add-Geekworm.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0203-dt-bindings-vendor-prefixes-Add-Geekworm.patch @@ -12,7 +12,7 @@ Signed-off-by: Chris Morgan --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml -@@ -614,6 +614,8 @@ patternProperties: +@@ -622,6 +622,8 @@ patternProperties: description: General Electric Company "^geekbuying,.*": description: GeekBuying diff --git a/target/linux/bcm27xx/patches-6.18/950-0231-dt-bindings-vendor-prefixes-Add-Arducam.patch b/target/linux/bcm27xx/patches-6.18/950-0231-dt-bindings-vendor-prefixes-Add-Arducam.patch index ad0cb8891d1..c2c6aaa3dca 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0231-dt-bindings-vendor-prefixes-Add-Arducam.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0231-dt-bindings-vendor-prefixes-Add-Arducam.patch @@ -12,7 +12,7 @@ Signed-off-by: Lee Jackson --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml -@@ -160,6 +160,8 @@ patternProperties: +@@ -162,6 +162,8 @@ patternProperties: description: Shanghai Novotech Co., Ltd. (Ariaboard) "^aries,.*": description: Aries Embedded GmbH diff --git a/target/linux/bcm27xx/patches-6.18/950-0259-serial-8250-Add-NOMSI-bug-for-bcm2835aux.patch b/target/linux/bcm27xx/patches-6.18/950-0259-serial-8250-Add-NOMSI-bug-for-bcm2835aux.patch index ac7222b9046..226557e2973 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0259-serial-8250-Add-NOMSI-bug-for-bcm2835aux.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0259-serial-8250-Add-NOMSI-bug-for-bcm2835aux.patch @@ -20,7 +20,7 @@ Signed-off-by: Phil Elwell --- a/drivers/tty/serial/8250/8250.h +++ b/drivers/tty/serial/8250/8250.h -@@ -92,6 +92,7 @@ struct serial8250_config { +@@ -93,6 +93,7 @@ struct serial8250_config { #define UART_BUG_NOMSR BIT(2) /* UART has buggy MSR status bits (Au1x00) */ #define UART_BUG_THRE BIT(3) /* UART has buggy THRE reassertion */ #define UART_BUG_TXRACE BIT(5) /* UART Tx fails to set remote DR */ diff --git a/target/linux/bcm27xx/patches-6.18/950-0260-Bluetooth-hci_sync-Add-fallback-bd-address-prop.patch b/target/linux/bcm27xx/patches-6.18/950-0260-Bluetooth-hci_sync-Add-fallback-bd-address-prop.patch index d475cb076ce..0b9905f2724 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0260-Bluetooth-hci_sync-Add-fallback-bd-address-prop.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0260-Bluetooth-hci_sync-Add-fallback-bd-address-prop.patch @@ -20,7 +20,7 @@ Signed-off-by: Phil Elwell --- a/net/bluetooth/hci_sync.c +++ b/net/bluetooth/hci_sync.c -@@ -5140,6 +5140,7 @@ static const struct { +@@ -5186,6 +5186,7 @@ static const struct { */ static int hci_dev_setup_sync(struct hci_dev *hdev) { @@ -28,7 +28,7 @@ Signed-off-by: Phil Elwell int ret = 0; bool invalid_bdaddr; size_t i; -@@ -5168,7 +5169,8 @@ static int hci_dev_setup_sync(struct hci +@@ -5214,7 +5215,8 @@ static int hci_dev_setup_sync(struct hci hci_test_quirk(hdev, HCI_QUIRK_USE_BDADDR_PROPERTY); if (!ret) { if (hci_test_quirk(hdev, HCI_QUIRK_USE_BDADDR_PROPERTY) && diff --git a/target/linux/bcm27xx/patches-6.18/950-0286-dmaengine-dw-axi-dmac-Fixes-for-RP1.patch b/target/linux/bcm27xx/patches-6.18/950-0286-dmaengine-dw-axi-dmac-Fixes-for-RP1.patch index a59e14fe2fb..9fc72d370fd 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0286-dmaengine-dw-axi-dmac-Fixes-for-RP1.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0286-dmaengine-dw-axi-dmac-Fixes-for-RP1.patch @@ -298,16 +298,7 @@ Signed-off-by: Phil Elwell /* Set end-of-link to the last link descriptor of list */ set_desc_last(&desc->hw_desc[num - 1]); /* Managed transfer list */ -@@ -1054,7 +1139,7 @@ static void axi_chan_dump_lli(struct axi - static void axi_chan_list_dump_lli(struct axi_dma_chan *chan, - struct axi_dma_desc *desc_head) - { -- int count = atomic_read(&chan->descs_allocated); -+ int count = desc_head->nr_hw_descs; - int i; - - for (i = 0; i < count; i++) -@@ -1097,11 +1182,11 @@ out: +@@ -1094,11 +1179,11 @@ out: static void axi_chan_block_xfer_complete(struct axi_dma_chan *chan) { @@ -320,7 +311,7 @@ Signed-off-by: Phil Elwell u64 llp; int i; -@@ -1123,6 +1208,7 @@ static void axi_chan_block_xfer_complete +@@ -1120,6 +1205,7 @@ static void axi_chan_block_xfer_complete if (chan->cyclic) { desc = vd_to_axi_desc(vd); if (desc) { @@ -328,7 +319,7 @@ Signed-off-by: Phil Elwell llp = lo_hi_readq(chan->chan_regs + CH_LLP); for (i = 0; i < count; i++) { hw_desc = &desc->hw_desc[i]; -@@ -1143,6 +1229,9 @@ static void axi_chan_block_xfer_complete +@@ -1140,6 +1226,9 @@ static void axi_chan_block_xfer_complete /* Remove the completed descriptor from issued list before completing */ list_del(&vd->node); vchan_cookie_complete(vd); @@ -338,7 +329,7 @@ Signed-off-by: Phil Elwell } out: -@@ -1400,6 +1489,10 @@ static int parse_device_properties(struc +@@ -1392,6 +1481,10 @@ static int parse_device_properties(struc chip->dw->hdata->nr_masters = tmp; diff --git a/target/linux/bcm27xx/patches-6.18/950-0305-rtc-rtc-rpi-Add-simple-RTC-driver-for-Raspberry-Pi.patch b/target/linux/bcm27xx/patches-6.18/950-0305-rtc-rtc-rpi-Add-simple-RTC-driver-for-Raspberry-Pi.patch index f5cd68c0667..a9dde907b3b 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0305-rtc-rtc-rpi-Add-simple-RTC-driver-for-Raspberry-Pi.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0305-rtc-rtc-rpi-Add-simple-RTC-driver-for-Raspberry-Pi.patch @@ -38,7 +38,7 @@ Signed-off-by: Jonathan Bell --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig -@@ -233,6 +233,17 @@ config RTC_DRV_AC100 +@@ -254,6 +254,17 @@ config RTC_DRV_AC100 This driver can also be built as a module. If so, the module will be called rtc-ac100. diff --git a/target/linux/bcm27xx/patches-6.18/950-0367-dmaengine-dw-axi-dmac-Honour-snps-block-size.patch b/target/linux/bcm27xx/patches-6.18/950-0367-dmaengine-dw-axi-dmac-Honour-snps-block-size.patch index 34a5c214140..1a3caa97145 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0367-dmaengine-dw-axi-dmac-Honour-snps-block-size.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0367-dmaengine-dw-axi-dmac-Honour-snps-block-size.patch @@ -19,7 +19,7 @@ Signed-off-by: Phil Elwell --- a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c +++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c -@@ -1566,6 +1566,7 @@ static int dw_probe(struct platform_devi +@@ -1558,6 +1558,7 @@ static int dw_probe(struct platform_devi struct dw_axi_dma *dw; struct dw_axi_dma_hcfg *hdata; struct reset_control *resets; @@ -27,7 +27,7 @@ Signed-off-by: Phil Elwell unsigned int flags; u32 i; int ret; -@@ -1676,9 +1677,21 @@ static int dw_probe(struct platform_devi +@@ -1666,9 +1667,21 @@ static int dw_probe(struct platform_devi * Synopsis DesignWare AxiDMA datasheet mentioned Maximum * supported blocks is 1024. Device register width is 4 bytes. * Therefore, set constraint to 1024 * 4. diff --git a/target/linux/bcm27xx/patches-6.18/950-0377-Bluetooth-hci_sync-Fix-crash-on-NULL-parent.patch b/target/linux/bcm27xx/patches-6.18/950-0377-Bluetooth-hci_sync-Fix-crash-on-NULL-parent.patch index df15f65ba25..1d4530917a6 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0377-Bluetooth-hci_sync-Fix-crash-on-NULL-parent.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0377-Bluetooth-hci_sync-Fix-crash-on-NULL-parent.patch @@ -15,7 +15,7 @@ Signed-off-by: Phil Elwell --- a/net/bluetooth/hci_sync.c +++ b/net/bluetooth/hci_sync.c -@@ -5140,7 +5140,8 @@ static const struct { +@@ -5186,7 +5186,8 @@ static const struct { */ static int hci_dev_setup_sync(struct hci_dev *hdev) { diff --git a/target/linux/bcm27xx/patches-6.18/950-0411-drm-vc4-hvs-Defer-dlist-slots-deallocation.patch b/target/linux/bcm27xx/patches-6.18/950-0411-drm-vc4-hvs-Defer-dlist-slots-deallocation.patch index 42cd61aaf08..3701a568c26 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0411-drm-vc4-hvs-Defer-dlist-slots-deallocation.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0411-drm-vc4-hvs-Defer-dlist-slots-deallocation.patch @@ -168,7 +168,7 @@ Signed-off-by: Maxime Ripard void vc4_hvs_atomic_enable(struct drm_crtc *crtc, struct drm_atomic_state *state); --- a/drivers/gpu/drm/vc4/vc4_hvs.c +++ b/drivers/gpu/drm/vc4/vc4_hvs.c -@@ -470,6 +470,273 @@ static void vc4_hvs_update_gamma_lut(str +@@ -471,6 +471,273 @@ static void vc4_hvs_update_gamma_lut(str vc4_hvs_lut_load(hvs, vc4_crtc); } @@ -442,7 +442,7 @@ Signed-off-by: Maxime Ripard u8 vc4_hvs_get_fifo_frame_count(struct vc4_hvs *hvs, unsigned int fifo) { struct vc4_dev *vc4 = hvs->vc4; -@@ -790,13 +1057,12 @@ int vc4_hvs_atomic_check(struct drm_crtc +@@ -791,13 +1058,12 @@ int vc4_hvs_atomic_check(struct drm_crtc { struct drm_crtc_state *crtc_state = drm_atomic_get_new_crtc_state(state, crtc); struct vc4_crtc_state *vc4_state = to_vc4_crtc_state(crtc_state); @@ -457,7 +457,7 @@ Signed-off-by: Maxime Ripard /* The pixelvalve can only feed one encoder (and encoders are * 1:1 with connectors.) -@@ -819,14 +1085,11 @@ int vc4_hvs_atomic_check(struct drm_crtc +@@ -820,14 +1086,11 @@ int vc4_hvs_atomic_check(struct drm_crtc drm_dbg_driver(dev, "[CRTC:%d:%s] Allocating DLIST block with size: %u\n", crtc->base.id, crtc->name, dlist_count); @@ -477,7 +477,7 @@ Signed-off-by: Maxime Ripard return 0; } -@@ -842,13 +1105,17 @@ static void vc4_hvs_install_dlist(struct +@@ -843,13 +1106,17 @@ static void vc4_hvs_install_dlist(struct if (!drm_dev_enter(dev, &idx)) return; @@ -497,7 +497,7 @@ Signed-off-by: Maxime Ripard drm_dev_exit(idx); } -@@ -875,8 +1142,10 @@ static void vc4_hvs_update_dlist(struct +@@ -876,8 +1143,10 @@ static void vc4_hvs_update_dlist(struct spin_unlock_irqrestore(&dev->event_lock, flags); } @@ -509,7 +509,7 @@ Signed-off-by: Maxime Ripard spin_unlock_irqrestore(&vc4_crtc->irq_lock, flags); } -@@ -937,8 +1206,7 @@ void vc4_hvs_atomic_flush(struct drm_crt +@@ -938,8 +1207,7 @@ void vc4_hvs_atomic_flush(struct drm_crt struct vc4_plane_state *vc4_plane_state; bool debug_dump_regs = false; bool enable_bg_fill = true; @@ -519,7 +519,7 @@ Signed-off-by: Maxime Ripard unsigned int zpos = 0; bool found = false; int idx; -@@ -958,6 +1226,9 @@ void vc4_hvs_atomic_flush(struct drm_crt +@@ -959,6 +1227,9 @@ void vc4_hvs_atomic_flush(struct drm_crt vc4_hvs_dump_state(hvs); } @@ -529,7 +529,7 @@ Signed-off-by: Maxime Ripard /* Copy all the active planes' dlist contents to the hardware dlist. */ do { found = false; -@@ -991,7 +1262,8 @@ void vc4_hvs_atomic_flush(struct drm_crt +@@ -992,7 +1263,8 @@ void vc4_hvs_atomic_flush(struct drm_crt writel(SCALER_CTL0_END, dlist_next); dlist_next++; @@ -539,7 +539,7 @@ Signed-off-by: Maxime Ripard if (vc4->gen >= VC4_GEN_6_C) { /* This sets a black background color fill, as is the case -@@ -1147,6 +1419,11 @@ static irqreturn_t vc4_hvs_irq_handler(i +@@ -1148,6 +1420,11 @@ static irqreturn_t vc4_hvs_irq_handler(i irqret = IRQ_HANDLED; } @@ -551,7 +551,7 @@ Signed-off-by: Maxime Ripard } /* Clear every per-channel interrupt flag. */ -@@ -1157,6 +1434,27 @@ static irqreturn_t vc4_hvs_irq_handler(i +@@ -1158,6 +1435,27 @@ static irqreturn_t vc4_hvs_irq_handler(i return irqret; } @@ -579,7 +579,7 @@ Signed-off-by: Maxime Ripard int vc4_hvs_debugfs_init(struct drm_minor *minor) { struct drm_device *drm = minor->dev; -@@ -1248,6 +1546,18 @@ struct vc4_hvs *__vc4_hvs_alloc(struct v +@@ -1249,6 +1547,18 @@ struct vc4_hvs *__vc4_hvs_alloc(struct v hvs->dlist_mem_size = dlist_size; @@ -598,7 +598,7 @@ Signed-off-by: Maxime Ripard /* Set up the HVS LBM memory manager. We could have some more * complicated data structure that allowed reuse of LBM areas * between planes when they don't overlap on the screen, but -@@ -1743,6 +2053,33 @@ static int vc4_hvs_bind(struct device *d +@@ -1753,6 +2063,33 @@ static int vc4_hvs_bind(struct device *d vc4_hvs_irq_handler, 0, "vc4 hvs", drm); if (ret) return ret; diff --git a/target/linux/bcm27xx/patches-6.18/950-0412-drm-vc4-Add-hvs_dlist_allocs-debugfs-function.patch b/target/linux/bcm27xx/patches-6.18/950-0412-drm-vc4-Add-hvs_dlist_allocs-debugfs-function.patch index f02c85ee2f7..c0b3f7e0cbe 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0412-drm-vc4-Add-hvs_dlist_allocs-debugfs-function.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0412-drm-vc4-Add-hvs_dlist_allocs-debugfs-function.patch @@ -13,7 +13,7 @@ Signed-off-by: Dave Stevenson --- a/drivers/gpu/drm/vc4/vc4_hvs.c +++ b/drivers/gpu/drm/vc4/vc4_hvs.c -@@ -349,6 +349,36 @@ static int vc6_hvs_debugfs_upm_allocs(st +@@ -350,6 +350,36 @@ static int vc6_hvs_debugfs_upm_allocs(st return 0; } @@ -50,7 +50,7 @@ Signed-off-by: Dave Stevenson /* The filter kernel is composed of dwords each containing 3 9-bit * signed integers packed next to each other. */ -@@ -1478,6 +1508,8 @@ int vc4_hvs_debugfs_init(struct drm_mino +@@ -1479,6 +1509,8 @@ int vc4_hvs_debugfs_init(struct drm_mino drm_debugfs_add_file(drm, "hvs_underrun", vc4_hvs_debugfs_underrun, NULL); diff --git a/target/linux/bcm27xx/patches-6.18/950-0414-drm-vc4-Block-swiotlb-bounce-buffers-being-imported-.patch b/target/linux/bcm27xx/patches-6.18/950-0414-drm-vc4-Block-swiotlb-bounce-buffers-being-imported-.patch index d88630101ea..3ef73aafc5f 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0414-drm-vc4-Block-swiotlb-bounce-buffers-being-imported-.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0414-drm-vc4-Block-swiotlb-bounce-buffers-being-imported-.patch @@ -28,15 +28,15 @@ Signed-off-by: Dave Stevenson --- a/drivers/gpu/drm/vc4/vc4_drv.c +++ b/drivers/gpu/drm/vc4/vc4_drv.c -@@ -30,6 +30,7 @@ - #include +@@ -28,6 +28,7 @@ + #include #include #include +#include #include #include -@@ -176,6 +177,19 @@ static void vc4_close(struct drm_device +@@ -174,6 +175,19 @@ static void vc4_close(struct drm_device kfree(vc4file); } @@ -56,7 +56,7 @@ Signed-off-by: Dave Stevenson DEFINE_DRM_GEM_FOPS(vc4_drm_fops); static const struct drm_ioctl_desc vc4_drm_ioctls[] = { -@@ -212,8 +226,9 @@ const struct drm_driver vc4_drm_driver = +@@ -210,8 +224,9 @@ const struct drm_driver vc4_drm_driver = .gem_create_object = vc4_create_object, @@ -67,7 +67,7 @@ Signed-off-by: Dave Stevenson .ioctls = vc4_drm_ioctls, .num_ioctls = ARRAY_SIZE(vc4_drm_ioctls), -@@ -235,8 +250,9 @@ const struct drm_driver vc5_drm_driver = +@@ -233,8 +248,9 @@ const struct drm_driver vc5_drm_driver = .debugfs_init = vc4_debugfs_init, #endif diff --git a/target/linux/bcm27xx/patches-6.18/950-0432-drm-vc4-Add-support-for-per-plane-scaling-filter-sel.patch b/target/linux/bcm27xx/patches-6.18/950-0432-drm-vc4-Add-support-for-per-plane-scaling-filter-sel.patch index 14fc660c431..c139c335536 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0432-drm-vc4-Add-support-for-per-plane-scaling-filter-sel.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0432-drm-vc4-Add-support-for-per-plane-scaling-filter-sel.patch @@ -29,7 +29,7 @@ Signed-off-by: Dave Stevenson --- a/drivers/gpu/drm/vc4/vc4_hvs.c +++ b/drivers/gpu/drm/vc4/vc4_hvs.c -@@ -412,6 +412,9 @@ static int vc4_hvs_debugfs_dlist_allocs( +@@ -413,6 +413,9 @@ static int vc4_hvs_debugfs_dlist_allocs( static const u32 mitchell_netravali_1_3_1_3_kernel[] = VC4_LINEAR_PHASE_KERNEL(0, -2, -6, -8, -10, -8, -3, 2, 18, 50, 82, 119, 155, 187, 213, 227); @@ -39,7 +39,7 @@ Signed-off-by: Dave Stevenson static int vc4_hvs_upload_linear_kernel(struct vc4_hvs *hvs, struct drm_mm_node *space, -@@ -2067,14 +2070,19 @@ static int vc4_hvs_bind(struct device *d +@@ -2077,14 +2080,19 @@ static int vc4_hvs_bind(struct device *d if (ret) return ret; @@ -61,7 +61,7 @@ Signed-off-by: Dave Stevenson ret = vc4_hvs_cob_init(hvs); if (ret) -@@ -2127,6 +2135,8 @@ static void vc4_hvs_unbind(struct device +@@ -2137,6 +2145,8 @@ static void vc4_hvs_unbind(struct device if (drm_mm_node_allocated(&vc4->hvs->mitchell_netravali_filter)) drm_mm_remove_node(&vc4->hvs->mitchell_netravali_filter); diff --git a/target/linux/bcm27xx/patches-6.18/950-0434-drm-vc4-hvs-Defer-updating-the-enable_bg_fill-until-.patch b/target/linux/bcm27xx/patches-6.18/950-0434-drm-vc4-hvs-Defer-updating-the-enable_bg_fill-until-.patch index ce24cd05b8b..6bbd53af200 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0434-drm-vc4-hvs-Defer-updating-the-enable_bg_fill-until-.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0434-drm-vc4-hvs-Defer-updating-the-enable_bg_fill-until-.patch @@ -30,7 +30,7 @@ Signed-off-by: Dave Stevenson /* Memory manager for CRTCs to allocate space in the display --- a/drivers/gpu/drm/vc4/vc4_hvs.c +++ b/drivers/gpu/drm/vc4/vc4_hvs.c -@@ -1302,14 +1302,7 @@ void vc4_hvs_atomic_flush(struct drm_crt +@@ -1303,14 +1303,7 @@ void vc4_hvs_atomic_flush(struct drm_crt /* This sets a black background color fill, as is the case * with other DRM drivers. */ @@ -46,7 +46,7 @@ Signed-off-by: Dave Stevenson } else { /* we can actually run with a lower core clock when background * fill is enabled on VC4_GEN_5 so leave it enabled always. -@@ -1481,6 +1474,15 @@ static irqreturn_t vc6_hvs_eof_irq_handl +@@ -1482,6 +1475,15 @@ static irqreturn_t vc6_hvs_eof_irq_handl if (hvs->eof_irq[i].desc != irq) continue; diff --git a/target/linux/bcm27xx/patches-6.18/950-0440-drm-vc4-Remove-request-for-min-clocks-when-hdmi-outp.patch b/target/linux/bcm27xx/patches-6.18/950-0440-drm-vc4-Remove-request-for-min-clocks-when-hdmi-outp.patch index b9c93e1f88e..fb74ab2ce46 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0440-drm-vc4-Remove-request-for-min-clocks-when-hdmi-outp.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0440-drm-vc4-Remove-request-for-min-clocks-when-hdmi-outp.patch @@ -50,7 +50,7 @@ Signed-off-by: Dom Cobley return 0; --- a/drivers/gpu/drm/vc4/vc4_hvs.c +++ b/drivers/gpu/drm/vc4/vc4_hvs.c -@@ -2149,7 +2149,10 @@ static void vc4_hvs_unbind(struct device +@@ -2159,7 +2159,10 @@ static void vc4_hvs_unbind(struct device drm_mm_remove_node(node); drm_mm_takedown(&vc4->hvs->lbm_mm); diff --git a/target/linux/bcm27xx/patches-6.18/950-0442-drm-vc4-fkms-Add-firmware-kms-mode.patch b/target/linux/bcm27xx/patches-6.18/950-0442-drm-vc4-fkms-Add-firmware-kms-mode.patch index 392e39b52be..b747beebdd9 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0442-drm-vc4-fkms-Add-firmware-kms-mode.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0442-drm-vc4-fkms-Add-firmware-kms-mode.patch @@ -171,10 +171,31 @@ Signed-off-by: Phil Elwell drm_WARN_ON(drm, vc4_bo_debugfs_init(minor)); --- a/drivers/gpu/drm/vc4/vc4_drv.c +++ b/drivers/gpu/drm/vc4/vc4_drv.c -@@ -300,6 +300,18 @@ static const struct of_device_id vc4_dma - {} - }; +@@ -24,8 +24,10 @@ + #include + #include + #include ++#include + #include + #include ++#include + #include + #include + #include +@@ -288,6 +290,28 @@ static void vc4_component_unbind_all(voi + component_unbind_all(vc4->dev, &vc4->base); + } ++static const struct of_device_id vc4_dma_range_matches[] = { ++ { .compatible = "brcm,bcm2711-hvs" }, ++ { .compatible = "brcm,bcm2712-hvs" }, ++ { .compatible = "brcm,bcm2835-hvs" }, ++ { .compatible = "brcm,bcm2835-v3d" }, ++ { .compatible = "brcm,cygnus-v3d" }, ++ { .compatible = "brcm,vc4-v3d" }, ++ {} ++}; ++ +/* + * we need this helper function for determining presence of fkms + * before it's been bound @@ -190,7 +211,32 @@ Signed-off-by: Phil Elwell static int vc4_drm_bind(struct device *dev) { struct platform_device *pdev = to_platform_device(dev); -@@ -383,7 +395,7 @@ static int vc4_drm_bind(struct device *d +@@ -307,6 +331,24 @@ static int vc4_drm_bind(struct device *d + else + driver = &vc4_drm_driver; + ++ /* ++ * Without HVS/V3D components to provide the DMA device, fkms keeps ++ * borrowing their DT DMA configuration. ++ */ ++ if (firmware_kms()) { ++ dma_set_mask_and_coherent(dev, DMA_BIT_MASK(gen >= VC4_GEN_6_C ? 36 : 32)); ++ ++ node = of_find_matching_node_and_match(NULL, vc4_dma_range_matches, ++ NULL); ++ if (node) { ++ ret = of_dma_configure(dev, node, true); ++ of_node_put(node); ++ ++ if (ret) ++ return ret; ++ } ++ } ++ + vc4 = devm_drm_dev_alloc(dev, driver, struct vc4_dev, base); + if (IS_ERR(vc4)) + return PTR_ERR(vc4); +@@ -354,7 +396,7 @@ static int vc4_drm_bind(struct device *d goto err; } @@ -199,7 +245,7 @@ Signed-off-by: Phil Elwell ret = rpi_firmware_property(firmware, RPI_FIRMWARE_NOTIFY_DISPLAY_DONE, NULL, 0); -@@ -401,16 +413,20 @@ static int vc4_drm_bind(struct device *d +@@ -372,16 +414,20 @@ static int vc4_drm_bind(struct device *d if (ret) goto err; @@ -225,7 +271,7 @@ Signed-off-by: Phil Elwell ret = drm_dev_register(drm, 0); if (ret < 0) -@@ -456,6 +472,7 @@ static struct platform_driver *const com +@@ -427,6 +473,7 @@ static struct platform_driver *const com &vc4_dsi_driver, &vc4_txp_driver, &vc4_crtc_driver, diff --git a/target/linux/bcm27xx/patches-6.18/950-0456-drm-vc4-Cache-LBM-allocations-to-avoid-double-buffer.patch b/target/linux/bcm27xx/patches-6.18/950-0456-drm-vc4-Cache-LBM-allocations-to-avoid-double-buffer.patch index f0be494999b..b0acbf9b891 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0456-drm-vc4-Cache-LBM-allocations-to-avoid-double-buffer.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0456-drm-vc4-Cache-LBM-allocations-to-avoid-double-buffer.patch @@ -83,7 +83,7 @@ Signed-off-by: Dave Stevenson unsigned int upm_handle[DRM_FORMAT_MAX_PLANES]; --- a/drivers/gpu/drm/vc4/vc4_hvs.c +++ b/drivers/gpu/drm/vc4/vc4_hvs.c -@@ -379,6 +379,27 @@ static int vc4_hvs_debugfs_dlist_allocs( +@@ -380,6 +380,27 @@ static int vc4_hvs_debugfs_dlist_allocs( return 0; } @@ -111,7 +111,7 @@ Signed-off-by: Dave Stevenson /* The filter kernel is composed of dwords each containing 3 9-bit * signed integers packed next to each other. */ -@@ -1511,6 +1532,8 @@ int vc4_hvs_debugfs_init(struct drm_mino +@@ -1512,6 +1533,8 @@ int vc4_hvs_debugfs_init(struct drm_mino drm_debugfs_add_file(drm, "hvs_dlists", vc4_hvs_debugfs_dlist, NULL); } @@ -120,7 +120,7 @@ Signed-off-by: Dave Stevenson drm_debugfs_add_file(drm, "hvs_underrun", vc4_hvs_debugfs_underrun, NULL); drm_debugfs_add_file(drm, "hvs_dlist_allocs", vc4_hvs_debugfs_dlist_allocs, NULL); -@@ -1627,6 +1650,7 @@ struct vc4_hvs *__vc4_hvs_alloc(struct v +@@ -1628,6 +1651,7 @@ struct vc4_hvs *__vc4_hvs_alloc(struct v } drm_mm_init(&hvs->lbm_mm, 0, lbm_size); diff --git a/target/linux/bcm27xx/patches-6.18/950-0462-drm-vc4-hvs-Fix-vc6_hvs_debugfs_dlist-state-lookup.patch b/target/linux/bcm27xx/patches-6.18/950-0462-drm-vc4-hvs-Fix-vc6_hvs_debugfs_dlist-state-lookup.patch index 28833114315..0c33a30c36f 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0462-drm-vc4-hvs-Fix-vc6_hvs_debugfs_dlist-state-lookup.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0462-drm-vc4-hvs-Fix-vc6_hvs_debugfs_dlist-state-lookup.patch @@ -17,7 +17,7 @@ Signed-off-by: Dave Stevenson --- a/drivers/gpu/drm/vc4/vc4_hvs.c +++ b/drivers/gpu/drm/vc4/vc4_hvs.c -@@ -281,8 +281,8 @@ static int vc4_hvs_debugfs_dlist(struct +@@ -282,8 +282,8 @@ static int vc4_hvs_debugfs_dlist(struct static int vc6_hvs_debugfs_dlist(struct seq_file *m, void *data) { diff --git a/target/linux/bcm27xx/patches-6.18/950-0474-drm-vc4-hvs-Populate-YUV-to-RGB-matrices-for-GEN_6D.patch b/target/linux/bcm27xx/patches-6.18/950-0474-drm-vc4-hvs-Populate-YUV-to-RGB-matrices-for-GEN_6D.patch index 3a65a136bd2..1c8f413fd03 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0474-drm-vc4-hvs-Populate-YUV-to-RGB-matrices-for-GEN_6D.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0474-drm-vc4-hvs-Populate-YUV-to-RGB-matrices-for-GEN_6D.patch @@ -15,7 +15,7 @@ Signed-off-by: Dave Stevenson --- a/drivers/gpu/drm/vc4/vc4_hvs.c +++ b/drivers/gpu/drm/vc4/vc4_hvs.c -@@ -1845,9 +1845,71 @@ static const struct vc6_csc_coeff_entry +@@ -1846,9 +1846,71 @@ static const struct vc6_csc_coeff_entry } }; @@ -87,7 +87,7 @@ Signed-off-by: Dave Stevenson unsigned int i; HVS_WRITE(SCALER6_CONTROL, -@@ -1884,16 +1946,17 @@ static int vc6_hvs_hw_init(struct vc4_hv +@@ -1885,16 +1947,17 @@ static int vc6_hvs_hw_init(struct vc4_hv HVS_WRITE(CFC1_N_NL_CSC_CTRL(i), BIT(15)); } } else { diff --git a/target/linux/bcm27xx/patches-6.18/950-0479-serial-tty-Add-a-driver-for-the-RPi-firmware-UART.patch b/target/linux/bcm27xx/patches-6.18/950-0479-serial-tty-Add-a-driver-for-the-RPi-firmware-UART.patch index 015bece981d..63119d40f8f 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0479-serial-tty-Add-a-driver-for-the-RPi-firmware-UART.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0479-serial-tty-Add-a-driver-for-the-RPi-firmware-UART.patch @@ -41,7 +41,7 @@ Signed-off-by: Phil Elwell --- a/drivers/tty/serial/Kconfig +++ b/drivers/tty/serial/Kconfig -@@ -1619,6 +1619,17 @@ config SERIAL_ESP32_ACM +@@ -1620,6 +1620,17 @@ config SERIAL_ESP32_ACM snippet may be used: earlycon=esp32s3acm,mmio32,0x60038000 diff --git a/target/linux/bcm27xx/patches-6.18/950-0544-lan78xx-Enable-LEDs-and-auto-negotiation.patch b/target/linux/bcm27xx/patches-6.18/950-0544-lan78xx-Enable-LEDs-and-auto-negotiation.patch index ff2bb311e87..09e64714de1 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0544-lan78xx-Enable-LEDs-and-auto-negotiation.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0544-lan78xx-Enable-LEDs-and-auto-negotiation.patch @@ -14,7 +14,7 @@ Signed-off-by: Phil Elwell --- a/drivers/net/usb/lan78xx.c +++ b/drivers/net/usb/lan78xx.c -@@ -3286,6 +3286,11 @@ static int lan78xx_reset(struct lan78xx_ +@@ -3298,6 +3298,11 @@ static int lan78xx_reset(struct lan78xx_ unsigned long timeout; int ret; u32 buf; @@ -26,7 +26,7 @@ Signed-off-by: Phil Elwell ret = lan78xx_read_reg(dev, HW_CFG, &buf); if (ret < 0) -@@ -3356,6 +3361,10 @@ static int lan78xx_reset(struct lan78xx_ +@@ -3368,6 +3373,10 @@ static int lan78xx_reset(struct lan78xx_ buf |= HW_CFG_CLK125_EN_; buf |= HW_CFG_REFCLK25_EN_; @@ -37,7 +37,7 @@ Signed-off-by: Phil Elwell ret = lan78xx_write_reg(dev, HW_CFG, buf); if (ret < 0) return ret; -@@ -3448,6 +3457,10 @@ static int lan78xx_reset(struct lan78xx_ +@@ -3460,6 +3469,10 @@ static int lan78xx_reset(struct lan78xx_ if (dev->chipid == ID_REV_CHIP_ID_7801_) buf &= ~MAC_CR_GMII_EN_; diff --git a/target/linux/bcm27xx/patches-6.18/950-0545-lan78xx-Read-initial-EEE-status-from-DT.patch b/target/linux/bcm27xx/patches-6.18/950-0545-lan78xx-Read-initial-EEE-status-from-DT.patch index de056d37f03..406e5e394d3 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0545-lan78xx-Read-initial-EEE-status-from-DT.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0545-lan78xx-Read-initial-EEE-status-from-DT.patch @@ -25,7 +25,7 @@ Signed-off-by: Phil Elwell --- a/drivers/net/usb/lan78xx.c +++ b/drivers/net/usb/lan78xx.c -@@ -2931,6 +2931,29 @@ static int lan78xx_phy_init(struct lan78 +@@ -2943,6 +2943,29 @@ static int lan78xx_phy_init(struct lan78 goto phylink_uninit; } diff --git a/target/linux/bcm27xx/patches-6.18/950-0546-lan78xx-Return-tx_lpi_timer-even-if-disabled.patch b/target/linux/bcm27xx/patches-6.18/950-0546-lan78xx-Return-tx_lpi_timer-even-if-disabled.patch index fe486f3c697..062442c0234 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0546-lan78xx-Return-tx_lpi_timer-even-if-disabled.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0546-lan78xx-Return-tx_lpi_timer-even-if-disabled.patch @@ -13,7 +13,7 @@ Signed-off-by: Phil Elwell --- a/drivers/net/usb/lan78xx.c +++ b/drivers/net/usb/lan78xx.c -@@ -1839,15 +1839,34 @@ exit_pm_put: +@@ -1851,15 +1851,34 @@ exit_pm_put: static int lan78xx_get_eee(struct net_device *net, struct ethtool_keee *edata) { struct lan78xx_net *dev = netdev_priv(net); diff --git a/target/linux/bcm27xx/patches-6.18/950-0551-dmaengine-dw-axi-dmac-Per-channel-burst-limits.patch b/target/linux/bcm27xx/patches-6.18/950-0551-dmaengine-dw-axi-dmac-Per-channel-burst-limits.patch index c654d1f8210..9cda0aaa56b 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0551-dmaengine-dw-axi-dmac-Per-channel-burst-limits.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0551-dmaengine-dw-axi-dmac-Per-channel-burst-limits.patch @@ -19,8 +19,8 @@ Signed-off-by: Phil Elwell ctlhi = CH_CTL_H_LLI_VALID; if (chan->chip->dw->hdata->restrict_axi_burst_len) { -- burst_len = chan->chip->dw->hdata->axi_rw_burst_len; -+ burst_len = chan->chip->dw->hdata->axi_rw_burst_len[chan->id]; +- burst_len = chan->chip->dw->hdata->axi_rw_burst_len - 1; ++ burst_len = chan->chip->dw->hdata->axi_rw_burst_len[chan->id] - 1; ctlhi |= CH_CTL_H_ARLEN_EN | CH_CTL_H_AWLEN_EN | burst_len << CH_CTL_H_ARLEN_POS | burst_len << CH_CTL_H_AWLEN_POS; @@ -28,12 +28,12 @@ Signed-off-by: Phil Elwell reg = CH_CTL_H_LLI_VALID; if (chan->chip->dw->hdata->restrict_axi_burst_len) { -- u32 burst_len = chan->chip->dw->hdata->axi_rw_burst_len; -+ u32 burst_len = chan->chip->dw->hdata->axi_rw_burst_len[chan->id]; +- u32 burst_len = chan->chip->dw->hdata->axi_rw_burst_len - 1; ++ u32 burst_len = chan->chip->dw->hdata->axi_rw_burst_len[chan->id] - 1; reg |= (CH_CTL_H_ARLEN_EN | burst_len << CH_CTL_H_ARLEN_POS | -@@ -1499,6 +1499,7 @@ static int parse_device_properties(struc +@@ -1491,6 +1491,7 @@ static int parse_device_properties(struc { struct device *dev = chip->dev; u32 tmp, carr[DMAC_MAX_CHANNELS]; @@ -41,7 +41,7 @@ Signed-off-by: Phil Elwell int ret; ret = device_property_read_u32(dev, "dma-channels", &tmp); -@@ -1555,15 +1556,21 @@ static int parse_device_properties(struc +@@ -1547,15 +1548,21 @@ static int parse_device_properties(struc } /* axi-max-burst-len is optional property */ @@ -71,7 +71,7 @@ Signed-off-by: Phil Elwell } return 0; -@@ -1677,7 +1684,7 @@ static int dw_probe(struct platform_devi +@@ -1667,7 +1674,7 @@ static int dw_probe(struct platform_devi dma_cap_set(DMA_CYCLIC, dw->dma.cap_mask); /* DMA capabilities */ diff --git a/target/linux/bcm27xx/patches-6.18/950-0552-dmaengine-dw-axi-dmac-Add-DMA-channel-selection.patch b/target/linux/bcm27xx/patches-6.18/950-0552-dmaengine-dw-axi-dmac-Add-DMA-channel-selection.patch index 34883c75739..b5f845125f6 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0552-dmaengine-dw-axi-dmac-Add-DMA-channel-selection.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0552-dmaengine-dw-axi-dmac-Add-DMA-channel-selection.patch @@ -16,7 +16,7 @@ Signed-off-by: Phil Elwell --- a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c +++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c -@@ -1479,19 +1479,75 @@ static int __maybe_unused axi_dma_runtim +@@ -1471,19 +1471,75 @@ static int __maybe_unused axi_dma_runtim return axi_dma_resume(chip); } @@ -96,7 +96,7 @@ Signed-off-by: Phil Elwell return dchan; } -@@ -1573,6 +1629,15 @@ static int parse_device_properties(struc +@@ -1565,6 +1621,15 @@ static int parse_device_properties(struc } } diff --git a/target/linux/bcm27xx/patches-6.18/950-0553-dmaengine-dw-axi-dmac-report-per-channel-max_burst-v.patch b/target/linux/bcm27xx/patches-6.18/950-0553-dmaengine-dw-axi-dmac-report-per-channel-max_burst-v.patch index ae0bf86796b..88053d7b389 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0553-dmaengine-dw-axi-dmac-report-per-channel-max_burst-v.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0553-dmaengine-dw-axi-dmac-report-per-channel-max_burst-v.patch @@ -23,7 +23,7 @@ Signed-off-by: Nicolai Buchwitz --- a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c +++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c -@@ -1479,6 +1479,16 @@ static int __maybe_unused axi_dma_runtim +@@ -1471,6 +1471,16 @@ static int __maybe_unused axi_dma_runtim return axi_dma_resume(chip); } @@ -40,7 +40,7 @@ Signed-off-by: Nicolai Buchwitz static bool dw_axi_dma_filter_fn(struct dma_chan *dchan, void *filter_param) { struct axi_dma_chan *chan = dchan_to_axi_dma_chan(dchan); -@@ -1749,7 +1759,7 @@ static int dw_probe(struct platform_devi +@@ -1739,7 +1749,7 @@ static int dw_probe(struct platform_devi dma_cap_set(DMA_CYCLIC, dw->dma.cap_mask); /* DMA capabilities */ diff --git a/target/linux/bcm27xx/patches-6.18/950-0561-arm64-dts-Remove-the-Pi5-FIRMWARE_UPDATED-guards.patch b/target/linux/bcm27xx/patches-6.18/950-0561-arm64-dts-Remove-the-Pi5-FIRMWARE_UPDATED-guards.patch index ca803d819c3..63a27225347 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0561-arm64-dts-Remove-the-Pi5-FIRMWARE_UPDATED-guards.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0561-arm64-dts-Remove-the-Pi5-FIRMWARE_UPDATED-guards.patch @@ -109,7 +109,7 @@ Signed-off-by: Phil Elwell }; --- a/arch/arm64/boot/dts/broadcom/bcm2712.dtsi +++ b/arch/arm64/boot/dts/broadcom/bcm2712.dtsi -@@ -615,11 +615,7 @@ +@@ -639,11 +639,7 @@ hvs: hvs@107c580000 { compatible = "brcm,bcm2712-hvs"; diff --git a/target/linux/bcm27xx/patches-6.18/950-0642-drm-vc4-crtc-Add-support-for-a-custom-background-col.patch b/target/linux/bcm27xx/patches-6.18/950-0642-drm-vc4-crtc-Add-support-for-a-custom-background-col.patch index 03025c02c5c..c58f5316f7d 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0642-drm-vc4-crtc-Add-support-for-a-custom-background-col.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0642-drm-vc4-crtc-Add-support-for-a-custom-background-col.patch @@ -37,7 +37,7 @@ Signed-off-by: Dave Stevenson if (vc4->gen == VC4_GEN_4) { --- a/drivers/gpu/drm/vc4/vc4_hvs.c +++ b/drivers/gpu/drm/vc4/vc4_hvs.c -@@ -1256,6 +1256,7 @@ void vc4_hvs_atomic_flush(struct drm_crt +@@ -1257,6 +1257,7 @@ void vc4_hvs_atomic_flush(struct drm_crt struct vc4_crtc *vc4_crtc = to_vc4_crtc(crtc); struct vc4_crtc_state *vc4_state = to_vc4_crtc_state(crtc->state); unsigned int channel = vc4_state->assigned_channel; @@ -45,7 +45,7 @@ Signed-off-by: Dave Stevenson struct drm_plane *plane; struct vc4_plane_state *vc4_plane_state; bool debug_dump_regs = false; -@@ -1320,16 +1321,46 @@ void vc4_hvs_atomic_flush(struct drm_crt +@@ -1321,16 +1322,46 @@ void vc4_hvs_atomic_flush(struct drm_crt WARN_ON_ONCE(dlist_next - dlist_start != vc4_state->mm->mm_node.size); if (vc4->gen >= VC4_GEN_6_C) { diff --git a/target/linux/bcm27xx/patches-6.18/950-0683-Revert-Patching-lan78xx-for-SOF_TIMESTAMPING_TX_SOFT.patch b/target/linux/bcm27xx/patches-6.18/950-0683-Revert-Patching-lan78xx-for-SOF_TIMESTAMPING_TX_SOFT.patch index 95e0d41d0ff..d6787380936 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0683-Revert-Patching-lan78xx-for-SOF_TIMESTAMPING_TX_SOFT.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0683-Revert-Patching-lan78xx-for-SOF_TIMESTAMPING_TX_SOFT.patch @@ -11,7 +11,7 @@ This reverts commit abe92ec1f594420e6b70e5f5e79c7c11d1206822. --- a/drivers/net/usb/lan78xx.c +++ b/drivers/net/usb/lan78xx.c -@@ -1981,7 +1981,6 @@ static const struct ethtool_ops lan78xx_ +@@ -1993,7 +1993,6 @@ static const struct ethtool_ops lan78xx_ .set_link_ksettings = lan78xx_set_link_ksettings, .get_regs_len = lan78xx_get_regs_len, .get_regs = lan78xx_get_regs, diff --git a/target/linux/bcm27xx/patches-6.18/950-0684-Revert-lan78xx-Return-tx_lpi_timer-even-if-disabled.patch b/target/linux/bcm27xx/patches-6.18/950-0684-Revert-lan78xx-Return-tx_lpi_timer-even-if-disabled.patch index 1e78a475063..8b81978be8a 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0684-Revert-lan78xx-Return-tx_lpi_timer-even-if-disabled.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0684-Revert-lan78xx-Return-tx_lpi_timer-even-if-disabled.patch @@ -10,7 +10,7 @@ This reverts commit 9c78c6d07692d46d98ffd9b55092c5874d533e1a. --- a/drivers/net/usb/lan78xx.c +++ b/drivers/net/usb/lan78xx.c -@@ -1839,34 +1839,15 @@ exit_pm_put: +@@ -1851,34 +1851,15 @@ exit_pm_put: static int lan78xx_get_eee(struct net_device *net, struct ethtool_keee *edata) { struct lan78xx_net *dev = netdev_priv(net); diff --git a/target/linux/bcm27xx/patches-6.18/950-0685-Revert-lan78xx-Read-initial-EEE-status-from-DT.patch b/target/linux/bcm27xx/patches-6.18/950-0685-Revert-lan78xx-Read-initial-EEE-status-from-DT.patch index eb3b38882c4..5f0d183d100 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0685-Revert-lan78xx-Read-initial-EEE-status-from-DT.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0685-Revert-lan78xx-Read-initial-EEE-status-from-DT.patch @@ -10,7 +10,7 @@ This reverts commit 98fb76f556f399cf9e6bbabc2aae0110192a8a91. --- a/drivers/net/usb/lan78xx.c +++ b/drivers/net/usb/lan78xx.c -@@ -2930,29 +2930,6 @@ static int lan78xx_phy_init(struct lan78 +@@ -2942,29 +2942,6 @@ static int lan78xx_phy_init(struct lan78 goto phylink_uninit; } diff --git a/target/linux/bcm27xx/patches-6.18/950-0701-arm64-dts-Revert-to-upstream.patch b/target/linux/bcm27xx/patches-6.18/950-0701-arm64-dts-Revert-to-upstream.patch index c720b206307..0eb2d1a38af 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0701-arm64-dts-Revert-to-upstream.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0701-arm64-dts-Revert-to-upstream.patch @@ -9,7 +9,7 @@ Subject: [PATCH] arm64: dts: Revert to upstream --- a/arch/arm64/boot/dts/broadcom/bcm2712.dtsi +++ b/arch/arm64/boot/dts/broadcom/bcm2712.dtsi -@@ -38,6 +38,13 @@ +@@ -39,6 +39,13 @@ clock-frequency = <200000000>; clock-output-names = "emmc2-clock"; }; @@ -23,7 +23,7 @@ Subject: [PATCH] arm64: dts: Revert to upstream }; cpus: cpus { -@@ -252,6 +259,39 @@ +@@ -253,6 +260,39 @@ system-power-controller; }; @@ -63,7 +63,7 @@ Subject: [PATCH] arm64: dts: Revert to upstream interrupt-controller@7d517000 { compatible = "brcm,bcm7271-l2-intc"; reg = <0x7d517000 0x10>; -@@ -272,6 +312,21 @@ +@@ -273,6 +313,21 @@ */ }; @@ -85,10 +85,10 @@ Subject: [PATCH] arm64: dts: Revert to upstream gicv2: interrupt-controller@7fff9000 { compatible = "arm,gic-400"; reg = <0x7fff9000 0x1000>, -@@ -619,6 +674,5 @@ - interrupt-parent = <&disp_intr>; +@@ -644,6 +699,5 @@ interrupts = <2>, <9>, <16>; interrupt-names = "ch0-eof", "ch1-eof", "ch2-eof"; + status = "disabled"; - iommus = <&iommu4>; }; }; diff --git a/target/linux/bcm27xx/patches-6.18/950-0702-Revert-arm64-dts-Revert-to-upstream.patch b/target/linux/bcm27xx/patches-6.18/950-0702-Revert-arm64-dts-Revert-to-upstream.patch index ed29a2343bd..f2993c7c961 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0702-Revert-arm64-dts-Revert-to-upstream.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0702-Revert-arm64-dts-Revert-to-upstream.patch @@ -10,7 +10,7 @@ This reverts commit 5c635c793591bb06bc51c4ac464bde529382ab43. --- a/arch/arm64/boot/dts/broadcom/bcm2712.dtsi +++ b/arch/arm64/boot/dts/broadcom/bcm2712.dtsi -@@ -38,13 +38,6 @@ +@@ -39,13 +39,6 @@ clock-frequency = <200000000>; clock-output-names = "emmc2-clock"; }; @@ -24,7 +24,7 @@ This reverts commit 5c635c793591bb06bc51c4ac464bde529382ab43. }; cpus: cpus { -@@ -250,48 +243,6 @@ +@@ -251,48 +244,6 @@ status = "disabled"; }; @@ -73,7 +73,7 @@ This reverts commit 5c635c793591bb06bc51c4ac464bde529382ab43. interrupt-controller@7d517000 { compatible = "brcm,bcm7271-l2-intc"; reg = <0x7d517000 0x10>; -@@ -312,21 +263,6 @@ +@@ -313,21 +264,6 @@ */ }; @@ -95,10 +95,10 @@ This reverts commit 5c635c793591bb06bc51c4ac464bde529382ab43. gicv2: interrupt-controller@7fff9000 { compatible = "arm,gic-400"; reg = <0x7fff9000 0x1000>, -@@ -674,5 +610,6 @@ - interrupt-parent = <&disp_intr>; +@@ -699,5 +635,6 @@ interrupts = <2>, <9>, <16>; interrupt-names = "ch0-eof", "ch1-eof", "ch2-eof"; + status = "disabled"; + iommus = <&iommu4>; }; }; diff --git a/target/linux/bcm27xx/patches-6.18/950-0778-serial-Add-rp1-pio-uart-a-PIO-based-UART.patch b/target/linux/bcm27xx/patches-6.18/950-0778-serial-Add-rp1-pio-uart-a-PIO-based-UART.patch index 0435ee7100a..18da83b0f0d 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0778-serial-Add-rp1-pio-uart-a-PIO-based-UART.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0778-serial-Add-rp1-pio-uart-a-PIO-based-UART.patch @@ -18,7 +18,7 @@ Signed-off-by: Phil Elwell --- a/drivers/tty/serial/Kconfig +++ b/drivers/tty/serial/Kconfig -@@ -1630,6 +1630,19 @@ config SERIAL_RPI_FW +@@ -1631,6 +1631,19 @@ config SERIAL_RPI_FW If unsure, say N. diff --git a/target/linux/bcm27xx/patches-6.18/950-0787-drm-vc4-Derive-scanout-rate-and-frame-size-from-the-.patch b/target/linux/bcm27xx/patches-6.18/950-0787-drm-vc4-Derive-scanout-rate-and-frame-size-from-the-.patch index 5ee249b820f..c22749b48a0 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0787-drm-vc4-Derive-scanout-rate-and-frame-size-from-the-.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0787-drm-vc4-Derive-scanout-rate-and-frame-size-from-the-.patch @@ -58,7 +58,7 @@ Signed-off-by: Dom Cobley --- a/drivers/gpu/drm/vc4/vc4_hvs.c +++ b/drivers/gpu/drm/vc4/vc4_hvs.c -@@ -945,6 +945,7 @@ static int vc4_hvs_init_channel(struct v +@@ -946,6 +946,7 @@ static int vc4_hvs_init_channel(struct v struct vc4_crtc_state *vc4_crtc_state = to_vc4_crtc_state(crtc->state); unsigned int chan = vc4_crtc_state->assigned_channel; bool interlace = mode->flags & DRM_MODE_FLAG_INTERLACE; @@ -66,7 +66,7 @@ Signed-off-by: Dom Cobley u32 dispbkgndx; u32 dispctrl; int idx; -@@ -954,6 +955,9 @@ static int vc4_hvs_init_channel(struct v +@@ -955,6 +956,9 @@ static int vc4_hvs_init_channel(struct v if (!drm_dev_enter(drm, &idx)) return -ENODEV; @@ -76,7 +76,7 @@ Signed-off-by: Dom Cobley HVS_WRITE(SCALER_DISPCTRLX(chan), 0); HVS_WRITE(SCALER_DISPCTRLX(chan), SCALER_DISPCTRLX_RESET); HVS_WRITE(SCALER_DISPCTRLX(chan), 0); -@@ -967,16 +971,16 @@ static int vc4_hvs_init_channel(struct v +@@ -968,16 +972,16 @@ static int vc4_hvs_init_channel(struct v dispbkgndx = HVS_READ(SCALER_DISPBKGNDX(chan)); if (vc4->gen == VC4_GEN_4) { @@ -97,7 +97,7 @@ Signed-off-by: Dom Cobley SCALER5_DISPCTRLX_HEIGHT) | (oneshot ? SCALER5_DISPCTRLX_ONESHOT : 0); dispbkgndx &= ~SCALER5_DISPBKGND_BCK2BCK; -@@ -1009,6 +1013,7 @@ static int vc6_hvs_init_channel(struct v +@@ -1010,6 +1014,7 @@ static int vc6_hvs_init_channel(struct v struct vc4_crtc_state *vc4_crtc_state = to_vc4_crtc_state(crtc->state); unsigned int chan = vc4_crtc_state->assigned_channel; bool interlace = mode->flags & DRM_MODE_FLAG_INTERLACE; @@ -105,7 +105,7 @@ Signed-off-by: Dom Cobley u32 disp_ctrl1; int idx; -@@ -1017,6 +1022,9 @@ static int vc6_hvs_init_channel(struct v +@@ -1018,6 +1023,9 @@ static int vc6_hvs_init_channel(struct v if (!drm_dev_enter(drm, &idx)) return -ENODEV; @@ -115,7 +115,7 @@ Signed-off-by: Dom Cobley HVS_WRITE(SCALER6_DISPX_CTRL0(chan), SCALER6_DISPX_CTRL0_RESET); disp_ctrl1 = HVS_READ(SCALER6_DISPX_CTRL1(chan)); -@@ -1026,10 +1034,10 @@ static int vc6_hvs_init_channel(struct v +@@ -1027,10 +1035,10 @@ static int vc6_hvs_init_channel(struct v HVS_WRITE(SCALER6_DISPX_CTRL0(chan), SCALER6_DISPX_CTRL0_ENB | diff --git a/target/linux/bcm27xx/patches-6.18/950-0811-ASoC-dwc-Raise-sample-rate-limit-to-768kHz.patch b/target/linux/bcm27xx/patches-6.18/950-0811-ASoC-dwc-Raise-sample-rate-limit-to-768kHz.patch index d123cdfc8b8..f07503481c5 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0811-ASoC-dwc-Raise-sample-rate-limit-to-768kHz.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0811-ASoC-dwc-Raise-sample-rate-limit-to-768kHz.patch @@ -13,7 +13,7 @@ Signed-off-by: Phil Elwell --- a/sound/soc/dwc/dwc-i2s.c +++ b/sound/soc/dwc/dwc-i2s.c -@@ -813,7 +813,7 @@ static int dw_configure_dai_by_dt(struct +@@ -814,7 +814,7 @@ static int dw_configure_dai_by_dt(struct u32 idx2; int ret; diff --git a/target/linux/bcm27xx/patches-6.18/950-0823-dma-dw-axi-dmac-fix-cyclic-DMA.patch b/target/linux/bcm27xx/patches-6.18/950-0823-dma-dw-axi-dmac-fix-cyclic-DMA.patch index 4700b2ecd77..39151335a9c 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0823-dma-dw-axi-dmac-fix-cyclic-DMA.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0823-dma-dw-axi-dmac-fix-cyclic-DMA.patch @@ -131,7 +131,7 @@ Signed-off-by: Hans Verkuil /* Managed transfer list */ do { -@@ -1208,18 +1227,14 @@ out: +@@ -1205,18 +1224,14 @@ out: spin_unlock_irqrestore(&chan->vc.lock, flags); } @@ -152,7 +152,7 @@ Signed-off-by: Hans Verkuil dev_err(chan2dev(chan), "BUG: %s caught DWAXIDMAC_IRQ_DMA_TRF, but channel not idle!\n", axi_chan_name(chan)); axi_chan_disable(chan); -@@ -1236,22 +1251,52 @@ static void axi_chan_block_xfer_complete +@@ -1233,22 +1248,52 @@ static void axi_chan_block_xfer_complete if (chan->cyclic) { desc = vd_to_axi_desc(vd); if (desc) { @@ -220,7 +220,7 @@ Signed-off-by: Hans Verkuil } } else { /* Remove the completed descriptor from issued list before completing */ -@@ -1288,8 +1333,8 @@ static irqreturn_t dw_axi_dma_interrupt( +@@ -1285,8 +1330,8 @@ static irqreturn_t dw_axi_dma_interrupt( if (status & DWAXIDMAC_IRQ_ALL_ERR) axi_chan_handle_err(chan, status); @@ -233,7 +233,7 @@ Signed-off-by: Hans Verkuil /* Re-enable interrupts */ --- a/drivers/dma/dw-axi-dmac/dw-axi-dmac.h +++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac.h -@@ -252,6 +252,7 @@ enum { +@@ -251,6 +251,7 @@ enum { DWAXIDMAC_ARWLEN_MAX = DWAXIDMAC_ARWLEN_256 }; diff --git a/target/linux/bcm27xx/patches-6.18/950-0850-drm-vc4-Tabulate-the-PPF-filter-kernel-at-the-phases.patch b/target/linux/bcm27xx/patches-6.18/950-0850-drm-vc4-Tabulate-the-PPF-filter-kernel-at-the-phases.patch index ae5a29793e5..f4576e5a980 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0850-drm-vc4-Tabulate-the-PPF-filter-kernel-at-the-phases.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0850-drm-vc4-Tabulate-the-PPF-filter-kernel-at-the-phases.patch @@ -53,7 +53,7 @@ Signed-off-by: Dom Cobley --- a/drivers/gpu/drm/vc4/vc4_hvs.c +++ b/drivers/gpu/drm/vc4/vc4_hvs.c -@@ -409,30 +409,53 @@ static int vc4_hvs_debugfs_lbm_allocs(st +@@ -410,30 +410,53 @@ static int vc4_hvs_debugfs_lbm_allocs(st (((c1) & 0x1ff) << 9) | \ (((c2) & 0x1ff) << 18)) @@ -118,7 +118,7 @@ Signed-off-by: Dom Cobley static const u32 nearest_neighbour_kernel[] = VC4_LINEAR_PHASE_KERNEL(0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 255, 255, 255, 255); -@@ -458,14 +481,8 @@ static int vc4_hvs_upload_linear_kernel( +@@ -459,14 +482,8 @@ static int vc4_hvs_upload_linear_kernel( dst_kernel = hvs->dlist + space->start; diff --git a/target/linux/bcm27xx/patches-6.18/950-0875-dmaengine-dw-axi-dmac-Add-channel-abort-support.patch b/target/linux/bcm27xx/patches-6.18/950-0875-dmaengine-dw-axi-dmac-Add-channel-abort-support.patch index 2658b7a4755..1796fc9b3c7 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0875-dmaengine-dw-axi-dmac-Add-channel-abort-support.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0875-dmaengine-dw-axi-dmac-Add-channel-abort-support.patch @@ -51,7 +51,7 @@ Signed-off-by: Phil Elwell static inline void axi_chan_enable(struct axi_dma_chan *chan) { u64 val; -@@ -1356,9 +1382,21 @@ static int dma_chan_terminate_all(struct +@@ -1353,9 +1379,21 @@ static int dma_chan_terminate_all(struct ret = readl_poll_timeout_atomic(chan->chip->regs + DMAC_CHEN, val, !(val & chan_active), 1000, 50000); @@ -78,7 +78,7 @@ Signed-off-by: Phil Elwell dw_axi_dma_set_hw_channel(chan, false); --- a/drivers/dma/dw-axi-dmac/dw-axi-dmac.h +++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac.h -@@ -221,6 +221,9 @@ static inline struct axi_dma_chan *dchan +@@ -220,6 +220,9 @@ static inline struct axi_dma_chan *dchan #define DMAC_CHAN_SUSP_SHIFT 16 #define DMAC_CHAN_SUSP_WE_SHIFT 24 @@ -88,7 +88,7 @@ Signed-off-by: Phil Elwell /* DMAC_CHEN2 */ #define DMAC_CHAN_EN2_WE_SHIFT 16 -@@ -232,6 +235,10 @@ static inline struct axi_dma_chan *dchan +@@ -231,6 +234,10 @@ static inline struct axi_dma_chan *dchan #define DMAC_CHAN_SUSP2_SHIFT 0 #define DMAC_CHAN_SUSP2_WE_SHIFT 16 diff --git a/target/linux/bcm27xx/patches-6.18/950-0885-ASoC-dwc-Revert-i2s_stop-to-the-upstream-version.patch b/target/linux/bcm27xx/patches-6.18/950-0885-ASoC-dwc-Revert-i2s_stop-to-the-upstream-version.patch index 8f3e22cd8ca..f8cbdc3c9e1 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0885-ASoC-dwc-Revert-i2s_stop-to-the-upstream-version.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0885-ASoC-dwc-Revert-i2s_stop-to-the-upstream-version.patch @@ -17,7 +17,7 @@ Signed-off-by: Phil Elwell --- a/sound/soc/dwc/dwc-i2s.c +++ b/sound/soc/dwc/dwc-i2s.c -@@ -209,15 +209,23 @@ static void i2s_start(struct dw_i2s_dev +@@ -210,15 +210,23 @@ static void i2s_start(struct dw_i2s_dev static void i2s_stop(struct dw_i2s_dev *dev, struct snd_pcm_substream *substream) { diff --git a/target/linux/bcm27xx/patches-6.18/950-0909-ASoC-codecs-es8389-convert-to-snd_soc_dapm_xxx.patch b/target/linux/bcm27xx/patches-6.18/950-0909-ASoC-codecs-es8389-convert-to-snd_soc_dapm_xxx.patch index 466eed2cd1b..6880928746e 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0909-ASoC-codecs-es8389-convert-to-snd_soc_dapm_xxx.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0909-ASoC-codecs-es8389-convert-to-snd_soc_dapm_xxx.patch @@ -42,7 +42,7 @@ Signed-off-by: Mark Brown --- a/sound/soc/codecs/es8389.c +++ b/sound/soc/codecs/es8389.c -@@ -57,8 +57,8 @@ static const DECLARE_TLV_DB_SCALE(alc_ma +@@ -76,8 +76,8 @@ static const DECLARE_TLV_DB_SCALE(alc_ma static int es8389_dmic_set(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { diff --git a/target/linux/bcm27xx/patches-6.18/950-0910-ASoC-codecs-ES8389-Add-members-related-to-power-supp.patch b/target/linux/bcm27xx/patches-6.18/950-0910-ASoC-codecs-ES8389-Add-members-related-to-power-supp.patch index f1e36043244..ba90a52160c 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0910-ASoC-codecs-ES8389-Add-members-related-to-power-supp.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0910-ASoC-codecs-ES8389-Add-members-related-to-power-supp.patch @@ -47,7 +47,7 @@ Signed-off-by: Mark Brown static bool es8389_volatile_register(struct device *dev, unsigned int reg) { -@@ -818,7 +826,7 @@ static int es8389_resume(struct snd_soc_ +@@ -845,7 +853,7 @@ disable_bypass: static int es8389_probe(struct snd_soc_component *component) { @@ -56,7 +56,7 @@ Signed-off-by: Mark Brown struct es8389_private *es8389 = snd_soc_component_get_drvdata(component); ret = device_property_read_u8(component->dev, "everest,mclk-src", &es8389->mclk_src); -@@ -827,6 +835,14 @@ static int es8389_probe(struct snd_soc_c +@@ -854,6 +862,14 @@ static int es8389_probe(struct snd_soc_c es8389->mclk_src = ES8389_MCLK_SOURCE; } @@ -71,7 +71,7 @@ Signed-off-by: Mark Brown es8389->mclk = devm_clk_get_optional(component->dev, "mclk"); if (IS_ERR(es8389->mclk)) return dev_err_probe(component->dev, PTR_ERR(es8389->mclk), -@@ -841,6 +857,13 @@ static int es8389_probe(struct snd_soc_c +@@ -868,6 +884,13 @@ static int es8389_probe(struct snd_soc_c return ret; } @@ -85,7 +85,7 @@ Signed-off-by: Mark Brown es8389_init(component); es8389_set_bias_level(component, SND_SOC_BIAS_STANDBY); -@@ -907,6 +930,8 @@ static void es8389_i2c_shutdown(struct i +@@ -934,6 +957,8 @@ static void es8389_i2c_shutdown(struct i regmap_write(es8389->regmap, ES8389_ANA_CTL1, 0x08); regmap_write(es8389->regmap, ES8389_ISO_CTL, 0xC1); regmap_write(es8389->regmap, ES8389_PULL_DOWN, 0x00); diff --git a/target/linux/bcm27xx/patches-6.18/950-0911-ASoC-codecs-ES8389-Adjust-wakeup-configuration.patch b/target/linux/bcm27xx/patches-6.18/950-0911-ASoC-codecs-ES8389-Adjust-wakeup-configuration.patch index 763ecac9eeb..cbb5b62fafe 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0911-ASoC-codecs-ES8389-Adjust-wakeup-configuration.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0911-ASoC-codecs-ES8389-Adjust-wakeup-configuration.patch @@ -16,7 +16,7 @@ Signed-off-by: Mark Brown --- a/sound/soc/codecs/es8389.c +++ b/sound/soc/codecs/es8389.c -@@ -629,10 +629,6 @@ static int es8389_set_bias_level(struct +@@ -648,10 +648,6 @@ static int es8389_set_bias_level(struct regmap_write(es8389->regmap, ES8389_CSM_JUMP, 0xE4); regmap_write(es8389->regmap, ES8389_RESET, 0x01); regmap_write(es8389->regmap, ES8389_CLK_OFF1, 0xC3); @@ -27,7 +27,7 @@ Signed-off-by: Mark Brown break; case SND_SOC_BIAS_PREPARE: break; -@@ -663,6 +659,7 @@ static int es8389_mute(struct snd_soc_da +@@ -682,6 +678,7 @@ static int es8389_mute(struct snd_soc_da { struct snd_soc_component *component = dai->component; struct es8389_private *es8389 = snd_soc_component_get_drvdata(component); @@ -35,7 +35,7 @@ Signed-off-by: Mark Brown if (mute) { if (direction == SNDRV_PCM_STREAM_PLAYBACK) { -@@ -673,10 +670,22 @@ static int es8389_mute(struct snd_soc_da +@@ -692,10 +689,22 @@ static int es8389_mute(struct snd_soc_da 0x03, 0x03); } } else { diff --git a/target/linux/bcm27xx/patches-6.18/950-0912-ASoC-codecs-ES8389-Add-members-about-the-version.patch b/target/linux/bcm27xx/patches-6.18/950-0912-ASoC-codecs-ES8389-Add-members-about-the-version.patch index ae2ef3bed72..73e0b4a271b 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0912-ASoC-codecs-ES8389-Add-members-about-the-version.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0912-ASoC-codecs-ES8389-Add-members-about-the-version.patch @@ -25,7 +25,7 @@ Signed-off-by: Mark Brown enum snd_soc_bias_level bias_level; }; -@@ -681,6 +682,10 @@ static int es8389_mute(struct snd_soc_da +@@ -700,6 +701,10 @@ static int es8389_mute(struct snd_soc_da } if (direction == SNDRV_PCM_STREAM_PLAYBACK) { @@ -36,7 +36,7 @@ Signed-off-by: Mark Brown regmap_update_bits(es8389->regmap, ES8389_DAC_FORMAT_MUTE, 0x03, 0x00); } else { -@@ -730,7 +735,10 @@ static struct snd_soc_dai_driver es8389_ +@@ -749,7 +754,10 @@ static struct snd_soc_dai_driver es8389_ static void es8389_init(struct snd_soc_component *component) { struct es8389_private *es8389 = snd_soc_component_get_drvdata(component); diff --git a/target/linux/bcm27xx/patches-6.18/950-0913-ASoC-codecs-ES8389-Update-clock-configuration.patch b/target/linux/bcm27xx/patches-6.18/950-0913-ASoC-codecs-ES8389-Update-clock-configuration.patch index faa95a81525..fda86c5037d 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0913-ASoC-codecs-ES8389-Update-clock-configuration.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0913-ASoC-codecs-ES8389-Update-clock-configuration.patch @@ -17,7 +17,7 @@ Signed-off-by: Mark Brown --- a/sound/soc/codecs/es8389.c +++ b/sound/soc/codecs/es8389.c -@@ -376,95 +376,110 @@ struct _coeff_div { +@@ -395,95 +395,110 @@ struct _coeff_div { u8 Reg0x16; u8 Reg0x18; u8 Reg0x19; @@ -206,7 +206,7 @@ Signed-off-by: Mark Brown return -EINVAL; } -@@ -546,8 +561,9 @@ static int es8389_pcm_hw_params(struct s +@@ -565,8 +580,9 @@ static int es8389_pcm_hw_params(struct s { struct snd_soc_component *component = dai->component; struct es8389_private *es8389 = snd_soc_component_get_drvdata(component); @@ -218,7 +218,7 @@ Signed-off-by: Mark Brown switch (params_format(params)) { case SNDRV_PCM_FORMAT_S16_LE: -@@ -578,7 +594,23 @@ static int es8389_pcm_hw_params(struct s +@@ -597,7 +613,23 @@ static int es8389_pcm_hw_params(struct s es8389->sysclk = params_channels(params) * params_width(params) * params_rate(params); } diff --git a/target/linux/bcm27xx/patches-6.18/950-0914-ASoC-Use-named-initializers-for-arrays-of-i2c_device.patch b/target/linux/bcm27xx/patches-6.18/950-0914-ASoC-Use-named-initializers-for-arrays-of-i2c_device.patch index d3135e1bec5..db6874a4fbc 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0914-ASoC-Use-named-initializers-for-arrays-of-i2c_device.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0914-ASoC-Use-named-initializers-for-arrays-of-i2c_device.patch @@ -441,7 +441,7 @@ Signed-off-by: Mark Brown MODULE_DEVICE_TABLE(i2c, ak4619_i2c_id); --- a/sound/soc/codecs/ak4642.c +++ b/sound/soc/codecs/ak4642.c -@@ -672,10 +672,10 @@ static const struct of_device_id ak4642_ +@@ -671,10 +671,10 @@ static const struct of_device_id ak4642_ MODULE_DEVICE_TABLE(of, ak4642_of_match); static const struct i2c_device_id ak4642_i2c_id[] = { @@ -523,7 +523,7 @@ Signed-off-by: Mark Brown MODULE_DEVICE_TABLE(i2c, aw88081_i2c_id); --- a/sound/soc/codecs/aw88166.c +++ b/sound/soc/codecs/aw88166.c -@@ -1910,7 +1910,7 @@ static int aw88166_i2c_probe(struct i2c_ +@@ -1797,7 +1797,7 @@ static int aw88166_i2c_probe(struct i2c_ } static const struct i2c_device_id aw88166_i2c_id[] = { @@ -556,7 +556,7 @@ Signed-off-by: Mark Brown MODULE_DEVICE_TABLE(i2c, aw88395_i2c_id); --- a/sound/soc/codecs/aw88399.c +++ b/sound/soc/codecs/aw88399.c -@@ -2323,7 +2323,7 @@ static int aw88399_i2c_probe(struct i2c_ +@@ -797,7 +797,7 @@ static int aw88399_i2c_probe(struct i2c_ } static const struct i2c_device_id aw88399_i2c_id[] = { @@ -749,7 +749,7 @@ Signed-off-by: Mark Brown MODULE_DEVICE_TABLE(i2c, cs42l52_id); --- a/sound/soc/codecs/cs42l56.c +++ b/sound/soc/codecs/cs42l56.c -@@ -1352,7 +1352,7 @@ MODULE_DEVICE_TABLE(of, cs42l56_of_match +@@ -1351,7 +1351,7 @@ MODULE_DEVICE_TABLE(of, cs42l56_of_match static const struct i2c_device_id cs42l56_id[] = { @@ -966,7 +966,7 @@ Signed-off-by: Mark Brown MODULE_DEVICE_TABLE(i2c, es8311_id); --- a/sound/soc/codecs/es8316.c +++ b/sound/soc/codecs/es8316.c -@@ -895,8 +895,8 @@ static int es8316_i2c_probe(struct i2c_c +@@ -893,8 +893,8 @@ static int es8316_i2c_probe(struct i2c_c } static const struct i2c_device_id es8316_i2c_id[] = { @@ -979,7 +979,7 @@ Signed-off-by: Mark Brown --- a/sound/soc/codecs/es8323.c +++ b/sound/soc/codecs/es8323.c -@@ -757,7 +757,7 @@ static int es8323_i2c_probe(struct i2c_c +@@ -755,7 +755,7 @@ static int es8323_i2c_probe(struct i2c_c } static const struct i2c_device_id es8323_i2c_id[] = { @@ -990,7 +990,7 @@ Signed-off-by: Mark Brown MODULE_DEVICE_TABLE(i2c, es8323_i2c_id); --- a/sound/soc/codecs/es8326.c +++ b/sound/soc/codecs/es8326.c -@@ -1335,8 +1335,8 @@ static void es8326_i2c_remove(struct i2c +@@ -1345,8 +1345,8 @@ static void es8326_i2c_remove(struct i2c } static const struct i2c_device_id es8326_i2c_id[] = { @@ -1016,7 +1016,7 @@ Signed-off-by: Mark Brown MODULE_DEVICE_TABLE(i2c, es8328_id); --- a/sound/soc/codecs/es8375.c +++ b/sound/soc/codecs/es8375.c -@@ -754,7 +754,7 @@ static void es8375_i2c_shutdown(struct i +@@ -758,7 +758,7 @@ static void es8375_i2c_shutdown(struct i } static const struct i2c_device_id es8375_id[] = { @@ -1027,7 +1027,7 @@ Signed-off-by: Mark Brown MODULE_DEVICE_TABLE(i2c, es8375_id); --- a/sound/soc/codecs/es8389.c +++ b/sound/soc/codecs/es8389.c -@@ -1015,7 +1015,7 @@ MODULE_DEVICE_TABLE(of, es8389_if_dt_ids +@@ -1042,7 +1042,7 @@ MODULE_DEVICE_TABLE(of, es8389_if_dt_ids #endif static const struct i2c_device_id es8389_i2c_id[] = { @@ -1038,7 +1038,7 @@ Signed-off-by: Mark Brown MODULE_DEVICE_TABLE(i2c, es8389_i2c_id); --- a/sound/soc/codecs/fs210x.c +++ b/sound/soc/codecs/fs210x.c -@@ -1557,9 +1557,9 @@ static void fs210x_i2c_remove(struct i2c +@@ -1558,9 +1558,9 @@ static void fs210x_i2c_remove(struct i2c } static const struct i2c_device_id fs210x_i2c_id[] = { @@ -1337,7 +1337,7 @@ Signed-off-by: Mark Brown MODULE_DEVICE_TABLE(i2c, nau8325_i2c_ids); --- a/sound/soc/codecs/nau8540.c +++ b/sound/soc/codecs/nau8540.c -@@ -965,7 +965,7 @@ static int nau8540_i2c_probe(struct i2c_ +@@ -963,7 +963,7 @@ static int nau8540_i2c_probe(struct i2c_ } static const struct i2c_device_id nau8540_i2c_ids[] = { @@ -1374,7 +1374,7 @@ Signed-off-by: Mark Brown MODULE_DEVICE_TABLE(i2c, nau8821_i2c_ids); --- a/sound/soc/codecs/nau8822.c +++ b/sound/soc/codecs/nau8822.c -@@ -1193,7 +1193,7 @@ static int nau8822_i2c_probe(struct i2c_ +@@ -1243,7 +1243,7 @@ static void nau8822_i2c_remove(struct i2 } static const struct i2c_device_id nau8822_i2c_id[] = { @@ -1572,7 +1572,7 @@ Signed-off-by: Mark Brown --- a/sound/soc/codecs/rt1011.c +++ b/sound/soc/codecs/rt1011.c -@@ -2206,7 +2206,7 @@ MODULE_DEVICE_TABLE(acpi, rt1011_acpi_ma +@@ -2204,7 +2204,7 @@ MODULE_DEVICE_TABLE(acpi, rt1011_acpi_ma #endif static const struct i2c_device_id rt1011_i2c_id[] = { @@ -1583,7 +1583,7 @@ Signed-off-by: Mark Brown MODULE_DEVICE_TABLE(i2c, rt1011_i2c_id); --- a/sound/soc/codecs/rt1015.c +++ b/sound/soc/codecs/rt1015.c -@@ -1097,7 +1097,7 @@ static const struct regmap_config rt1015 +@@ -1147,7 +1147,7 @@ static const struct regmap_config rt1015 }; static const struct i2c_device_id rt1015_i2c_id[] = { @@ -1594,7 +1594,7 @@ Signed-off-by: Mark Brown MODULE_DEVICE_TABLE(i2c, rt1015_i2c_id); --- a/sound/soc/codecs/rt1016.c +++ b/sound/soc/codecs/rt1016.c -@@ -608,7 +608,7 @@ static const struct regmap_config rt1016 +@@ -606,7 +606,7 @@ static const struct regmap_config rt1016 }; static const struct i2c_device_id rt1016_i2c_id[] = { @@ -1616,7 +1616,7 @@ Signed-off-by: Mark Brown MODULE_DEVICE_TABLE(i2c, rt1019_i2c_id); --- a/sound/soc/codecs/rt1305.c +++ b/sound/soc/codecs/rt1305.c -@@ -981,8 +981,8 @@ MODULE_DEVICE_TABLE(acpi, rt1305_acpi_ma +@@ -979,8 +979,8 @@ MODULE_DEVICE_TABLE(acpi, rt1305_acpi_ma #endif static const struct i2c_device_id rt1305_i2c_id[] = { @@ -1629,7 +1629,7 @@ Signed-off-by: Mark Brown MODULE_DEVICE_TABLE(i2c, rt1305_i2c_id); --- a/sound/soc/codecs/rt1308.c +++ b/sound/soc/codecs/rt1308.c -@@ -795,7 +795,7 @@ MODULE_DEVICE_TABLE(acpi, rt1308_acpi_ma +@@ -793,7 +793,7 @@ MODULE_DEVICE_TABLE(acpi, rt1308_acpi_ma #endif static const struct i2c_device_id rt1308_i2c_id[] = { @@ -1640,7 +1640,7 @@ Signed-off-by: Mark Brown MODULE_DEVICE_TABLE(i2c, rt1308_i2c_id); --- a/sound/soc/codecs/rt1318.c +++ b/sound/soc/codecs/rt1318.c -@@ -1140,7 +1140,7 @@ static const struct regmap_config rt1318 +@@ -1139,7 +1139,7 @@ static const struct regmap_config rt1318 }; static const struct i2c_device_id rt1318_i2c_id[] = { @@ -1703,7 +1703,7 @@ Signed-off-by: Mark Brown MODULE_DEVICE_TABLE(i2c, rt5514_i2c_id); --- a/sound/soc/codecs/rt5616.c +++ b/sound/soc/codecs/rt5616.c -@@ -1320,7 +1320,7 @@ static const struct regmap_config rt5616 +@@ -1319,7 +1319,7 @@ static const struct regmap_config rt5616 }; static const struct i2c_device_id rt5616_i2c_id[] = { @@ -1742,7 +1742,7 @@ Signed-off-by: Mark Brown MODULE_DEVICE_TABLE(i2c, rt5640_i2c_id); --- a/sound/soc/codecs/rt5645.c +++ b/sound/soc/codecs/rt5645.c -@@ -3649,8 +3649,8 @@ static const struct regmap_config temp_r +@@ -3650,8 +3650,8 @@ static const struct regmap_config temp_r }; static const struct i2c_device_id rt5645_i2c_id[] = { @@ -1766,7 +1766,7 @@ Signed-off-by: Mark Brown MODULE_DEVICE_TABLE(i2c, rt5651_i2c_id); --- a/sound/soc/codecs/rt5659.c +++ b/sound/soc/codecs/rt5659.c -@@ -3815,8 +3815,8 @@ static const struct regmap_config rt5659 +@@ -3813,8 +3813,8 @@ static const struct regmap_config rt5659 }; static const struct i2c_device_id rt5659_i2c_id[] = { @@ -1779,7 +1779,7 @@ Signed-off-by: Mark Brown MODULE_DEVICE_TABLE(i2c, rt5659_i2c_id); --- a/sound/soc/codecs/rt5660.c +++ b/sound/soc/codecs/rt5660.c -@@ -1224,7 +1224,7 @@ static const struct regmap_config rt5660 +@@ -1222,7 +1222,7 @@ static const struct regmap_config rt5660 }; static const struct i2c_device_id rt5660_i2c_id[] = { @@ -1803,7 +1803,7 @@ Signed-off-by: Mark Brown --- a/sound/soc/codecs/rt5665.c +++ b/sound/soc/codecs/rt5665.c -@@ -4534,8 +4534,8 @@ static const struct regmap_config rt5665 +@@ -4532,8 +4532,8 @@ static const struct regmap_config rt5665 }; static const struct i2c_device_id rt5665_i2c_id[] = { @@ -1896,7 +1896,7 @@ Signed-off-by: Mark Brown --- a/sound/soc/codecs/sma1307.c +++ b/sound/soc/codecs/sma1307.c -@@ -2036,8 +2036,8 @@ static void sma1307_i2c_remove(struct i2 +@@ -2046,8 +2046,8 @@ static void sma1307_i2c_remove(struct i2 } static const struct i2c_device_id sma1307_i2c_id[] = { @@ -1957,7 +1957,7 @@ Signed-off-by: Mark Brown MODULE_DEVICE_TABLE(i2c, ssm4567_i2c_ids); --- a/sound/soc/codecs/sta32x.c +++ b/sound/soc/codecs/sta32x.c -@@ -1152,9 +1152,9 @@ static int sta32x_i2c_probe(struct i2c_c +@@ -1207,9 +1207,9 @@ static int sta32x_i2c_probe(struct i2c_c } static const struct i2c_device_id sta32x_i2c_id[] = { @@ -2251,7 +2251,7 @@ Signed-off-by: Mark Brown MODULE_DEVICE_TABLE(i2c, aic31xx_i2c_id); --- a/sound/soc/codecs/tlv320aic32x4-i2c.c +++ b/sound/soc/codecs/tlv320aic32x4-i2c.c -@@ -38,9 +38,9 @@ static void aic32x4_i2c_remove(struct i2 +@@ -43,9 +43,9 @@ static void aic32x4_i2c_remove(struct i2 } static const struct i2c_device_id aic32x4_i2c_id[] = { diff --git a/target/linux/bcm27xx/patches-6.18/950-0915-ASoC-codecs-ES8389-Modify-volatile_register.patch b/target/linux/bcm27xx/patches-6.18/950-0915-ASoC-codecs-ES8389-Modify-volatile_register.patch deleted file mode 100644 index bea1fc74f9f..00000000000 --- a/target/linux/bcm27xx/patches-6.18/950-0915-ASoC-codecs-ES8389-Modify-volatile_register.patch +++ /dev/null @@ -1,67 +0,0 @@ -From b19bf2cea82a3d650685d6592ff5bba0fa978631 Mon Sep 17 00:00:00 2001 -From: Zhang Yi -Date: Tue, 30 Jun 2026 15:23:06 +0800 -Subject: [PATCH] ASoC: codecs: ES8389: Modify volatile_register - -commit 882e55031187791a2b87810d4a93f866a2da6d47 upstream. - -Mark some registers that are not volatile as false -And modified the logic for `cache_bypass` during `8389_resume`. - -Signed-off-by: Zhang Yi -Link: https://patch.msgid.link/20260630072311.8427-2-zhangyi@everest-semi.com -Signed-off-by: Mark Brown ---- - sound/soc/codecs/es8389.c | 27 +++++++++++++++++++++++---- - 1 file changed, 23 insertions(+), 4 deletions(-) - ---- a/sound/soc/codecs/es8389.c -+++ b/sound/soc/codecs/es8389.c -@@ -50,10 +50,29 @@ static const char * const es8389_core_su - static bool es8389_volatile_register(struct device *dev, - unsigned int reg) - { -- if ((reg <= 0xff)) -- return true; -- else -+ switch (reg) { -+ case ES8389_ADCL_VOL: -+ case ES8389_ADCR_VOL: -+ case ES8389_MIC1_GAIN: -+ case ES8389_MIC2_GAIN: -+ case ES8389_DACL_VOL: -+ case ES8389_DACR_VOL: -+ case ES8389_ALC_ON: -+ case ES8389_ALC_CTL: -+ case ES8389_ALC_TARGET: -+ case ES8389_ALC_GAIN: -+ case ES8389_ADC_MUTE: -+ case ES8389_OSR_VOL: -+ case ES8389_DAC_INV: -+ case ES8389_MIX_VOL: -+ case ES8389_DAC_MIX: -+ case ES8389_ADC_RESET: -+ case ES8389_ADC_MODE: -+ case ES8389_DMIC_EN: - return false; -+ default: -+ return true; -+ } - } - - static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -9550, 50, 0); -@@ -861,13 +880,13 @@ static int es8389_resume(struct snd_soc_ - regcache_cache_only(es8389->regmap, false); - regcache_cache_bypass(es8389->regmap, true); - regmap_read(es8389->regmap, ES8389_RESET, ®v); -- regcache_cache_bypass(es8389->regmap, false); - - if (regv == 0xff) - es8389_init(component); - else - es8389_set_bias_level(component, SND_SOC_BIAS_ON); - -+ regcache_cache_bypass(es8389->regmap, false); - regcache_sync(es8389->regmap); - - return 0; diff --git a/target/linux/bcm27xx/patches-6.18/950-0919-ASoC-codecs-ES8389-Add-private-members-about-HPF.patch b/target/linux/bcm27xx/patches-6.18/950-0919-ASoC-codecs-ES8389-Add-private-members-about-HPF.patch index 58baa8dd4f2..c6ca0346551 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0919-ASoC-codecs-ES8389-Add-private-members-about-HPF.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0919-ASoC-codecs-ES8389-Add-private-members-about-HPF.patch @@ -188,7 +188,7 @@ Signed-off-by: Mark Brown .set_fmt = es8389_set_dai_fmt, .set_sysclk = es8389_set_dai_sysclk, .set_tdm_slot = es8389_set_tdm_slot, -@@ -934,6 +1051,7 @@ static int es8389_probe(struct snd_soc_c +@@ -942,6 +1059,7 @@ static int es8389_probe(struct snd_soc_c return ret; } diff --git a/target/linux/bcm27xx/patches-6.18/950-0922-ASoC-codecs-ES8389-Prevent-enable_count-underflow-in.patch b/target/linux/bcm27xx/patches-6.18/950-0922-ASoC-codecs-ES8389-Prevent-enable_count-underflow-in.patch index 7153d47eb99..c1e30d6ae38 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0922-ASoC-codecs-ES8389-Prevent-enable_count-underflow-in.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0922-ASoC-codecs-ES8389-Prevent-enable_count-underflow-in.patch @@ -72,7 +72,7 @@ Signed-off-by: Mark Brown regcache_cache_only(es8389->regmap, true); regcache_mark_dirty(es8389->regmap); -@@ -1084,7 +1090,7 @@ static int es8389_probe(struct snd_soc_c +@@ -1092,7 +1098,7 @@ static int es8389_probe(struct snd_soc_c es8389->hpf_freq = ES8389_HPF_DEFAULT; es8389_init(component); diff --git a/target/linux/bcm27xx/patches-6.18/950-0962-drm-vc4-fkms-Don-t-put-BCM2712-buffers-behind-the-HV.patch b/target/linux/bcm27xx/patches-6.18/950-0962-drm-vc4-fkms-Don-t-put-BCM2712-buffers-behind-the-HV.patch index 0a663299ad0..f7a1a244623 100644 --- a/target/linux/bcm27xx/patches-6.18/950-0962-drm-vc4-fkms-Don-t-put-BCM2712-buffers-behind-the-HV.patch +++ b/target/linux/bcm27xx/patches-6.18/950-0962-drm-vc4-fkms-Don-t-put-BCM2712-buffers-behind-the-HV.patch @@ -1,4 +1,4 @@ -From 12d52e251a3fdfaeaf68f22c767a1defe4c14e7b Mon Sep 17 00:00:00 2001 +From cb439717989f8a07d6db97cd47c2a956775081a2 Mon Sep 17 00:00:00 2001 From: Dom Cobley Date: Tue, 17 Nov 2026 17:19:38 +0000 Subject: [PATCH] drm/vc4: fkms: Don't put BCM2712 buffers behind the HVS IOMMU @@ -15,8 +15,8 @@ firmware_kms() so the firmware display driver isn't told to stop. Signed-off-by: Dom Cobley --- - drivers/gpu/drm/vc4/vc4_drv.c | 18 ++++++++++++++---- - 1 file changed, 14 insertions(+), 4 deletions(-) + drivers/gpu/drm/vc4/vc4_drv.c | 19 ++++++++++++++----- + 1 file changed, 14 insertions(+), 5 deletions(-) --- a/drivers/gpu/drm/vc4/vc4_drv.c +++ b/drivers/gpu/drm/vc4/vc4_drv.c @@ -38,33 +38,31 @@ Signed-off-by: Dom Cobley + bool fkms; int ret = 0; - dev->coherent_dma_mask = DMA_BIT_MASK(32); -@@ -333,7 +336,9 @@ static int vc4_drm_bind(struct device *d - else - driver = &vc4_drm_driver; - -- if (gen >= VC4_GEN_6_C) + gen = (enum vc4_gen)of_device_get_match_data(dev); +@@ -335,13 +338,19 @@ static int vc4_drm_bind(struct device *d + * Without HVS/V3D components to provide the DMA device, fkms keeps + * borrowing their DT DMA configuration. + */ +- if (firmware_kms()) { +- dma_set_mask_and_coherent(dev, DMA_BIT_MASK(gen >= VC4_GEN_6_C ? 36 : 32)); + fkms = firmware_kms(); -+ -+ if (gen >= VC4_GEN_6_C && !fkms) - dma_set_mask_and_coherent(dev, DMA_BIT_MASK(36)); - else - dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32)); -@@ -341,7 +346,12 @@ static int vc4_drm_bind(struct device *d - node = of_find_matching_node_and_match(NULL, vc4_dma_range_matches, - NULL); - if (node) { -- ret = of_dma_configure(dev, node, true); -+ /* -+ * The firmware scans out without the BCM2712 HVS IOMMU, so -+ * don't inherit the HVS DMA setup there. -+ */ -+ if (!(fkms && gen >= VC4_GEN_6_C)) -+ ret = of_dma_configure(dev, node, true); - of_node_put(node); ++ if (fkms) { ++ dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32)); - if (ret) -@@ -395,7 +405,7 @@ static int vc4_drm_bind(struct device *d + node = of_find_matching_node_and_match(NULL, vc4_dma_range_matches, + NULL); + if (node) { +- ret = of_dma_configure(dev, node, true); ++ /* ++ * The firmware scans out without the BCM2712 HVS IOMMU, so ++ * don't inherit the HVS DMA setup there. ++ */ ++ if (gen < VC4_GEN_6_C) ++ ret = of_dma_configure(dev, node, true); + of_node_put(node); + + if (ret) +@@ -396,7 +405,7 @@ static int vc4_drm_bind(struct device *d goto err; } diff --git a/target/linux/bcm27xx/patches-6.18/950-0979-arm64-dts-bcm2712-Drop-the-upstream-v3d-node.patch b/target/linux/bcm27xx/patches-6.18/950-0979-arm64-dts-bcm2712-Drop-the-upstream-v3d-node.patch new file mode 100644 index 00000000000..928b07dd70f --- /dev/null +++ b/target/linux/bcm27xx/patches-6.18/950-0979-arm64-dts-bcm2712-Drop-the-upstream-v3d-node.patch @@ -0,0 +1,41 @@ +From 0e728fcf0c1e569acaae0242b44687a762280f67 Mon Sep 17 00:00:00 2001 +From: Dom Cobley +Date: Mon, 23 Nov 2026 11:47:47 +0000 +Subject: [PATCH] arm64: dts: bcm2712: Drop the upstream v3d node + +Stable added a v3d node to bcm2712.dtsi, but bcm2712-ds.dtsi already +defines the v3d label, giving a duplicate label. Remove the upstream +node, as the other downstream branches do. +--- + arch/arm64/boot/dts/broadcom/bcm2712.dtsi | 14 -------------- + 1 file changed, 14 deletions(-) + +--- a/arch/arm64/boot/dts/broadcom/bcm2712.dtsi ++++ b/arch/arm64/boot/dts/broadcom/bcm2712.dtsi +@@ -1,6 +1,5 @@ + // SPDX-License-Identifier: (GPL-2.0 OR MIT) + #include +-#include + + / { + compatible = "brcm,bcm2712"; +@@ -582,19 +581,6 @@ + msi-ranges = <&gicv2 GIC_SPI 247 IRQ_TYPE_EDGE_RISING 8>; + brcm,msi-offset = <8>; + }; +- +- v3d: gpu@1002000000 { +- compatible = "brcm,2712-v3d"; +- reg = <0x10 0x02000000 0x00 0x4000>, +- <0x10 0x02008000 0x00 0x6000>, +- <0x10 0x02030800 0x00 0x0700>; +- reg-names = "hub", "core0", "sms"; +- +- power-domains = <&pm BCM2835_POWER_DOMAIN_GRAFX_V3D>; +- resets = <&pm BCM2835_RESET_V3D>; +- interrupts = , +- ; +- }; + }; + + vc4: gpu { diff --git a/target/linux/bcm27xx/patches-6.18/950-0980-ARM-dts-bcm270x-Drop-the-brcm-vc4-v3d-compatible.patch b/target/linux/bcm27xx/patches-6.18/950-0980-ARM-dts-bcm270x-Drop-the-brcm-vc4-v3d-compatible.patch new file mode 100644 index 00000000000..101f5240fc0 --- /dev/null +++ b/target/linux/bcm27xx/patches-6.18/950-0980-ARM-dts-bcm270x-Drop-the-brcm-vc4-v3d-compatible.patch @@ -0,0 +1,22 @@ +From 41c8a7b85698ab353d4b3e50e680f29201d37030 Mon Sep 17 00:00:00 2001 +From: Dom Cobley +Date: Mon, 23 Nov 2026 13:02:19 +0000 +Subject: [PATCH] ARM: dts: bcm270x: Drop the brcm,vc4-v3d compatible + +"drm/vc4: Drop the undocumented brcm,vc4-v3d compatible" removed it from +the V3D driver, so the Pi 0-3 V3D node no longer bound. Drop the +override so the node keeps brcm,bcm2835-v3d from bcm2835-common.dtsi. +--- + arch/arm/boot/dts/broadcom/bcm270x.dtsi | 1 - + 1 file changed, 1 deletion(-) + +--- a/arch/arm/boot/dts/broadcom/bcm270x.dtsi ++++ b/arch/arm/boot/dts/broadcom/bcm270x.dtsi +@@ -108,7 +108,6 @@ + + #ifndef BCM2711 + v3d@7ec00000 { /* vd3 */ +- compatible = "brcm,vc4-v3d"; + power-domains = <&power RPI_POWER_DOMAIN_V3D>; + status = "disabled"; + }; diff --git a/target/linux/econet/patches-6.18/101-econet-timer-add-en7528-support.patch b/target/linux/econet/patches-6.18/101-econet-timer-add-en7528-support.patch index f0d6ec59a61..add7a13ea17 100644 --- a/target/linux/econet/patches-6.18/101-econet-timer-add-en7528-support.patch +++ b/target/linux/econet/patches-6.18/101-econet-timer-add-en7528-support.patch @@ -207,9 +207,9 @@ Signed-off-by: Ahmed Naseef clk = of_clk_get(np, 0); if (IS_ERR(clk)) { -@@ -182,11 +260,12 @@ static int __init timer_init(struct devi - +@@ -183,11 +261,12 @@ static int __init timer_init(struct devi econet_timer.freq_hz = clk_get_rate(clk); + clk_put(clk); - for (int i = 0; i < num_blocks; i++) { + for (i = 0; i < num_blocks; i++) { @@ -222,7 +222,7 @@ Signed-off-by: Ahmed Naseef } } -@@ -196,21 +275,34 @@ static int __init timer_init(struct devi +@@ -197,21 +276,34 @@ static int __init timer_init(struct devi clocksource_mmio_readl_up); if (ret) { pr_err("%pOFn: clocksource_mmio_init failed: %d", np, ret); diff --git a/target/linux/econet/patches-6.18/886-uart-add-en7523-support.patch b/target/linux/econet/patches-6.18/886-uart-add-en7523-support.patch index 3cea0df7e36..43f3a847cab 100644 --- a/target/linux/econet/patches-6.18/886-uart-add-en7523-support.patch +++ b/target/linux/econet/patches-6.18/886-uart-add-en7523-support.patch @@ -155,7 +155,7 @@ depends on ARCH_BCM2835 || COMPILE_TEST --- a/drivers/tty/serial/8250/Makefile +++ b/drivers/tty/serial/8250/Makefile -@@ -20,6 +20,7 @@ obj-$(CONFIG_SERIAL_8250_CONSOLE) += 825 +@@ -21,6 +21,7 @@ obj-$(CONFIG_SERIAL_8250_CONSOLE) += 825 obj-$(CONFIG_SERIAL_8250_ACCENT) += 8250_accent.o obj-$(CONFIG_SERIAL_8250_ACORN) += 8250_acorn.o diff --git a/target/linux/gemini/patches-6.18/0011-v7.4-ARM-dts-gemini-Use-a-level-high-interrupt-for-TVE200.patch b/target/linux/gemini/patches-6.18/0011-v7.4-ARM-dts-gemini-Use-a-level-high-interrupt-for-TVE200.patch deleted file mode 100644 index 1545f7745ec..00000000000 --- a/target/linux/gemini/patches-6.18/0011-v7.4-ARM-dts-gemini-Use-a-level-high-interrupt-for-TVE200.patch +++ /dev/null @@ -1,33 +0,0 @@ -From 5bf1bb010712bba28eda926ed453db3cab91381a Mon Sep 17 00:00:00 2001 -From: Linus Walleij -Date: Mon, 21 Sep 2026 11:15:55 +0200 -Subject: [PATCH] ARM: dts: gemini: Use a level-high interrupt for TVE200 - -TVE200's interrupt is configured as rising-edge. On the D-Link DIR-685, -this can stop interrupt delivery after the first vertical interrupt, -causing vblank and page-flip timeouts and delaying framebuffer console -startup. - -The vertical interrupt can remain pending after acknowledgment. Use -level-high triggering so the pending condition is delivered again -without requiring another edge. - -Fixes: d2b85241a9f5 ("ARM: dts: Add TVE200 to the Gemini SoC DTSI") -Assisted-by: LLM -Signed-off-by: Linus Walleij -Message-ID: <20260921-gemini-tve200-fix-v1-2-8be03ac2a8f7@kernel.org> ---- - arch/arm/boot/dts/gemini/gemini.dtsi | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- a/arch/arm/boot/dts/gemini/gemini.dtsi -+++ b/arch/arm/boot/dts/gemini/gemini.dtsi -@@ -428,7 +428,7 @@ - display-controller@6a000000 { - compatible = "cortina,gemini-tvc", "faraday,tve200"; - reg = <0x6a000000 0x1000>; -- interrupts = <13 IRQ_TYPE_EDGE_RISING>; -+ interrupts = <13 IRQ_TYPE_LEVEL_HIGH>; - resets = <&syscon GEMINI_RESET_TVC>; - clocks = <&syscon GEMINI_CLK_GATE_TVC>, - <&syscon GEMINI_CLK_TVC>; diff --git a/target/linux/generic/backport-6.18/500-v6.19-ksmbd-server-avoid-busy-polling-in-accept-loop.patch b/target/linux/generic/backport-6.18/500-v6.19-ksmbd-server-avoid-busy-polling-in-accept-loop.patch deleted file mode 100644 index f31feb00472..00000000000 --- a/target/linux/generic/backport-6.18/500-v6.19-ksmbd-server-avoid-busy-polling-in-accept-loop.patch +++ /dev/null @@ -1,128 +0,0 @@ -From 3316a8fc840d82fad5efcf76ad0ea3f76fdca209 Mon Sep 17 00:00:00 2001 -From: Qingfang Deng -Date: Mon, 17 Nov 2025 16:59:00 +0800 -Subject: [PATCH] ksmbd: server: avoid busy polling in accept loop - -The ksmbd listener thread was using busy waiting on a listening socket by -calling kernel_accept() with SOCK_NONBLOCK and retrying every 100ms on --EAGAIN. Since this thread is dedicated to accepting new connections, -there is no need for non-blocking mode. - -Switch to a blocking accept() call instead, allowing the thread to sleep -until a new connection arrives. This avoids unnecessary wakeups and CPU -usage. During teardown, call shutdown() on the listening socket so that -accept() returns -EINVAL and the thread exits cleanly. - -The socket release mutex is redundant because kthread_stop() blocks until -the listener thread returns, guaranteeing safe teardown ordering. - -Also remove sk_rcvtimeo and sk_sndtimeo assignments, which only caused -accept() to return -EAGAIN prematurely. - -Signed-off-by: Qingfang Deng -Reviewed-by: Stefan Metzmacher -Acked-by: Namjae Jeon -Signed-off-by: Steve French ---- - fs/smb/server/transport_tcp.c | 41 +++++------------------------------ - 1 file changed, 6 insertions(+), 35 deletions(-) - ---- a/fs/smb/server/transport_tcp.c -+++ b/fs/smb/server/transport_tcp.c -@@ -22,7 +22,6 @@ struct interface { - struct socket *ksmbd_socket; - struct list_head entry; - char *name; -- struct mutex sock_release_lock; - int state; - }; - -@@ -57,19 +56,6 @@ static inline void ksmbd_tcp_reuseaddr(s - sock_set_reuseaddr(sock->sk); - } - --static inline void ksmbd_tcp_rcv_timeout(struct socket *sock, s64 secs) --{ -- if (secs && secs < MAX_SCHEDULE_TIMEOUT / HZ - 1) -- WRITE_ONCE(sock->sk->sk_rcvtimeo, secs * HZ); -- else -- WRITE_ONCE(sock->sk->sk_rcvtimeo, MAX_SCHEDULE_TIMEOUT); --} -- --static inline void ksmbd_tcp_snd_timeout(struct socket *sock, s64 secs) --{ -- sock_set_sndtimeo(sock->sk, secs); --} -- - static struct tcp_transport *alloc_transport(struct socket *client_sk) - { - struct tcp_transport *t; -@@ -239,20 +225,14 @@ static int ksmbd_kthread_fn(void *p) - unsigned int max_ip_conns; - - while (!kthread_should_stop()) { -- mutex_lock(&iface->sock_release_lock); - if (!iface->ksmbd_socket) { -- mutex_unlock(&iface->sock_release_lock); - break; - } -- ret = kernel_accept(iface->ksmbd_socket, &client_sk, -- SOCK_NONBLOCK); -- mutex_unlock(&iface->sock_release_lock); -- if (ret) { -- if (ret == -EAGAIN) -- /* check for new connections every 100 msecs */ -- schedule_timeout_interruptible(HZ / 10); -+ ret = kernel_accept(iface->ksmbd_socket, &client_sk, 0); -+ if (ret == -EINVAL) -+ break; -+ if (ret) - continue; -- } - - if (!server_conf.max_ip_connections) - goto skip_max_ip_conns_limit; -@@ -472,10 +452,6 @@ static void tcp_destroy_socket(struct so - if (!ksmbd_socket) - return; - -- /* set zero to timeout */ -- ksmbd_tcp_rcv_timeout(ksmbd_socket, 0); -- ksmbd_tcp_snd_timeout(ksmbd_socket, 0); -- - ret = kernel_sock_shutdown(ksmbd_socket, SHUT_RDWR); - if (ret) - pr_err("Failed to shutdown socket: %d\n", ret); -@@ -546,9 +522,6 @@ static int create_socket(struct interfac - goto out_error; - } - -- ksmbd_socket->sk->sk_rcvtimeo = KSMBD_TCP_RECV_TIMEOUT; -- ksmbd_socket->sk->sk_sndtimeo = KSMBD_TCP_SEND_TIMEOUT; -- - ret = kernel_listen(ksmbd_socket, KSMBD_SOCKET_BACKLOG); - if (ret) { - pr_err("Port listen() error: %d\n", ret); -@@ -627,12 +600,11 @@ static int ksmbd_netdev_event(struct not - if (iface && iface->state == IFACE_STATE_CONFIGURED) { - ksmbd_debug(CONN, "netdev-down event: netdev(%s) is going down\n", - iface->name); -+ kernel_sock_shutdown(iface->ksmbd_socket, SHUT_RDWR); - tcp_stop_kthread(iface->ksmbd_kthread); - iface->ksmbd_kthread = NULL; -- mutex_lock(&iface->sock_release_lock); -- tcp_destroy_socket(iface->ksmbd_socket); -+ sock_release(iface->ksmbd_socket); - iface->ksmbd_socket = NULL; -- mutex_unlock(&iface->sock_release_lock); - - iface->state = IFACE_STATE_DOWN; - break; -@@ -695,7 +667,6 @@ static struct interface *alloc_iface(cha - iface->name = ifname; - iface->state = IFACE_STATE_DOWN; - list_add(&iface->entry, &iface_list); -- mutex_init(&iface->sock_release_lock); - return iface; - } - diff --git a/target/linux/generic/backport-6.18/502-v7.3-smb-server-fix-signing-multi-iov-response.patch b/target/linux/generic/backport-6.18/502-v7.3-smb-server-fix-signing-multi-iov-response.patch index b34cd9b0240..cdbb3d8f428 100644 --- a/target/linux/generic/backport-6.18/502-v7.3-smb-server-fix-signing-multi-iov-response.patch +++ b/target/linux/generic/backport-6.18/502-v7.3-smb-server-fix-signing-multi-iov-response.patch @@ -25,7 +25,7 @@ Signed-off-by: Steve French --- a/fs/smb/server/smb2pdu.c +++ b/fs/smb/server/smb2pdu.c -@@ -9262,6 +9262,39 @@ int smb2_check_sign_req(struct ksmbd_wor +@@ -9346,6 +9346,39 @@ int smb2_check_sign_req(struct ksmbd_wor } /** @@ -65,7 +65,7 @@ Signed-off-by: Steve French * smb2_set_sign_rsp() - handler for rsp packet sign processing * @work: smb work containing notify command buffer * -@@ -9271,18 +9304,13 @@ void smb2_set_sign_rsp(struct ksmbd_work +@@ -9355,18 +9388,13 @@ void smb2_set_sign_rsp(struct ksmbd_work struct smb2_hdr *hdr; char signature[SMB2_HMACSHA256_SIZE]; struct kvec *iov; @@ -86,7 +86,7 @@ Signed-off-by: Steve French ksmbd_sign_smb2_pdu(work->conn, work->sess->sess_key, iov, n_vec, signature); -@@ -9361,7 +9389,7 @@ void smb3_set_sign_rsp(struct ksmbd_work +@@ -9445,7 +9473,7 @@ void smb3_set_sign_rsp(struct ksmbd_work struct channel *chann; char signature[SMB2_CMACAES_SIZE]; struct kvec *iov; @@ -95,7 +95,7 @@ Signed-off-by: Steve French char *signing_key; hdr = ksmbd_resp_buf_curr(work); -@@ -9383,12 +9411,7 @@ void smb3_set_sign_rsp(struct ksmbd_work +@@ -9467,12 +9495,7 @@ void smb3_set_sign_rsp(struct ksmbd_work hdr->Flags |= SMB2_FLAGS_SIGNED; memset(hdr->Signature, 0, SMB2_SIGNATURE_SIZE); diff --git a/target/linux/generic/backport-6.18/503-02-v7.3-ksmbd-keep-tcp-timers-alive-for-kernel-sockets.patch b/target/linux/generic/backport-6.18/503-02-v7.3-ksmbd-keep-tcp-timers-alive-for-kernel-sockets.patch index 0e83ee7eb83..8e6707d32ed 100644 --- a/target/linux/generic/backport-6.18/503-02-v7.3-ksmbd-keep-tcp-timers-alive-for-kernel-sockets.patch +++ b/target/linux/generic/backport-6.18/503-02-v7.3-ksmbd-keep-tcp-timers-alive-for-kernel-sockets.patch @@ -27,7 +27,7 @@ Signed-off-by: Namjae Jeon --- a/fs/smb/server/transport_tcp.c +++ b/fs/smb/server/transport_tcp.c -@@ -522,6 +522,12 @@ static int create_socket(struct interfac +@@ -530,6 +530,12 @@ static int create_socket(struct interfac goto out_error; } diff --git a/target/linux/generic/backport-6.18/504-v7.3-ksmbd-fix-listener-task-lifetime-on-netdev-events.patch b/target/linux/generic/backport-6.18/504-v7.3-ksmbd-fix-listener-task-lifetime-on-netdev-events.patch deleted file mode 100644 index cccabc91dce..00000000000 --- a/target/linux/generic/backport-6.18/504-v7.3-ksmbd-fix-listener-task-lifetime-on-netdev-events.patch +++ /dev/null @@ -1,102 +0,0 @@ -From a506290f59e1c6ce9ac0a13158640bb8fee93471 Mon Sep 17 00:00:00 2001 -From: Namjae Jeon -Date: Fri, 28 Aug 2026 09:24:49 +0900 -Subject: [PATCH] ksmbd: fix listener task lifetime on netdev events - -The listener thread exits when its listening socket is shutdown. The -netdevice notifier shuts down the socket before calling kthread_stop(), so -the task_struct can be freed before kthread_stop() gets its reference. - -Create the listener in a stopped state and hold an extra task_struct -reference until kthread_stop_put() completes. Also stop and release -listeners before freeing their interface records during TCP teardown. - -Fixes: 3316a8fc840d ("ksmbd: server: avoid busy polling in accept loop") -Reported-by: Farhad Alemi -Signed-off-by: Namjae Jeon ---- - fs/smb/server/transport_tcp.c | 36 ++++++++++++++++++++++++++--------- - 1 file changed, 27 insertions(+), 9 deletions(-) - ---- a/fs/smb/server/transport_tcp.c -+++ b/fs/smb/server/transport_tcp.c -@@ -39,6 +39,7 @@ struct tcp_transport { - static const struct ksmbd_transport_ops ksmbd_tcp_transport_ops; - - static void tcp_stop_kthread(struct task_struct *kthread); -+static void ksmbd_tcp_stop_listener(struct interface *iface); - static struct interface *alloc_iface(char *ifname); - static void ksmbd_tcp_disconnect(struct ksmbd_transport *t); - -@@ -321,13 +322,20 @@ static int ksmbd_tcp_run_kthread(struct - int rc; - struct task_struct *kthread; - -- kthread = kthread_run(ksmbd_kthread_fn, (void *)iface, "ksmbd-%s", -- iface->name); -+ kthread = kthread_create(ksmbd_kthread_fn, (void *)iface, "ksmbd-%s", -+ iface->name); - if (IS_ERR(kthread)) { - rc = PTR_ERR(kthread); - return rc; - } -+ -+ /* -+ * The listener can exit after its socket is shutdown, so keep the -+ * task_struct alive until the caller has stopped it. -+ */ -+ get_task_struct(kthread); - iface->ksmbd_kthread = kthread; -+ wake_up_process(kthread); - - return 0; - } -@@ -606,12 +614,7 @@ static int ksmbd_netdev_event(struct not - if (iface && iface->state == IFACE_STATE_CONFIGURED) { - ksmbd_debug(CONN, "netdev-down event: netdev(%s) is going down\n", - iface->name); -- kernel_sock_shutdown(iface->ksmbd_socket, SHUT_RDWR); -- tcp_stop_kthread(iface->ksmbd_kthread); -- iface->ksmbd_kthread = NULL; -- sock_release(iface->ksmbd_socket); -- iface->ksmbd_socket = NULL; -- -+ ksmbd_tcp_stop_listener(iface); - iface->state = IFACE_STATE_DOWN; - break; - } -@@ -639,11 +642,25 @@ static void tcp_stop_kthread(struct task - if (!kthread) - return; - -- ret = kthread_stop(kthread); -+ ret = kthread_stop_put(kthread); - if (ret) - pr_err("failed to stop forker thread\n"); - } - -+static void ksmbd_tcp_stop_listener(struct interface *iface) -+{ -+ if (iface->ksmbd_socket) -+ kernel_sock_shutdown(iface->ksmbd_socket, SHUT_RDWR); -+ -+ tcp_stop_kthread(iface->ksmbd_kthread); -+ iface->ksmbd_kthread = NULL; -+ -+ if (iface->ksmbd_socket) { -+ sock_release(iface->ksmbd_socket); -+ iface->ksmbd_socket = NULL; -+ } -+} -+ - void ksmbd_tcp_destroy(void) - { - struct interface *iface, *tmp; -@@ -651,6 +668,7 @@ void ksmbd_tcp_destroy(void) - unregister_netdevice_notifier(&ksmbd_netdev_notifier); - - list_for_each_entry_safe(iface, tmp, &iface_list, entry) { -+ ksmbd_tcp_stop_listener(iface); - list_del(&iface->entry); - kfree(iface->name); - kfree(iface); diff --git a/target/linux/generic/backport-6.18/601-v7.1-net-add-netdev_from_priv-helper.patch b/target/linux/generic/backport-6.18/601-v7.1-net-add-netdev_from_priv-helper.patch index 5011e0567e3..ac565ae69df 100644 --- a/target/linux/generic/backport-6.18/601-v7.1-net-add-netdev_from_priv-helper.patch +++ b/target/linux/generic/backport-6.18/601-v7.1-net-add-netdev_from_priv-helper.patch @@ -15,7 +15,7 @@ Signed-off-by: Jakub Kicinski --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h -@@ -2755,6 +2755,17 @@ static inline void *netdev_priv(const st +@@ -2775,6 +2775,17 @@ static inline void *netdev_priv(const st return (void *)dev->priv; } diff --git a/target/linux/generic/backport-6.18/650-v7.2-net-pppoe-implement-GRO-GSO-support.patch b/target/linux/generic/backport-6.18/650-v7.2-net-pppoe-implement-GRO-GSO-support.patch index 35838db267e..5025e76e679 100644 --- a/target/linux/generic/backport-6.18/650-v7.2-net-pppoe-implement-GRO-GSO-support.patch +++ b/target/linux/generic/backport-6.18/650-v7.2-net-pppoe-implement-GRO-GSO-support.patch @@ -41,7 +41,7 @@ Signed-off-by: Paolo Abeni goto drop; ph = pppoe_hdr(skb); -@@ -1177,6 +1178,160 @@ static struct pernet_operations pppoe_ne +@@ -1185,6 +1186,160 @@ static struct pernet_operations pppoe_ne .size = sizeof(struct pppoe_net), }; @@ -202,7 +202,7 @@ Signed-off-by: Paolo Abeni static int __init pppoe_init(void) { int err; -@@ -1193,6 +1348,8 @@ static int __init pppoe_init(void) +@@ -1201,6 +1356,8 @@ static int __init pppoe_init(void) if (err) goto out_unregister_pppoe_proto; @@ -211,7 +211,7 @@ Signed-off-by: Paolo Abeni dev_add_pack(&pppoes_ptype); dev_add_pack(&pppoed_ptype); register_netdevice_notifier(&pppoe_notifier); -@@ -1212,6 +1369,8 @@ static void __exit pppoe_exit(void) +@@ -1220,6 +1377,8 @@ static void __exit pppoe_exit(void) unregister_netdevice_notifier(&pppoe_notifier); dev_remove_pack(&pppoed_ptype); dev_remove_pack(&pppoes_ptype); diff --git a/target/linux/generic/backport-6.18/706-01-v7.3-net-pass-net_device_path_ctx-to-dev_fill_forward_path.patch b/target/linux/generic/backport-6.18/706-01-v7.3-net-pass-net_device_path_ctx-to-dev_fill_forward_path.patch index 4a964e84ca2..5a09e6b9226 100644 --- a/target/linux/generic/backport-6.18/706-01-v7.3-net-pass-net_device_path_ctx-to-dev_fill_forward_path.patch +++ b/target/linux/generic/backport-6.18/706-01-v7.3-net-pass-net_device_path_ctx-to-dev_fill_forward_path.patch @@ -78,7 +78,7 @@ Signed-off-by: Pablo Neira Ayuso return err; --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h -@@ -3360,7 +3360,7 @@ void dev_remove_offload(struct packet_of +@@ -3380,7 +3380,7 @@ void dev_remove_offload(struct packet_of int dev_get_iflink(const struct net_device *dev); int dev_fill_metadata_dst(struct net_device *dev, struct sk_buff *skb); diff --git a/target/linux/generic/backport-6.18/706-02-v7.3-netfilter-flowtable-restore-ieee80211-forward-path.patch b/target/linux/generic/backport-6.18/706-02-v7.3-netfilter-flowtable-restore-ieee80211-forward-path.patch index 4e5e1181dfa..4763a9c4efd 100644 --- a/target/linux/generic/backport-6.18/706-02-v7.3-netfilter-flowtable-restore-ieee80211-forward-path.patch +++ b/target/linux/generic/backport-6.18/706-02-v7.3-netfilter-flowtable-restore-ieee80211-forward-path.patch @@ -34,7 +34,7 @@ Signed-off-by: Pablo Neira Ayuso --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h -@@ -878,6 +878,7 @@ enum net_device_path_type { +@@ -880,6 +880,7 @@ enum net_device_path_type { DEV_PATH_PPPOE, DEV_PATH_DSA, DEV_PATH_MTK_WDMA, @@ -42,7 +42,7 @@ Signed-off-by: Pablo Neira Ayuso }; struct net_device_path { -@@ -930,6 +931,8 @@ struct net_device_path_ctx { +@@ -932,6 +933,8 @@ struct net_device_path_ctx { u16 id; __be16 proto; } vlan[NET_DEVICE_PATH_VLAN_MAX]; diff --git a/target/linux/generic/backport-6.18/706-04-v7.3-netfilter-flowtable-use-the-vlan-id-not-the-full-tci.patch b/target/linux/generic/backport-6.18/706-04-v7.3-netfilter-flowtable-use-the-vlan-id-not-the-full-tci.patch deleted file mode 100644 index 4424f7e1ae9..00000000000 --- a/target/linux/generic/backport-6.18/706-04-v7.3-netfilter-flowtable-use-the-vlan-id-not-the-full-tci.patch +++ /dev/null @@ -1,56 +0,0 @@ -From c203ecf905745d979de5df28fa657121f2e9342d Mon Sep 17 00:00:00 2001 -From: Shuangfeng He -Date: Fri, 2 Oct 2026 16:42:53 +0800 -Subject: [PATCH] netfilter: flowtable: use the vlan id, not the full tci, in - the tuple key - -nf_flow_tuple_encap() stores the skb vlan tag in the encap tuple id -using skb_vlan_tag_get(), which returns the unmasked TCI including -the 3 PCP priority bits. The flowtable entry, however, is programmed -by nf_dev_path_info() with vlan_dev_vlan_id(), a plain 12-bit VID. - -When a NIC delivers RX vlan offload skbs with a non-zero priority -(an RTL9617C EPON ONU was observed handing over vid 818 skbs with -tci 0x6332, PCP 3), the runtime lookup key never matches the -programmed entry, so every packet misses the flow table and -software flow offload is silently defeated. - -Mask both parse sites to the 12-bit VID so the lookup key matches -for any priority. The in-header variant has the same problem for -frames received with PCP != 0 on a non-offload path. - -The egress side is unaffected: nf_flow_encap_push() restores tags -from the programmed tuple id, which never carried priority bits. - -Measured on an RTL9617C ONU (PPPoE over VLAN 818 WAN, NATed 6-flow -download over a 1G EPON line), before -> after: - - download throughput 377 Mbps -> 936 Mbps - CPU0 %soft at that rate 91.5% -> 70.9% - -Fixes: 4cd91f7c290f ("netfilter: flowtable: add vlan support") -Signed-off-by: Shuangfeng He -Signed-off-by: Pablo Neira Ayuso ---- - net/netfilter/nf_flow_table_ip.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - ---- a/net/netfilter/nf_flow_table_ip.c -+++ b/net/netfilter/nf_flow_table_ip.c -@@ -150,14 +150,14 @@ static void nf_flow_tuple_encap(struct s - int i = 0; - - if (skb_vlan_tag_present(skb)) { -- tuple->encap[i].id = skb_vlan_tag_get(skb); -+ tuple->encap[i].id = skb_vlan_tag_get_id(skb); - tuple->encap[i].proto = skb->vlan_proto; - i++; - } - switch (skb->protocol) { - case htons(ETH_P_8021Q): - veth = (struct vlan_ethhdr *)skb_mac_header(skb); -- tuple->encap[i].id = ntohs(veth->h_vlan_TCI); -+ tuple->encap[i].id = ntohs(veth->h_vlan_TCI) & VLAN_VID_MASK; - tuple->encap[i].proto = skb->protocol; - break; - case htons(ETH_P_PPP_SES): diff --git a/target/linux/generic/backport-6.18/802-01-v7.4-net-usb-lan78xx-register-the-PHY-interrupt-with-the-.patch b/target/linux/generic/backport-6.18/802-01-v7.4-net-usb-lan78xx-register-the-PHY-interrupt-with-the-.patch index ce894d4f49b..ce2fadf5333 100644 --- a/target/linux/generic/backport-6.18/802-01-v7.4-net-usb-lan78xx-register-the-PHY-interrupt-with-the-.patch +++ b/target/linux/generic/backport-6.18/802-01-v7.4-net-usb-lan78xx-register-the-PHY-interrupt-with-the-.patch @@ -30,7 +30,7 @@ Signed-off-by: Jakub Kicinski --- a/drivers/net/usb/lan78xx.c +++ b/drivers/net/usb/lan78xx.c -@@ -2897,6 +2897,7 @@ static int lan78xx_phy_init(struct lan78 +@@ -2909,6 +2909,7 @@ static int lan78xx_phy_init(struct lan78 phydev->irq = dev->domain_data.phyirq; else phydev->irq = PHY_POLL; diff --git a/target/linux/generic/backport-6.18/932-v7.1-crypto-tcrypt-clamp-num_mb-to-avoid-divide-by-zero.patch b/target/linux/generic/backport-6.18/932-v7.1-crypto-tcrypt-clamp-num_mb-to-avoid-divide-by-zero.patch index 500b006ff8e..b9e3196c5d4 100644 --- a/target/linux/generic/backport-6.18/932-v7.1-crypto-tcrypt-clamp-num_mb-to-avoid-divide-by-zero.patch +++ b/target/linux/generic/backport-6.18/932-v7.1-crypto-tcrypt-clamp-num_mb-to-avoid-divide-by-zero.patch @@ -22,7 +22,7 @@ Signed-off-by: Herbert Xu --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c -@@ -2820,6 +2820,11 @@ static int __init tcrypt_mod_init(void) +@@ -2840,6 +2840,11 @@ static int __init tcrypt_mod_init(void) goto err_free_tv; } diff --git a/target/linux/generic/backport-6.18/933-v7.1-crypto-tcrypt-stop-ahash-speed-tests-when-setkey-fai.patch b/target/linux/generic/backport-6.18/933-v7.1-crypto-tcrypt-stop-ahash-speed-tests-when-setkey-fai.patch index 2d1ef0aa527..b99a556142b 100644 --- a/target/linux/generic/backport-6.18/933-v7.1-crypto-tcrypt-stop-ahash-speed-tests-when-setkey-fai.patch +++ b/target/linux/generic/backport-6.18/933-v7.1-crypto-tcrypt-stop-ahash-speed-tests-when-setkey-fai.patch @@ -17,7 +17,7 @@ Signed-off-by: Herbert Xu --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c -@@ -911,8 +911,14 @@ static void test_ahash_speed_common(cons +@@ -929,8 +929,14 @@ static void test_ahash_speed_common(cons break; } diff --git a/target/linux/generic/config-6.18 b/target/linux/generic/config-6.18 index f6136040269..58e02ffe371 100644 --- a/target/linux/generic/config-6.18 +++ b/target/linux/generic/config-6.18 @@ -5735,6 +5735,7 @@ CONFIG_RTC_DRV_CMOS=y # CONFIG_RTC_DRV_ZYNQMP is not set CONFIG_RTC_HCTOSYS=y CONFIG_RTC_HCTOSYS_DEVICE="rtc0" +# CONFIG_RTC_HCTOSYS_TIME32_LIMIT is not set CONFIG_RTC_INTF_DEV=y # CONFIG_RTC_INTF_DEV_UIE_EMUL is not set CONFIG_RTC_INTF_PROC=y diff --git a/target/linux/generic/hack-6.18/200-tools_portability.patch b/target/linux/generic/hack-6.18/200-tools_portability.patch index b682312f717..aa5a3641248 100644 --- a/target/linux/generic/hack-6.18/200-tools_portability.patch +++ b/target/linux/generic/hack-6.18/200-tools_portability.patch @@ -27,7 +27,7 @@ Signed-off-by: Felix Fietkau # sysroots and flags or to avoid the GCC call in pure Clang builds. --- a/tools/include/linux/types.h +++ b/tools/include/linux/types.h -@@ -58,6 +58,7 @@ typedef unsigned long long ullong; +@@ -63,6 +63,7 @@ typedef unsigned long long ullong; #define __user #endif #define __must_check diff --git a/target/linux/generic/hack-6.18/205-kconfig-abort-configuration-on-unset-symbol.patch b/target/linux/generic/hack-6.18/205-kconfig-abort-configuration-on-unset-symbol.patch index 780320e5126..a4f3d48f717 100644 --- a/target/linux/generic/hack-6.18/205-kconfig-abort-configuration-on-unset-symbol.patch +++ b/target/linux/generic/hack-6.18/205-kconfig-abort-configuration-on-unset-symbol.patch @@ -19,7 +19,7 @@ Signed-off-by: David Bauer --- a/scripts/kconfig/conf.c +++ b/scripts/kconfig/conf.c -@@ -310,6 +310,9 @@ static int conf_askvalue(struct symbol * +@@ -324,6 +324,9 @@ static int conf_askvalue(struct symbol * } /* fall through */ default: @@ -29,7 +29,7 @@ Signed-off-by: David Bauer fflush(stdout); xfgets(line, sizeof(line), stdin); break; -@@ -485,6 +488,9 @@ static void conf_choice(struct menu *men +@@ -502,6 +505,9 @@ static void conf_choice(struct menu *men } /* fall through */ case oldaskconfig: diff --git a/target/linux/generic/hack-6.18/402-mtd-blktrans-call-add-disks-after-mtd-device.patch b/target/linux/generic/hack-6.18/402-mtd-blktrans-call-add-disks-after-mtd-device.patch index e4834ad16e5..9c29f2eef06 100644 --- a/target/linux/generic/hack-6.18/402-mtd-blktrans-call-add-disks-after-mtd-device.patch +++ b/target/linux/generic/hack-6.18/402-mtd-blktrans-call-add-disks-after-mtd-device.patch @@ -25,7 +25,7 @@ Signed-off-by: Daniel Golle --- a/drivers/mtd/mtd_blkdevs.c +++ b/drivers/mtd/mtd_blkdevs.c -@@ -379,19 +379,8 @@ int add_mtd_blktrans_dev(struct mtd_blkt +@@ -384,19 +384,8 @@ int add_mtd_blktrans_dev(struct mtd_blkt if (new->readonly) set_disk_ro(gd, 1); @@ -45,7 +45,7 @@ Signed-off-by: Daniel Golle out_free_tag_set: blk_mq_free_tag_set(new->tag_set); out_kfree_tag_set: -@@ -401,6 +390,35 @@ out_list_del: +@@ -406,6 +395,35 @@ out_list_del: return ret; } diff --git a/target/linux/generic/hack-6.18/661-kernel-ct-size-the-hashtable-more-adequately.patch b/target/linux/generic/hack-6.18/661-kernel-ct-size-the-hashtable-more-adequately.patch index a3fe0e0d9fc..6343fbf4e68 100644 --- a/target/linux/generic/hack-6.18/661-kernel-ct-size-the-hashtable-more-adequately.patch +++ b/target/linux/generic/hack-6.18/661-kernel-ct-size-the-hashtable-more-adequately.patch @@ -14,7 +14,7 @@ Signed-off-by: Rui Salvaterra --- a/net/netfilter/nf_conntrack_core.c +++ b/net/netfilter/nf_conntrack_core.c -@@ -2633,7 +2633,7 @@ int nf_conntrack_init_start(void) +@@ -2638,7 +2638,7 @@ int nf_conntrack_init_start(void) if (!nf_conntrack_htable_size) { nf_conntrack_htable_size diff --git a/target/linux/generic/hack-6.18/721-net-add-packet-mangeling.patch b/target/linux/generic/hack-6.18/721-net-add-packet-mangeling.patch index 5dc1baa0ae4..deaa85f9fae 100644 --- a/target/linux/generic/hack-6.18/721-net-add-packet-mangeling.patch +++ b/target/linux/generic/hack-6.18/721-net-add-packet-mangeling.patch @@ -19,7 +19,7 @@ Signed-off-by: Felix Fietkau --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h -@@ -1750,6 +1750,7 @@ enum netdev_priv_flags { +@@ -1766,6 +1766,7 @@ enum netdev_priv_flags { IFF_L3MDEV_RX_HANDLER = 1<<29, IFF_NO_ADDRCONF = BIT_ULL(30), IFF_TX_SKB_NO_LINEAR = BIT_ULL(31), @@ -27,7 +27,7 @@ Signed-off-by: Felix Fietkau }; /* Specifies the type of the struct net_device::ml_priv pointer */ -@@ -2252,6 +2253,11 @@ struct net_device { +@@ -2270,6 +2271,11 @@ struct net_device { const struct tlsdev_ops *tlsdev_ops; #endif @@ -39,7 +39,7 @@ Signed-off-by: Felix Fietkau unsigned int operstate; unsigned char link_mode; -@@ -2328,6 +2334,10 @@ struct net_device { +@@ -2348,6 +2354,10 @@ struct net_device { struct psp_dev __rcu *psp_dev; #endif @@ -97,7 +97,7 @@ Signed-off-by: Felix Fietkau help --- a/net/core/dev.c +++ b/net/core/dev.c -@@ -3889,6 +3889,11 @@ static int xmit_one(struct sk_buff *skb, +@@ -3897,6 +3897,11 @@ static int xmit_one(struct sk_buff *skb, if (dev_nit_active_rcu(dev)) dev_queue_xmit_nit(skb, dev); diff --git a/target/linux/generic/hack-6.18/901-debloat_sock_diag.patch b/target/linux/generic/hack-6.18/901-debloat_sock_diag.patch index b788353232b..36f3609290a 100644 --- a/target/linux/generic/hack-6.18/901-debloat_sock_diag.patch +++ b/target/linux/generic/hack-6.18/901-debloat_sock_diag.patch @@ -83,7 +83,7 @@ Signed-off-by: Felix Fietkau INDIRECT_CALLABLE_DECLARE(struct dst_entry *ip6_dst_check(struct dst_entry *, u32)); INDIRECT_CALLABLE_DECLARE(struct dst_entry *ipv4_dst_check(struct dst_entry *, -@@ -2403,9 +2420,11 @@ static void __sk_free(struct sock *sk) +@@ -2404,9 +2421,11 @@ static void __sk_free(struct sock *sk) if (likely(sk->sk_net_refcnt)) sock_inuse_add(sock_net(sk), -1); diff --git a/target/linux/generic/hack-6.18/902-debloat_proc.patch b/target/linux/generic/hack-6.18/902-debloat_proc.patch index 113abdfa2f8..8778fd8804c 100644 --- a/target/linux/generic/hack-6.18/902-debloat_proc.patch +++ b/target/linux/generic/hack-6.18/902-debloat_proc.patch @@ -331,7 +331,7 @@ Signed-off-by: Felix Fietkau --- a/net/core/sock.c +++ b/net/core/sock.c -@@ -4362,6 +4362,8 @@ static __net_initdata struct pernet_oper +@@ -4363,6 +4363,8 @@ static __net_initdata struct pernet_oper static int __init proto_init(void) { diff --git a/target/linux/generic/hack-6.18/904-debloat_dma_buf.patch b/target/linux/generic/hack-6.18/904-debloat_dma_buf.patch index 9f1d7267ca4..757ae876fec 100644 --- a/target/linux/generic/hack-6.18/904-debloat_dma_buf.patch +++ b/target/linux/generic/hack-6.18/904-debloat_dma_buf.patch @@ -67,7 +67,7 @@ Signed-off-by: Felix Fietkau +MODULE_LICENSE("GPL"); --- a/kernel/sched/core.c +++ b/kernel/sched/core.c -@@ -4445,6 +4445,7 @@ int wake_up_state(struct task_struct *p, +@@ -4423,6 +4423,7 @@ int wake_up_state(struct task_struct *p, { return try_to_wake_up(p, state, 0); } diff --git a/target/linux/generic/hack-6.18/911-kobject_add_broadcast_uevent.patch b/target/linux/generic/hack-6.18/911-kobject_add_broadcast_uevent.patch index df160baff60..ffce7b2d570 100644 --- a/target/linux/generic/hack-6.18/911-kobject_add_broadcast_uevent.patch +++ b/target/linux/generic/hack-6.18/911-kobject_add_broadcast_uevent.patch @@ -30,7 +30,7 @@ Signed-off-by: Felix Fietkau #endif /* _KOBJECT_H_ */ --- a/lib/kobject_uevent.c +++ b/lib/kobject_uevent.c -@@ -699,6 +699,43 @@ int add_uevent_var(struct kobj_uevent_en +@@ -702,6 +702,43 @@ int add_uevent_var(struct kobj_uevent_en EXPORT_SYMBOL_GPL(add_uevent_var); #if defined(CONFIG_NET) diff --git a/target/linux/generic/hack-6.18/940-kbuild-extract-modules-builtin-modinfo-from-vmlinux_o.patch b/target/linux/generic/hack-6.18/940-kbuild-extract-modules-builtin-modinfo-from-vmlinux_o.patch index 1d5c65875de..82404fd5713 100644 --- a/target/linux/generic/hack-6.18/940-kbuild-extract-modules-builtin-modinfo-from-vmlinux_o.patch +++ b/target/linux/generic/hack-6.18/940-kbuild-extract-modules-builtin-modinfo-from-vmlinux_o.patch @@ -18,8 +18,8 @@ Signed-off-by: Mieczyslaw Nalewaj --- a/scripts/Makefile.vmlinux +++ b/scripts/Makefile.vmlinux -@@ -119,7 +119,7 @@ quiet_cmd_modules_builtin_modinfo = GEN - OBJCOPYFLAGS_modules.builtin.modinfo := -j .modinfo -O binary +@@ -103,7 +103,7 @@ quiet_cmd_modules_builtin_modinfo = GEN + cmd_modules_builtin_modinfo = $(OBJCOPY) -O binary -j .modinfo --dump-section .modinfo=$@ $< /dev/null targets += modules.builtin.modinfo -modules.builtin.modinfo: vmlinux.unstripped FORCE diff --git a/target/linux/generic/kernel-6.18 b/target/linux/generic/kernel-6.18 index 82b30ac327e..0ea1b53be8d 100644 --- a/target/linux/generic/kernel-6.18 +++ b/target/linux/generic/kernel-6.18 @@ -1,2 +1,2 @@ -LINUX_VERSION-6.18 = .64 -LINUX_KERNEL_HASH-6.18.64 = 020d45510c539972e6f14c5c71566878d3b7ef56fb082b3e09134f2ebaade562 +LINUX_VERSION-6.18 = .65 +LINUX_KERNEL_HASH-6.18.65 = c92606f956f09dc50b5a0e2af9e86763fce27ada1647de97f8d1ac8cfc95801d diff --git a/target/linux/generic/pending-6.18/454-block-add-support-for-notifications.patch b/target/linux/generic/pending-6.18/454-block-add-support-for-notifications.patch index b537bff3599..64016df1431 100644 --- a/target/linux/generic/pending-6.18/454-block-add-support-for-notifications.patch +++ b/target/linux/generic/pending-6.18/454-block-add-support-for-notifications.patch @@ -149,7 +149,7 @@ Signed-off-by: Daniel Golle +device_initcall(blk_notifications_init); --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h -@@ -1871,4 +1871,12 @@ static inline int bio_split_rw_at(struct +@@ -1876,4 +1876,12 @@ static inline int bio_split_rw_at(struct #define DEFINE_IO_COMP_BATCH(name) struct io_comp_batch name = { } diff --git a/target/linux/generic/pending-6.18/455-block-add-new-genhd-flag-GENHD_FL_NVMEM.patch b/target/linux/generic/pending-6.18/455-block-add-new-genhd-flag-GENHD_FL_NVMEM.patch index 4f9a26fd161..6ca1f2059d0 100644 --- a/target/linux/generic/pending-6.18/455-block-add-new-genhd-flag-GENHD_FL_NVMEM.patch +++ b/target/linux/generic/pending-6.18/455-block-add-new-genhd-flag-GENHD_FL_NVMEM.patch @@ -13,7 +13,7 @@ Signed-off-by: Daniel Golle --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h -@@ -82,11 +82,13 @@ struct partition_meta_info { +@@ -83,11 +83,13 @@ struct partition_meta_info { * ``GENHD_FL_NO_PART``: partition support is disabled. The kernel will not * scan for partitions from add_disk, and users can't add partitions manually. * diff --git a/target/linux/generic/pending-6.18/640-net-bridge-fix-switchdev-host-mdb-entry-updates.patch b/target/linux/generic/pending-6.18/640-net-bridge-fix-switchdev-host-mdb-entry-updates.patch index cab539833bb..d2785a3bdb0 100644 --- a/target/linux/generic/pending-6.18/640-net-bridge-fix-switchdev-host-mdb-entry-updates.patch +++ b/target/linux/generic/pending-6.18/640-net-bridge-fix-switchdev-host-mdb-entry-updates.patch @@ -20,7 +20,7 @@ Signed-off-by: Felix Fietkau --- a/net/bridge/br_switchdev.c +++ b/net/bridge/br_switchdev.c -@@ -575,10 +575,18 @@ static void br_switchdev_host_mdb(struct +@@ -590,10 +590,18 @@ static void br_switchdev_host_mdb(struct struct net_bridge_mdb_entry *mp, int type) { struct net_device *lower_dev; diff --git a/target/linux/generic/pending-6.18/642-net-bridge-switchdev-add-br_switchdev_fdb_find_port.patch b/target/linux/generic/pending-6.18/642-net-bridge-switchdev-add-br_switchdev_fdb_find_port.patch index 93e4f6895fc..43f1fa3ce70 100644 --- a/target/linux/generic/pending-6.18/642-net-bridge-switchdev-add-br_switchdev_fdb_find_port.patch +++ b/target/linux/generic/pending-6.18/642-net-bridge-switchdev-add-br_switchdev_fdb_find_port.patch @@ -17,7 +17,7 @@ Signed-off-by: Julius Bairaktaris --- --- a/include/linux/if_bridge.h +++ b/include/linux/if_bridge.h -@@ -172,6 +172,19 @@ static inline int br_mst_get_state(const +@@ -201,6 +201,19 @@ static inline int br_mst_get_state(const } #endif diff --git a/target/linux/generic/pending-6.18/670-ipv6-allow-rejecting-with-source-address-failed-policy.patch b/target/linux/generic/pending-6.18/670-ipv6-allow-rejecting-with-source-address-failed-policy.patch index 1535b349142..7446fd9a1dc 100644 --- a/target/linux/generic/pending-6.18/670-ipv6-allow-rejecting-with-source-address-failed-policy.patch +++ b/target/linux/generic/pending-6.18/670-ipv6-allow-rejecting-with-source-address-failed-policy.patch @@ -157,7 +157,7 @@ Signed-off-by: Jonas Gorski case RTN_THROW: case RTN_UNREACHABLE: default: -@@ -4672,6 +4691,17 @@ static int ip6_pkt_prohibit_out(struct n +@@ -4681,6 +4700,17 @@ static int ip6_pkt_prohibit_out(struct n return ip6_pkt_drop(skb, ICMPV6_ADM_PROHIBITED, IPSTATS_MIB_OUTNOROUTES); } @@ -175,7 +175,7 @@ Signed-off-by: Jonas Gorski /* * Allocate a dst for local (unicast / anycast) address. */ -@@ -5227,7 +5257,8 @@ static int rtm_to_fib6_config(struct sk_ +@@ -5236,7 +5266,8 @@ static int rtm_to_fib6_config(struct sk_ if (rtm->rtm_type == RTN_UNREACHABLE || rtm->rtm_type == RTN_BLACKHOLE || rtm->rtm_type == RTN_PROHIBIT || @@ -185,7 +185,7 @@ Signed-off-by: Jonas Gorski cfg->fc_flags |= RTF_REJECT; if (rtm->rtm_type == RTN_LOCAL) -@@ -6496,6 +6527,8 @@ static int ip6_route_dev_notify(struct n +@@ -6510,6 +6541,8 @@ static int ip6_route_dev_notify(struct n #ifdef CONFIG_IPV6_MULTIPLE_TABLES net->ipv6.ip6_prohibit_entry->dst.dev = dev; net->ipv6.ip6_prohibit_entry->rt6i_idev = in6_dev_get(dev); @@ -194,7 +194,7 @@ Signed-off-by: Jonas Gorski net->ipv6.ip6_blk_hole_entry->dst.dev = dev; net->ipv6.ip6_blk_hole_entry->rt6i_idev = in6_dev_get(dev); #endif -@@ -6507,6 +6540,7 @@ static int ip6_route_dev_notify(struct n +@@ -6521,6 +6554,7 @@ static int ip6_route_dev_notify(struct n in6_dev_put_clear(&net->ipv6.ip6_null_entry->rt6i_idev); #ifdef CONFIG_IPV6_MULTIPLE_TABLES in6_dev_put_clear(&net->ipv6.ip6_prohibit_entry->rt6i_idev); @@ -202,7 +202,7 @@ Signed-off-by: Jonas Gorski in6_dev_put_clear(&net->ipv6.ip6_blk_hole_entry->rt6i_idev); #endif } -@@ -6702,6 +6736,8 @@ static int __net_init ip6_route_net_init +@@ -6716,6 +6750,8 @@ static int __net_init ip6_route_net_init #ifdef CONFIG_IPV6_MULTIPLE_TABLES net->ipv6.fib6_has_custom_rules = false; @@ -211,7 +211,7 @@ Signed-off-by: Jonas Gorski net->ipv6.ip6_prohibit_entry = kmemdup(&ip6_prohibit_entry_template, sizeof(*net->ipv6.ip6_prohibit_entry), GFP_KERNEL); -@@ -6712,11 +6748,21 @@ static int __net_init ip6_route_net_init +@@ -6726,11 +6762,21 @@ static int __net_init ip6_route_net_init ip6_template_metrics, true); INIT_LIST_HEAD(&net->ipv6.ip6_prohibit_entry->dst.rt_uncached); @@ -234,7 +234,7 @@ Signed-off-by: Jonas Gorski net->ipv6.ip6_blk_hole_entry->dst.ops = &net->ipv6.ip6_dst_ops; dst_init_metrics(&net->ipv6.ip6_blk_hole_entry->dst, ip6_template_metrics, true); -@@ -6743,6 +6789,8 @@ out: +@@ -6757,6 +6803,8 @@ out: return ret; #ifdef CONFIG_IPV6_MULTIPLE_TABLES @@ -243,7 +243,7 @@ Signed-off-by: Jonas Gorski out_ip6_prohibit_entry: kfree(net->ipv6.ip6_prohibit_entry); out_ip6_null_entry: -@@ -6762,6 +6810,7 @@ static void __net_exit ip6_route_net_exi +@@ -6776,6 +6824,7 @@ static void __net_exit ip6_route_net_exi kfree(net->ipv6.ip6_null_entry); #ifdef CONFIG_IPV6_MULTIPLE_TABLES kfree(net->ipv6.ip6_prohibit_entry); @@ -251,7 +251,7 @@ Signed-off-by: Jonas Gorski kfree(net->ipv6.ip6_blk_hole_entry); #endif dst_entries_destroy(&net->ipv6.ip6_dst_ops); -@@ -6845,6 +6894,9 @@ void __init ip6_route_init_special_entri +@@ -6859,6 +6908,9 @@ void __init ip6_route_init_special_entri init_net.ipv6.ip6_prohibit_entry->rt6i_idev = in6_dev_get(init_net.loopback_dev); init_net.ipv6.ip6_blk_hole_entry->dst.dev = init_net.loopback_dev; init_net.ipv6.ip6_blk_hole_entry->rt6i_idev = in6_dev_get(init_net.loopback_dev); diff --git a/target/linux/generic/pending-6.18/681-net-remove-NETIF_F_GSO_FRAGLIST-from-NETIF_F_GSO_SOF.patch b/target/linux/generic/pending-6.18/681-net-remove-NETIF_F_GSO_FRAGLIST-from-NETIF_F_GSO_SOF.patch index 7382931ff27..d2cc13bebf7 100644 --- a/target/linux/generic/pending-6.18/681-net-remove-NETIF_F_GSO_FRAGLIST-from-NETIF_F_GSO_SOF.patch +++ b/target/linux/generic/pending-6.18/681-net-remove-NETIF_F_GSO_FRAGLIST-from-NETIF_F_GSO_SOF.patch @@ -24,7 +24,7 @@ Signed-off-by: Felix Fietkau dev->hw_features |= dev->features; --- a/drivers/net/loopback.c +++ b/drivers/net/loopback.c -@@ -175,7 +175,7 @@ static void gen_lo_setup(struct net_devi +@@ -181,7 +181,7 @@ static void gen_lo_setup(struct net_devi dev->lltx = true; dev->netns_immutable = true; netif_keep_dst(dev); @@ -96,7 +96,7 @@ Signed-off-by: Felix Fietkau } --- a/net/core/sock.c +++ b/net/core/sock.c -@@ -2623,7 +2623,7 @@ void sk_setup_caps(struct sock *sk, stru +@@ -2624,7 +2624,7 @@ void sk_setup_caps(struct sock *sk, stru icsk->icsk_ack.dst_quick_ack = dst_metric(dst, RTAX_QUICKACK); } if (sk->sk_route_caps & NETIF_F_GSO) @@ -107,7 +107,7 @@ Signed-off-by: Felix Fietkau if (sk_can_gso(sk)) { --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h -@@ -2094,7 +2094,7 @@ void ieee80211_color_collision_detection +@@ -2095,7 +2095,7 @@ void ieee80211_color_collision_detection /* interface handling */ #define MAC80211_SUPPORTED_FEATURES_TX (NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | \ NETIF_F_HW_CSUM | NETIF_F_SG | \ diff --git a/target/linux/generic/pending-6.18/708-netfilter-flowtable-tear-down-direct-xmit-flows-when.patch b/target/linux/generic/pending-6.18/708-netfilter-flowtable-tear-down-direct-xmit-flows-when.patch index 5e2aad72385..532fe688177 100644 --- a/target/linux/generic/pending-6.18/708-netfilter-flowtable-tear-down-direct-xmit-flows-when.patch +++ b/target/linux/generic/pending-6.18/708-netfilter-flowtable-tear-down-direct-xmit-flows-when.patch @@ -158,7 +158,7 @@ Signed-off-by: Daniel Golle +} --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h -@@ -1995,6 +1995,19 @@ struct nf_br_ops { +@@ -1998,6 +1998,19 @@ struct nf_br_ops { }; extern const struct nf_br_ops __rcu *nf_br_ops; @@ -180,7 +180,7 @@ Signed-off-by: Daniel Golle int br_nf_core_init(void); --- a/net/netfilter/core.c +++ b/net/netfilter/core.c -@@ -802,6 +802,9 @@ static struct pernet_operations netfilte +@@ -818,6 +818,9 @@ static struct pernet_operations netfilte .exit = netfilter_net_exit, }; diff --git a/target/linux/generic/pending-6.18/710-bridge-add-knob-for-filtering-rx-tx-BPDU-pack.patch b/target/linux/generic/pending-6.18/710-bridge-add-knob-for-filtering-rx-tx-BPDU-pack.patch index 336fcb37d8f..2516d6616a7 100644 --- a/target/linux/generic/pending-6.18/710-bridge-add-knob-for-filtering-rx-tx-BPDU-pack.patch +++ b/target/linux/generic/pending-6.18/710-bridge-add-knob-for-filtering-rx-tx-BPDU-pack.patch @@ -14,11 +14,19 @@ Signed-off-by: Felix Fietkau --- a/include/linux/if_bridge.h +++ b/include/linux/if_bridge.h -@@ -61,6 +61,7 @@ struct br_ip_list { - #define BR_PORT_LOCKED BIT(21) - #define BR_PORT_MAB BIT(22) - #define BR_NEIGH_VLAN_SUPPRESS BIT(23) -+#define BR_BPDU_FILTER BIT(24) +@@ -62,6 +62,7 @@ enum bridge_flags_bit { + BR_PORT_MAB_BIT, + BR_NEIGH_VLAN_SUPPRESS_BIT, + BR_NEIGH_FORWARD_GRAT_BIT, ++ BR_BPDU_FILTER_BIT, + }; + + #define BR_HAIRPIN_MODE BIT(BR_HAIRPIN_MODE_BIT) +@@ -90,6 +91,7 @@ enum bridge_flags_bit { + #define BR_PORT_MAB BIT(BR_PORT_MAB_BIT) + #define BR_NEIGH_VLAN_SUPPRESS BIT(BR_NEIGH_VLAN_SUPPRESS_BIT) + #define BR_NEIGH_FORWARD_GRAT BIT(BR_NEIGH_FORWARD_GRAT_BIT) ++#define BR_BPDU_FILTER BIT(BR_BPDU_FILTER_BIT) #define BR_DEFAULT_AGEING_TIME (300 * HZ) @@ -161,7 +169,7 @@ Signed-off-by: Felix Fietkau struct rtnl_link { rtnl_doit_func doit; -@@ -5349,7 +5349,9 @@ int ndo_dflt_bridge_getlink(struct sk_bu +@@ -5350,7 +5350,9 @@ int ndo_dflt_bridge_getlink(struct sk_bu brport_nla_put_flag(skb, flags, mask, IFLA_BRPORT_MCAST_FLOOD, BR_MCAST_FLOOD) || brport_nla_put_flag(skb, flags, mask, diff --git a/target/linux/generic/pending-6.18/731-net-permit-ieee80211_ptr-even-with-no-CFG82111-suppo.patch b/target/linux/generic/pending-6.18/731-net-permit-ieee80211_ptr-even-with-no-CFG82111-suppo.patch index b43e7d6aad3..320d7e05060 100644 --- a/target/linux/generic/pending-6.18/731-net-permit-ieee80211_ptr-even-with-no-CFG82111-suppo.patch +++ b/target/linux/generic/pending-6.18/731-net-permit-ieee80211_ptr-even-with-no-CFG82111-suppo.patch @@ -17,7 +17,7 @@ Signed-off-by: Christian Marangi --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h -@@ -2312,7 +2312,7 @@ struct net_device { +@@ -2332,7 +2332,7 @@ struct net_device { #if IS_ENABLED(CONFIG_AX25) struct ax25_dev __rcu *ax25_ptr; #endif diff --git a/target/linux/generic/pending-6.18/811-pci_disable_usb_common_quirks.patch b/target/linux/generic/pending-6.18/811-pci_disable_usb_common_quirks.patch index 4e0360d47fe..abc1550aba4 100644 --- a/target/linux/generic/pending-6.18/811-pci_disable_usb_common_quirks.patch +++ b/target/linux/generic/pending-6.18/811-pci_disable_usb_common_quirks.patch @@ -37,7 +37,7 @@ Signed-off-by: Felix Fietkau #define pio_enabled(dev) io_type_enabled(dev, PCI_COMMAND_IO) -@@ -1304,3 +1310,4 @@ static void quirk_usb_early_handoff(stru +@@ -1305,3 +1311,4 @@ static void quirk_usb_early_handoff(stru } DECLARE_PCI_FIXUP_CLASS_FINAL(PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_SERIAL_USB, 8, quirk_usb_early_handoff); diff --git a/target/linux/generic/pending-6.18/834-ledtrig-libata.patch b/target/linux/generic/pending-6.18/834-ledtrig-libata.patch index c427ed2614f..3483ab73961 100644 --- a/target/linux/generic/pending-6.18/834-ledtrig-libata.patch +++ b/target/linux/generic/pending-6.18/834-ledtrig-libata.patch @@ -45,7 +45,7 @@ Signed-off-by: Daniel Golle depends on ACPI --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c -@@ -703,6 +703,17 @@ static inline void ata_set_tf_cdl(struct +@@ -716,6 +716,17 @@ static inline void ata_set_tf_cdl(struct qc->flags |= ATA_QCFLAG_HAS_CDL | ATA_QCFLAG_RESULT_TF; } @@ -63,7 +63,7 @@ Signed-off-by: Daniel Golle /** * ata_build_rw_tf - Build ATA taskfile for given read/write request * @qc: Metadata associated with the taskfile to build -@@ -4917,6 +4928,9 @@ void __ata_qc_complete(struct ata_queued +@@ -4996,6 +5007,9 @@ void __ata_qc_complete(struct ata_queued link->active_tag = ATA_TAG_POISON; ap->nr_active_links--; } @@ -73,7 +73,7 @@ Signed-off-by: Daniel Golle /* clear exclusive status */ if (unlikely(qc->flags & ATA_QCFLAG_CLEAR_EXCL && -@@ -5646,6 +5660,9 @@ struct ata_port *ata_port_alloc(struct a +@@ -5725,6 +5739,9 @@ struct ata_port *ata_port_alloc(struct a ap->stats.unhandled_irq = 1; ap->stats.idle_irq = 1; #endif @@ -83,7 +83,7 @@ Signed-off-by: Daniel Golle ata_sff_port_init(ap); ata_force_pflags(ap); -@@ -5662,6 +5679,12 @@ void ata_port_free(struct ata_port *ap) +@@ -5741,6 +5758,12 @@ void ata_port_free(struct ata_port *ap) kfree(ap->pmp_link); kfree(ap->slave_link); ida_free(&ata_ida, ap->print_id); @@ -96,7 +96,7 @@ Signed-off-by: Daniel Golle kfree(ap); } EXPORT_SYMBOL_GPL(ata_port_free); -@@ -6112,7 +6135,23 @@ int ata_host_register(struct ata_host *h +@@ -6191,7 +6214,23 @@ int ata_host_register(struct ata_host *h WARN_ON(1); return -EINVAL; } @@ -132,7 +132,7 @@ Signed-off-by: Daniel Golle /* * Define if arch has non-standard setup. This is a _PCI_ standard -@@ -940,6 +943,10 @@ struct ata_port { +@@ -944,6 +947,10 @@ struct ata_port { #ifdef CONFIG_ATA_ACPI struct ata_acpi_gtm __acpi_init_gtm; /* use ata_acpi_init_gtm() */ #endif diff --git a/target/linux/generic/pending-6.18/880-leds-st1202-add-hardware-accelerated-blink-support.patch b/target/linux/generic/pending-6.18/880-leds-st1202-add-hardware-accelerated-blink-support.patch deleted file mode 100644 index bad10480ed9..00000000000 --- a/target/linux/generic/pending-6.18/880-leds-st1202-add-hardware-accelerated-blink-support.patch +++ /dev/null @@ -1,146 +0,0 @@ -From 35cbd34a6a05cc53882b1b7ca6f338a93ab29fcb Mon Sep 17 00:00:00 2001 -From: Manuel Fombuena -Date: Fri, 14 Aug 2026 10:16:54 +0100 -Subject: [PATCH] leds: st1202: Add hardware-accelerated blink support - -Implement blink_set() to enable hardware-accelerated blinking via the -timer trigger. The LED1202 pattern engine is used to produce a two-step -sequence: full brightness for delay_on, off for delay_off, repeating -indefinitely. - -Requested delays are clamped to the hardware range [22ms, 5610ms] then -rounded up to the nearest 22ms step. Clamping before rounding prevents -integer overflow in roundup() for extreme input values; since -ST1202_MILLIS_PATTERN_DUR_MAX is an exact multiple of -ST1202_MILLIS_PATTERN_DUR_MIN, rounding a clamped value cannot exceed -the maximum. A zero delay is replaced with the default of 500ms -independently for each of delay_on and delay_off. - -The LED1202 pattern sequencer is global and its timing registers are -shared across all channels, so only one blink configuration can be -active at a time. Other active channels have their PWM slots zeroed for -both pattern steps so they remain dark rather than outputting unintended -values when the sequencer runs. The target channel's ILED register is -set to full brightness and the channel is enabled, since the timer -trigger deactivates the current trigger before calling blink_set which -would otherwise leave the channel disabled. - -Signed-off-by: Manuel Fombuena -Link: https://patch.msgid.link/GV1PR08MB84973F79E871176EB387C377C5DA2@GV1PR08MB8497.eurprd08.prod.outlook.com -Signed-off-by: Lee Jones ---- - drivers/leds/leds-st1202.c | 89 ++++++++++++++++++++++++++++++++++++++ - 1 file changed, 89 insertions(+) - ---- a/drivers/leds/leds-st1202.c -+++ b/drivers/leds/leds-st1202.c -@@ -16,6 +16,7 @@ - #include - #include - -+#define ST1202_BLINK_DEFAULT_DELAY 500 - #define ST1202_CHAN_DISABLE_ALL 0x00 - #define ST1202_CHAN_ENABLE_HIGH 0x03 - #define ST1202_CHAN_ENABLE_LOW 0x02 -@@ -276,6 +277,93 @@ static int st1202_led_pattern_set(struct - return 0; - } - -+static int st1202_blink_set(struct led_classdev *led_cdev, -+ unsigned long *delay_on, unsigned long *delay_off) -+{ -+ struct st1202_led *led = cdev_to_st1202_led(led_cdev); -+ struct st1202_chip *chip = led->chip; -+ unsigned long on, off; -+ int ret; -+ -+ if (!*delay_on) -+ *delay_on = ST1202_BLINK_DEFAULT_DELAY; -+ if (!*delay_off) -+ *delay_off = ST1202_BLINK_DEFAULT_DELAY; -+ -+ on = *delay_on; -+ off = *delay_off; -+ -+ on = clamp_val(on, ST1202_MILLIS_PATTERN_DUR_MIN, ST1202_MILLIS_PATTERN_DUR_MAX); -+ off = clamp_val(off, ST1202_MILLIS_PATTERN_DUR_MIN, ST1202_MILLIS_PATTERN_DUR_MAX); -+ on = roundup(on, ST1202_MILLIS_PATTERN_DUR_MIN); -+ off = roundup(off, ST1202_MILLIS_PATTERN_DUR_MIN); -+ -+ guard(mutex)(&chip->lock); -+ -+ ret = st1202_write_reg(chip, ST1202_CONFIG_REG, ST1202_CONFIG_REG_SHFT); -+ if (ret) -+ return ret; -+ -+ /* Zero out PWM for all other active channels to prevent them from blinking */ -+ for (int chan = 0; chan < ST1202_MAX_LEDS; chan++) { -+ if (!chip->leds[chan].is_active || chan == led->led_num) -+ continue; -+ -+ ret = st1202_pwm_pattern_write(chip, chan, 0, LED_OFF); -+ if (ret) -+ return ret; -+ -+ ret = st1202_pwm_pattern_write(chip, chan, 1, LED_OFF); -+ if (ret) -+ return ret; -+ } -+ -+ ret = st1202_pwm_pattern_write(chip, led->led_num, 0, ST1202_PATTERN_PWM_FULL); -+ if (ret) -+ return ret; -+ -+ ret = st1202_pwm_pattern_write(chip, led->led_num, 1, LED_OFF); -+ if (ret) -+ return ret; -+ -+ ret = st1202_duration_pattern_write(chip, 0, on); -+ if (ret) -+ return ret; -+ -+ ret = st1202_duration_pattern_write(chip, 1, off); -+ if (ret) -+ return ret; -+ -+ for (int pattern = 2; pattern < ST1202_MAX_PATTERNS; pattern++) { -+ ret = st1202_write_reg(chip, ST1202_PATTERN_DUR + pattern, 0); -+ if (ret) -+ return ret; -+ } -+ -+ ret = st1202_write_reg(chip, ST1202_PATTERN_REP, U8_MAX); -+ if (ret) -+ return ret; -+ -+ ret = st1202_write_reg(chip, ST1202_ILED_REG0 + led->led_num, U8_MAX); -+ if (ret) -+ return ret; -+ -+ ret = __st1202_channel_set(chip, led->led_num, true); -+ if (ret) -+ return ret; -+ -+ ret = st1202_write_reg(chip, ST1202_CONFIG_REG, -+ ST1202_CONFIG_REG_PATSR | ST1202_CONFIG_REG_PATS | -+ ST1202_CONFIG_REG_SHFT); -+ if (ret) -+ return ret; -+ -+ *delay_on = on; -+ *delay_off = off; -+ -+ return 0; -+} -+ - static int st1202_dt_init(struct st1202_chip *chip) - { - struct device *dev = &chip->client->dev; -@@ -302,6 +390,7 @@ static int st1202_dt_init(struct st1202_ - led->led_cdev.pattern_set = st1202_led_pattern_set; - led->led_cdev.pattern_clear = st1202_led_pattern_clear; - led->led_cdev.default_trigger = "pattern"; -+ led->led_cdev.blink_set = st1202_blink_set; - led->led_cdev.brightness_set = st1202_brightness_set; - led->led_cdev.brightness_get = st1202_brightness_get; - } diff --git a/target/linux/generic/pending-6.18/897-05-net-pse-pd-si3474-report-over-current-faults-via-INTb.patch b/target/linux/generic/pending-6.18/897-05-net-pse-pd-si3474-report-over-current-faults-via-INTb.patch index 7bf0015fb86..a3ba8354aa4 100644 --- a/target/linux/generic/pending-6.18/897-05-net-pse-pd-si3474-report-over-current-faults-via-INTb.patch +++ b/target/linux/generic/pending-6.18/897-05-net-pse-pd-si3474-report-over-current-faults-via-INTb.patch @@ -124,7 +124,7 @@ Signed-off-by: Daniel Golle return 0; } -@@ -309,6 +351,8 @@ static int si3474_pi_enable(struct pse_c +@@ -319,6 +361,8 @@ static int si3474_pi_enable(struct pse_c if (ret) return ret; @@ -133,7 +133,7 @@ Signed-off-by: Daniel Golle /* DETECT_CLASS_ENABLE must be set when using AUTO mode, * otherwise PI does not power up - datasheet section 2.10.2 */ -@@ -346,6 +390,8 @@ static int si3474_pi_disable(struct pse_ +@@ -361,6 +405,8 @@ static int si3474_pi_disable(struct pse_ if (ret) return ret; @@ -142,7 +142,7 @@ Signed-off-by: Daniel Golle return 0; } -@@ -453,6 +499,128 @@ static int si3474_pi_get_actual_pw(struc +@@ -468,6 +514,128 @@ static int si3474_pi_get_actual_pw(struc return DIV_ROUND_CLOSEST_ULL(tmp_64, 1000000000); } @@ -271,7 +271,7 @@ Signed-off-by: Daniel Golle static const struct pse_controller_ops si3474_ops = { .setup_pi_matrix = si3474_setup_pi_matrix, .pi_enable = si3474_pi_enable, -@@ -546,7 +714,10 @@ static int si3474_i2c_probe(struct i2c_c +@@ -559,7 +727,10 @@ static int si3474_i2c_probe(struct i2c_c return ret; } diff --git a/target/linux/imx/patches-6.18/518-v7.1-arm64-dts-imx8mp-kontron-Use-GPIO-IRQ-defines-in-DL-devicetree.patch b/target/linux/imx/patches-6.18/518-v7.1-arm64-dts-imx8mp-kontron-Use-GPIO-IRQ-defines-in-DL-devicetree.patch index c4a45f30827..0e6739aa942 100644 --- a/target/linux/imx/patches-6.18/518-v7.1-arm64-dts-imx8mp-kontron-Use-GPIO-IRQ-defines-in-DL-devicetree.patch +++ b/target/linux/imx/patches-6.18/518-v7.1-arm64-dts-imx8mp-kontron-Use-GPIO-IRQ-defines-in-DL-devicetree.patch @@ -16,15 +16,15 @@ Signed-off-by: Frank Li --- a/arch/arm64/boot/dts/freescale/imx8mp-kontron-dl.dtso +++ b/arch/arm64/boot/dts/freescale/imx8mp-kontron-dl.dtso -@@ -7,6 +7,7 @@ - /plugin/; +@@ -8,6 +8,7 @@ + #include #include +#include #include "imx8mp-pinfunc.h" &{/} { -@@ -80,11 +81,11 @@ +@@ -81,11 +82,11 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_touch>; interrupt-parent = <&gpio1>; diff --git a/target/linux/ipq40xx/patches-6.18/701-net-dsa-add-out-of-band-tagging-protocol.patch b/target/linux/ipq40xx/patches-6.18/701-net-dsa-add-out-of-band-tagging-protocol.patch index bb2482e52e3..6bc2c8ee5bc 100644 --- a/target/linux/ipq40xx/patches-6.18/701-net-dsa-add-out-of-band-tagging-protocol.patch +++ b/target/linux/ipq40xx/patches-6.18/701-net-dsa-add-out-of-band-tagging-protocol.patch @@ -93,7 +93,7 @@ Signed-off-by: Maxime Chevallier +#endif --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h -@@ -4937,6 +4937,9 @@ enum skb_ext_id { +@@ -5012,6 +5012,9 @@ enum skb_ext_id { #if IS_ENABLED(CONFIG_INET_PSP) SKB_EXT_PSP, #endif @@ -136,7 +136,7 @@ Signed-off-by: Maxime Chevallier #include #include #include -@@ -5137,6 +5141,9 @@ static const u8 skb_ext_type_len[] = { +@@ -5140,6 +5144,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 diff --git a/target/linux/ipq40xx/patches-6.18/900-PCI-qcom-add-hack-compatible-for-ipq4019-Lantiq-DSL.patch b/target/linux/ipq40xx/patches-6.18/900-PCI-qcom-add-hack-compatible-for-ipq4019-Lantiq-DSL.patch index 3097d1e0e96..16e5321e80b 100644 --- a/target/linux/ipq40xx/patches-6.18/900-PCI-qcom-add-hack-compatible-for-ipq4019-Lantiq-DSL.patch +++ b/target/linux/ipq40xx/patches-6.18/900-PCI-qcom-add-hack-compatible-for-ipq4019-Lantiq-DSL.patch @@ -128,7 +128,7 @@ Signed-off-by: Florian Maurer 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; -@@ -1379,6 +1456,16 @@ static const struct qcom_pcie_ops ops_2_ +@@ -1417,6 +1494,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 /* 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, -@@ -1458,6 +1545,10 @@ static const struct qcom_pcie_cfg cfg_2_ +@@ -1496,6 +1583,10 @@ static const struct qcom_pcie_cfg cfg_2_ .ops = &ops_2_4_0, }; @@ -156,7 +156,7 @@ Signed-off-by: Florian Maurer static const struct qcom_pcie_cfg cfg_2_7_0 = { .ops = &ops_2_7_0, }; -@@ -2023,6 +2114,7 @@ static const struct of_device_id qcom_pc +@@ -2061,6 +2152,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 }, diff --git a/target/linux/ipq40xx/patches-6.18/999-atm-mpoa-intel-dsl-phy-support.patch b/target/linux/ipq40xx/patches-6.18/999-atm-mpoa-intel-dsl-phy-support.patch index 9011ab2e7a5..9065e654651 100644 --- a/target/linux/ipq40xx/patches-6.18/999-atm-mpoa-intel-dsl-phy-support.patch +++ b/target/linux/ipq40xx/patches-6.18/999-atm-mpoa-intel-dsl-phy-support.patch @@ -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 -@@ -3031,6 +3031,24 @@ char *ppp_dev_name(struct ppp_channel *c +@@ -3122,6 +3122,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. -@@ -3705,6 +3723,7 @@ EXPORT_SYMBOL(ppp_unregister_channel); +@@ -3796,6 +3814,7 @@ EXPORT_SYMBOL(ppp_unregister_channel); EXPORT_SYMBOL(ppp_channel_index); EXPORT_SYMBOL(ppp_unit_number); EXPORT_SYMBOL(ppp_dev_name); @@ -39,7 +39,7 @@ Subject: [PATCH] UGW_SW-29163: ATM oam support EXPORT_SYMBOL(ppp_output_wakeup); --- a/include/linux/ppp_channel.h +++ b/include/linux/ppp_channel.h -@@ -75,6 +75,9 @@ extern int ppp_unit_number(struct ppp_ch +@@ -76,6 +76,9 @@ extern int ppp_unit_number(struct ppp_ch /* Get the device name associated with a channel, or NULL if none */ extern char *ppp_dev_name(struct ppp_channel *); diff --git a/target/linux/ipq806x/patches-6.18/300-net-stmmac-honour-Rx-checksum-errors-in-the-AF_XDP-z.patch b/target/linux/ipq806x/patches-6.18/300-net-stmmac-honour-Rx-checksum-errors-in-the-AF_XDP-z.patch index 1f565906d4a..91d8c54fb2c 100644 --- a/target/linux/ipq806x/patches-6.18/300-net-stmmac-honour-Rx-checksum-errors-in-the-AF_XDP-z.patch +++ b/target/linux/ipq806x/patches-6.18/300-net-stmmac-honour-Rx-checksum-errors-in-the-AF_XDP-z.patch @@ -30,7 +30,7 @@ Signed-off-by: Paolo Abeni --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c -@@ -5198,7 +5198,7 @@ static struct sk_buff *stmmac_construct_ +@@ -5207,7 +5207,7 @@ static struct sk_buff *stmmac_construct_ static void stmmac_dispatch_skb_zc(struct stmmac_priv *priv, u32 queue, struct dma_desc *p, struct dma_desc *np, @@ -39,7 +39,7 @@ Signed-off-by: Paolo Abeni { struct stmmac_rxq_stats *rxq_stats = &priv->xstats.rxq_stats[queue]; struct stmmac_channel *ch = &priv->channel[queue]; -@@ -5223,7 +5223,8 @@ static void stmmac_dispatch_skb_zc(struc +@@ -5232,7 +5232,8 @@ static void stmmac_dispatch_skb_zc(struc stmmac_rx_vlan(priv->dev, skb); skb->protocol = eth_type_trans(skb, priv->dev); @@ -49,7 +49,7 @@ Signed-off-by: Paolo Abeni skb_checksum_none_assert(skb); else skb->ip_summed = CHECKSUM_UNNECESSARY; -@@ -5450,7 +5451,8 @@ read_again: +@@ -5463,7 +5464,8 @@ read_again: switch (res) { case STMMAC_XDP_PASS: diff --git a/target/linux/ipq806x/patches-6.18/301-net-stmmac-dwmac1000-don-t-discard-frames-with-only-.patch b/target/linux/ipq806x/patches-6.18/301-net-stmmac-dwmac1000-don-t-discard-frames-with-only-.patch index 67ad77a53ad..de37dd4781d 100644 --- a/target/linux/ipq806x/patches-6.18/301-net-stmmac-dwmac1000-don-t-discard-frames-with-only-.patch +++ b/target/linux/ipq806x/patches-6.18/301-net-stmmac-dwmac1000-don-t-discard-frames-with-only-.patch @@ -47,7 +47,7 @@ Signed-off-by: Paolo Abeni --- a/drivers/net/ethernet/stmicro/stmmac/enh_desc.c +++ b/drivers/net/ethernet/stmicro/stmmac/enh_desc.c -@@ -200,9 +200,6 @@ static int enh_desc_get_rx_status(struct +@@ -221,9 +221,6 @@ static int enh_desc_get_rx_status(struct if (unlikely(rdes0 & RDES0_OVERFLOW_ERROR)) x->rx_gmac_overflow++; @@ -57,7 +57,7 @@ Signed-off-by: Paolo Abeni if (unlikely(rdes0 & RDES0_COLLISION)) x->rx_collision++; if (unlikely(rdes0 & RDES0_RECEIVE_WATCHDOG)) -@@ -214,7 +211,10 @@ static int enh_desc_get_rx_status(struct +@@ -235,7 +232,10 @@ static int enh_desc_get_rx_status(struct if (unlikely(rdes0 & RDES0_CRC_ERROR)) { x->rx_crc_errors++; } diff --git a/target/linux/ipq806x/patches-6.18/903-net-stmmac-force-name-from-dt-alias.patch b/target/linux/ipq806x/patches-6.18/903-net-stmmac-force-name-from-dt-alias.patch index 03d2f2c0020..a702b82547a 100644 --- a/target/linux/ipq806x/patches-6.18/903-net-stmmac-force-name-from-dt-alias.patch +++ b/target/linux/ipq806x/patches-6.18/903-net-stmmac-force-name-from-dt-alias.patch @@ -25,7 +25,7 @@ Signed-off-by: Mieczyslaw Nalewaj --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c -@@ -7531,6 +7531,7 @@ int stmmac_dvr_probe(struct device *devi +@@ -7549,6 +7549,7 @@ int stmmac_dvr_probe(struct device *devi { struct net_device *ndev = NULL; struct stmmac_priv *priv; @@ -33,7 +33,7 @@ Signed-off-by: Mieczyslaw Nalewaj u32 rxq; int i, ret = 0; -@@ -7785,7 +7786,24 @@ int stmmac_dvr_probe(struct device *devi +@@ -7806,7 +7807,24 @@ int stmmac_dvr_probe(struct device *devi goto error_phy_setup; } diff --git a/target/linux/kirkwood/patches-6.18/201-enable-sata-port-specific-led-triggers.patch b/target/linux/kirkwood/patches-6.18/201-enable-sata-port-specific-led-triggers.patch index 3db362de9fb..202c9c02e6d 100644 --- a/target/linux/kirkwood/patches-6.18/201-enable-sata-port-specific-led-triggers.patch +++ b/target/linux/kirkwood/patches-6.18/201-enable-sata-port-specific-led-triggers.patch @@ -1,6 +1,6 @@ --- a/arch/arm/mach-mvebu/Kconfig +++ b/arch/arm/mach-mvebu/Kconfig -@@ -115,6 +115,7 @@ config MACH_DOVE +@@ -117,6 +117,7 @@ config MACH_DOVE config MACH_KIRKWOOD bool "Marvell Kirkwood boards" depends on ARCH_MULTI_V5 diff --git a/target/linux/layerscape/patches-6.18/400-LF-20-3-mtd-spi-nor-Use-1-bit-mode-of-spansion-s25fs.patch b/target/linux/layerscape/patches-6.18/400-LF-20-3-mtd-spi-nor-Use-1-bit-mode-of-spansion-s25fs.patch index 0ecc401a23f..6dd97c4f9cb 100644 --- a/target/linux/layerscape/patches-6.18/400-LF-20-3-mtd-spi-nor-Use-1-bit-mode-of-spansion-s25fs.patch +++ b/target/linux/layerscape/patches-6.18/400-LF-20-3-mtd-spi-nor-Use-1-bit-mode-of-spansion-s25fs.patch @@ -15,7 +15,7 @@ Signed-off-by: Kuldeep Singh --- a/drivers/mtd/spi-nor/spansion.c +++ b/drivers/mtd/spi-nor/spansion.c -@@ -861,9 +861,9 @@ static const struct flash_info spansion_ +@@ -854,9 +854,9 @@ static const struct flash_info spansion_ .name = "s25fs512s", .size = SZ_64M, .sector_size = SZ_256K, diff --git a/target/linux/mediatek/patches-6.18/410-bt-mtk-serial-fix.patch b/target/linux/mediatek/patches-6.18/410-bt-mtk-serial-fix.patch index 621092f0a86..f38eb551371 100644 --- a/target/linux/mediatek/patches-6.18/410-bt-mtk-serial-fix.patch +++ b/target/linux/mediatek/patches-6.18/410-bt-mtk-serial-fix.patch @@ -12,7 +12,7 @@ Signed-off-by: John Crispin --- --- a/drivers/tty/serial/8250/8250.h +++ b/drivers/tty/serial/8250/8250.h -@@ -86,6 +86,7 @@ struct serial8250_config { +@@ -87,6 +87,7 @@ struct serial8250_config { * STOP PARITY EPAR SPAR WLEN5 WLEN6 */ #define UART_CAP_NOTEMT BIT(18) /* UART without interrupt on TEMT available */ diff --git a/target/linux/microchipsw/patches-6.18/127-net-sparx5-add-MTU-change-framework.patch b/target/linux/microchipsw/patches-6.18/127-net-sparx5-add-MTU-change-framework.patch index f4cc7fd6542..83b846afacb 100644 --- a/target/linux/microchipsw/patches-6.18/127-net-sparx5-add-MTU-change-framework.patch +++ b/target/linux/microchipsw/patches-6.18/127-net-sparx5-add-MTU-change-framework.patch @@ -31,7 +31,7 @@ Signed-off-by: Robert Marko sparx5-switch-$(CONFIG_DEBUG_FS) += sparx5_vcap_debugfs.o --- a/drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c +++ b/drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c -@@ -462,6 +462,15 @@ int sparx5_fdma_start(struct sparx5 *spa +@@ -463,6 +463,15 @@ int sparx5_fdma_start(struct sparx5 *spa sparx5_fdma_rx_activate(sparx5, rx); sparx5_fdma_tx_activate(sparx5, tx); @@ -47,7 +47,7 @@ Signed-off-by: Robert Marko return 0; } -@@ -471,6 +480,7 @@ int sparx5_fdma_stop(struct sparx5 *spar +@@ -472,6 +481,7 @@ int sparx5_fdma_stop(struct sparx5 *spar struct sparx5_tx *tx = &sparx5->tx; u32 val; @@ -55,7 +55,7 @@ Signed-off-by: Robert Marko napi_disable(&rx->napi); /* Stop the fdma and channel interrupts */ -@@ -482,5 +492,15 @@ int sparx5_fdma_stop(struct sparx5 *spar +@@ -483,5 +493,15 @@ int sparx5_fdma_stop(struct sparx5 *spar FDMA_PORT_CTRL_XTR_BUF_IS_EMPTY_GET(val) == 0, 500, 10000, 0, sparx5); diff --git a/target/linux/microchipsw/patches-6.18/128-net-sparx5-add-MTU-change.patch b/target/linux/microchipsw/patches-6.18/128-net-sparx5-add-MTU-change.patch index b3a222f86f8..5567829b970 100644 --- a/target/linux/microchipsw/patches-6.18/128-net-sparx5-add-MTU-change.patch +++ b/target/linux/microchipsw/patches-6.18/128-net-sparx5-add-MTU-change.patch @@ -14,7 +14,7 @@ Signed-off-by: Robert Marko --- a/drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c +++ b/drivers/net/ethernet/microchip/sparx5/sparx5_fdma.c -@@ -278,6 +278,8 @@ static void sparx5_fdma_rx_init(struct s +@@ -279,6 +279,8 @@ static void sparx5_fdma_rx_init(struct s struct fdma *fdma = &rx->fdma; int idx; @@ -23,7 +23,7 @@ Signed-off-by: Robert Marko fdma->channel_id = channel; fdma->n_dcbs = FDMA_DCB_MAX; fdma->n_dbs = FDMA_RX_DCB_MAX_DBS; -@@ -403,6 +405,8 @@ int sparx5_fdma_init(struct sparx5 *spar +@@ -404,6 +406,8 @@ int sparx5_fdma_init(struct sparx5 *spar { int err; @@ -32,7 +32,7 @@ Signed-off-by: Robert Marko /* Reset FDMA state */ spx5_wr(FDMA_CTRL_NRESET_SET(0), sparx5, FDMA_CTRL); spx5_wr(FDMA_CTRL_NRESET_SET(1), sparx5, FDMA_CTRL); -@@ -504,3 +508,51 @@ int sparx5_fdma_stop(struct sparx5 *spar +@@ -505,3 +509,51 @@ int sparx5_fdma_stop(struct sparx5 *spar return 0; } diff --git a/target/linux/microchipsw/patches-6.18/129-net-lan969x-add-MTU-change.patch b/target/linux/microchipsw/patches-6.18/129-net-lan969x-add-MTU-change.patch index ef89cacd04b..d3ba71d4321 100644 --- a/target/linux/microchipsw/patches-6.18/129-net-lan969x-add-MTU-change.patch +++ b/target/linux/microchipsw/patches-6.18/129-net-lan969x-add-MTU-change.patch @@ -34,7 +34,7 @@ Signed-off-by: Robert Marko #endif --- a/drivers/net/ethernet/microchip/sparx5/lan969x/lan969x_fdma.c +++ b/drivers/net/ethernet/microchip/sparx5/lan969x/lan969x_fdma.c -@@ -154,7 +154,7 @@ static int lan969x_fdma_rx_alloc(struct +@@ -153,7 +153,7 @@ static int lan969x_fdma_rx_alloc(struct int err; struct page_pool_params pp_params = { @@ -43,7 +43,7 @@ Signed-off-by: Robert Marko .flags = PP_FLAG_DMA_MAP | PP_FLAG_DMA_SYNC_DEV, .pool_size = fdma->n_dcbs * fdma->n_dbs, .nid = NUMA_NO_NODE, -@@ -209,12 +209,14 @@ static void lan969x_fdma_rx_init(struct +@@ -208,12 +208,14 @@ static void lan969x_fdma_rx_init(struct { struct fdma *fdma = &sparx5->rx.fdma; @@ -59,7 +59,7 @@ Signed-off-by: Robert Marko fdma->ops.dataptr_cb = &lan969x_fdma_rx_dataptr_cb; fdma->ops.nextptr_cb = &fdma_nextptr_cb; -@@ -359,6 +361,8 @@ int lan969x_fdma_init(struct sparx5 *spa +@@ -358,6 +360,8 @@ int lan969x_fdma_init(struct sparx5 *spa struct sparx5_rx *rx = &sparx5->rx; int err; @@ -68,7 +68,7 @@ Signed-off-by: Robert Marko lan969x_fdma_rx_init(sparx5); lan969x_fdma_tx_init(sparx5); sparx5_fdma_injection_mode(sparx5); -@@ -404,3 +408,55 @@ int lan969x_fdma_deinit(struct sparx5 *s +@@ -403,3 +407,55 @@ int lan969x_fdma_deinit(struct sparx5 *s return 0; } diff --git a/target/linux/mvebu/patches-6.18/301-mvebu-armada-38x-enable-libata-leds.patch b/target/linux/mvebu/patches-6.18/301-mvebu-armada-38x-enable-libata-leds.patch index b75dcf596ad..d19e51caa0c 100644 --- a/target/linux/mvebu/patches-6.18/301-mvebu-armada-38x-enable-libata-leds.patch +++ b/target/linux/mvebu/patches-6.18/301-mvebu-armada-38x-enable-libata-leds.patch @@ -1,6 +1,6 @@ --- a/arch/arm/mach-mvebu/Kconfig +++ b/arch/arm/mach-mvebu/Kconfig -@@ -66,6 +66,7 @@ config MACH_ARMADA_38X +@@ -68,6 +68,7 @@ config MACH_ARMADA_38X select HAVE_ARM_TWD if SMP select MACH_MVEBU_V7 select PINCTRL_ARMADA_38X diff --git a/target/linux/mvebu/patches-6.18/303-mvebu-armada-38x-errata.patch b/target/linux/mvebu/patches-6.18/303-mvebu-armada-38x-errata.patch deleted file mode 100644 index 504db0acf67..00000000000 --- a/target/linux/mvebu/patches-6.18/303-mvebu-armada-38x-errata.patch +++ /dev/null @@ -1,38 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Qingfang Deng -Date: Sun, 20 Sep 2026 12:02:59 +0800 -Subject: [PATCH] ARM: mvebu: fix Cortex-A9 errata selection for Armada 38x - -Armada 38x uses Cortex-A9 r4p1, but MACH_ARMADA_38X selects the -workaround for erratum 720789, which was fixed in r2p0, and omits -workarounds for errata that still affect r4p1. - -Drop ARM_ERRATA_720789 and select ARM_ERRATA_754322 for faulty MMU -translations following an ASID switch and ARM_ERRATA_764319 for -unexpected undefined instruction exceptions when reading debug -registers. Also select ARM_ERRATA_764369 when SMP is enabled to work -around cache maintenance by MVA failing to reach other agents. - -The Cortex-A9 r4 Software Developers Errata Notice (ARM UAN 0009D) -lists these errata in sections 2.3.3, 2.5.10 and 2.3.4, respectively. - -Link: https://documentation-service.arm.com/static/608118675e70d934bc69f143 -Fixes: 9aa30f1c13d1 ("ARM: mvebu: add initial support for the Armada 380/385 SOCs") -Signed-off-by: Qingfang Deng ---- - arch/arm/mach-mvebu/Kconfig | 4 +++- - 1 file changed, 3 insertions(+), 1 deletion(-) - ---- a/arch/arm/mach-mvebu/Kconfig -+++ b/arch/arm/mach-mvebu/Kconfig -@@ -55,7 +55,9 @@ config MACH_ARMADA_375 - config MACH_ARMADA_38X - bool "Marvell Armada 380/385 boards" - depends on ARCH_MULTI_V7 -- select ARM_ERRATA_720789 -+ select ARM_ERRATA_754322 -+ select ARM_ERRATA_764319 -+ select ARM_ERRATA_764369 if SMP - select PL310_ERRATA_753970 - select ARM_GIC - select ARM_GLOBAL_TIMER diff --git a/target/linux/qualcommax/patches-6.18/0089-v7.2-net-phy-at803x-add-RX-and-TX-clock-management-for-IPQ5018-PHY.patch b/target/linux/qualcommax/patches-6.18/0089-v7.2-net-phy-at803x-add-RX-and-TX-clock-management-for-IPQ5018-PHY.patch index 5097498d191..f925cfa05ee 100644 --- a/target/linux/qualcommax/patches-6.18/0089-v7.2-net-phy-at803x-add-RX-and-TX-clock-management-for-IPQ5018-PHY.patch +++ b/target/linux/qualcommax/patches-6.18/0089-v7.2-net-phy-at803x-add-RX-and-TX-clock-management-for-IPQ5018-PHY.patch @@ -24,7 +24,7 @@ Signed-off-by: Jakub Kicinski #include #include #include -@@ -1092,6 +1093,7 @@ static void ipq5018_link_change_notify(s +@@ -1119,6 +1120,7 @@ static void ipq5018_link_change_notify(s static int ipq5018_probe(struct phy_device *phydev) { struct device *dev = &phydev->mdio.dev; @@ -32,7 +32,7 @@ Signed-off-by: Jakub Kicinski struct ipq5018_priv *priv; int ret; -@@ -1102,6 +1104,16 @@ static int ipq5018_probe(struct phy_devi +@@ -1129,6 +1131,16 @@ static int ipq5018_probe(struct phy_devi priv->set_short_cable_dac = of_property_read_bool(dev->of_node, "qcom,dac-preset-short-cable"); diff --git a/target/linux/qualcommax/patches-6.18/0092-v7.4-net-phy-qcom-at803x-Apply-IPQ5018-analog-settings-at-probe.patch b/target/linux/qualcommax/patches-6.18/0092-v7.4-net-phy-qcom-at803x-Apply-IPQ5018-analog-settings-at-probe.patch deleted file mode 100644 index e5444186113..00000000000 --- a/target/linux/qualcommax/patches-6.18/0092-v7.4-net-phy-qcom-at803x-Apply-IPQ5018-analog-settings-at-probe.patch +++ /dev/null @@ -1,157 +0,0 @@ -From 17baf30a0e64cde0e8a30723b7c6d06417152514 Mon Sep 17 00:00:00 2001 -From: Yongzhao Chen -Date: Fri, 2 Oct 2026 23:04:08 +0200 -Subject: net: phy: qcom: at803x: Apply IPQ5018 analog settings at probe - -ipq5018_probe() pulses the PHY reset, after which the IPQ5018 internal -GE PHY starts autonegotiating with its reset-default analog settings. -ipq5018_config_init() writes the analog settings only when the MAC -attaches the PHY, usually when the interface is opened. On a board -where the PHY connects to a QCA8337 PHY without a cable, 1000BASE-T -does not come up in the meantime, SmartSpeed downshifts both PHYs, and -only the IPQ5018 side restores its 1000BASE-T advertisement at attach, -so the link stays down. - -Apply the analog settings in probe right after the reset and restart -autonegotiation. Move the settings into a helper shared with -config_init() and return MDIO errors from it instead of ignoring them. -The values written do not change, only the time of the write. - -Fixes: d46502279a11 ("net: phy: qcom: at803x: Add Qualcomm IPQ5018 Internal PHY support") -Signed-off-by: Yongzhao Chen -Link: https://patch.msgid.link/20261002210408.730-1-yongzhao.derek@gmail.com -Signed-off-by: Jakub Kicinski ---- - drivers/net/phy/qcom/at803x.c | 98 ++++++++++++++++++++++++++++++------------- - 1 file changed, 70 insertions(+), 28 deletions(-) - ---- a/drivers/net/phy/qcom/at803x.c -+++ b/drivers/net/phy/qcom/at803x.c -@@ -1033,10 +1033,10 @@ static int ipq5018_cable_test_start(stru - return 0; - } - --static int ipq5018_config_init(struct phy_device *phydev) -+static int ipq5018_analog_init(struct phy_device *phydev) - { - struct ipq5018_priv *priv = phydev->priv; -- u16 val; -+ int val, ret; - - /* - * set LDO efuse: first temporarily store ANA_DAC_FILTER value from -@@ -1044,39 +1044,66 @@ static int ipq5018_config_init(struct ph - * is written to - */ - val = at803x_debug_reg_read(phydev, IPQ5018_PHY_DEBUG_ANA_DAC_FILTER); -- at803x_debug_reg_mask(phydev, IPQ5018_PHY_DEBUG_ANA_LDO_EFUSE, -- IPQ5018_PHY_DEBUG_ANA_LDO_EFUSE_MASK, -- IPQ5018_PHY_DEBUG_ANA_LDO_EFUSE_DEFAULT); -- at803x_debug_reg_write(phydev, IPQ5018_PHY_DEBUG_ANA_DAC_FILTER, val); -+ if (val < 0) -+ return val; -+ -+ ret = at803x_debug_reg_mask(phydev, IPQ5018_PHY_DEBUG_ANA_LDO_EFUSE, -+ IPQ5018_PHY_DEBUG_ANA_LDO_EFUSE_MASK, -+ IPQ5018_PHY_DEBUG_ANA_LDO_EFUSE_DEFAULT); -+ if (ret) -+ return ret; -+ -+ ret = at803x_debug_reg_write(phydev, IPQ5018_PHY_DEBUG_ANA_DAC_FILTER, -+ val); -+ if (ret) -+ return ret; - - /* set 8023AZ EEE TX and RX timer values */ -- phy_write_mmd(phydev, MDIO_MMD_PCS, IPQ5018_PHY_PCS_EEE_TX_TIMER, -- IPQ5018_PHY_PCS_EEE_TX_TIMER_VAL); -- phy_write_mmd(phydev, MDIO_MMD_PCS, IPQ5018_PHY_PCS_EEE_RX_TIMER, -- IPQ5018_PHY_PCS_EEE_RX_TIMER_VAL); -+ ret = phy_write_mmd(phydev, MDIO_MMD_PCS, IPQ5018_PHY_PCS_EEE_TX_TIMER, -+ IPQ5018_PHY_PCS_EEE_TX_TIMER_VAL); -+ if (ret) -+ return ret; -+ -+ ret = phy_write_mmd(phydev, MDIO_MMD_PCS, IPQ5018_PHY_PCS_EEE_RX_TIMER, -+ IPQ5018_PHY_PCS_EEE_RX_TIMER_VAL); -+ if (ret) -+ return ret; - - /* set MSE threshold values */ -- phy_write_mmd(phydev, MDIO_MMD_PMAPMD, IPQ5018_PHY_MMD1_MSE_THRESH1, -- IPQ5018_PHY_MMD1_MSE_THRESH1_VAL); -- phy_write_mmd(phydev, MDIO_MMD_PMAPMD, IPQ5018_PHY_MMD1_MSE_THRESH2, -- IPQ5018_PHY_MMD1_MSE_THRESH2_VAL); -+ ret = phy_write_mmd(phydev, MDIO_MMD_PMAPMD, -+ IPQ5018_PHY_MMD1_MSE_THRESH1, -+ IPQ5018_PHY_MMD1_MSE_THRESH1_VAL); -+ if (ret) -+ return ret; -+ -+ ret = phy_write_mmd(phydev, MDIO_MMD_PMAPMD, -+ IPQ5018_PHY_MMD1_MSE_THRESH2, -+ IPQ5018_PHY_MMD1_MSE_THRESH2_VAL); -+ if (ret) -+ return ret; - - /* PHY DAC values are optional and only set in a PHY to PHY link architecture */ -- if (priv->set_short_cable_dac) { -- /* setting MDAC (Multi-level Digital-to-Analog Converter) in MMD1 */ -- phy_modify_mmd(phydev, MDIO_MMD_PMAPMD, IPQ5018_PHY_MMD1_MDAC, -- IPQ5018_PHY_DAC_MASK, -- FIELD_PREP(IPQ5018_PHY_DAC_MASK, -- IPQ5018_PHY_MMD1_MDAC_VAL)); -- -- /* setting EDAC (Error-detection and Correction) in debug register */ -- at803x_debug_reg_mask(phydev, IPQ5018_PHY_DEBUG_EDAC, -- IPQ5018_PHY_DAC_MASK, -- FIELD_PREP(IPQ5018_PHY_DAC_MASK, -- IPQ5018_PHY_DEBUG_EDAC_VAL)); -- } -+ if (!priv->set_short_cable_dac) -+ return 0; - -- return 0; -+ /* setting MDAC (Multi-level Digital-to-Analog Converter) in MMD1 */ -+ ret = phy_modify_mmd(phydev, MDIO_MMD_PMAPMD, IPQ5018_PHY_MMD1_MDAC, -+ IPQ5018_PHY_DAC_MASK, -+ FIELD_PREP(IPQ5018_PHY_DAC_MASK, -+ IPQ5018_PHY_MMD1_MDAC_VAL)); -+ if (ret) -+ return ret; -+ -+ /* setting EDAC (Error-detection and Correction) in debug register */ -+ return at803x_debug_reg_mask(phydev, IPQ5018_PHY_DEBUG_EDAC, -+ IPQ5018_PHY_DAC_MASK, -+ FIELD_PREP(IPQ5018_PHY_DAC_MASK, -+ IPQ5018_PHY_DEBUG_EDAC_VAL)); -+} -+ -+static int ipq5018_config_init(struct phy_device *phydev) -+{ -+ return ipq5018_analog_init(phydev); - } - - static void ipq5018_link_change_notify(struct phy_device *phydev) -@@ -1125,6 +1152,21 @@ static int ipq5018_probe(struct phy_devi - - phydev->priv = priv; - -+ /* -+ * The PHY starts autonegotiation as soon as it leaves reset. Apply the -+ * analog settings now instead of waiting for config_init() at attach -+ * time, and restart autonegotiation so that it uses them. -+ */ -+ ret = ipq5018_analog_init(phydev); -+ if (ret) -+ return dev_err_probe(dev, ret, -+ "failed to apply analog settings\n"); -+ -+ ret = genphy_restart_aneg(phydev); -+ if (ret) -+ return dev_err_probe(dev, ret, -+ "failed to restart autonegotiation\n"); -+ - return 0; - } - diff --git a/target/linux/qualcommax/patches-6.18/0401-spi-spi-qpic-snand-default-to-4-bit-ECC.patch b/target/linux/qualcommax/patches-6.18/0401-spi-spi-qpic-snand-default-to-4-bit-ECC.patch index 3fd5f76ec3d..d9e64ef32ba 100644 --- a/target/linux/qualcommax/patches-6.18/0401-spi-spi-qpic-snand-default-to-4-bit-ECC.patch +++ b/target/linux/qualcommax/patches-6.18/0401-spi-spi-qpic-snand-default-to-4-bit-ECC.patch @@ -19,7 +19,7 @@ Signed-off-by: Robert Marko --- a/drivers/spi/spi-qpic-snand.c +++ b/drivers/spi/spi-qpic-snand.c -@@ -295,6 +295,24 @@ static int qcom_spi_ecc_init_ctx_pipelin +@@ -296,6 +296,24 @@ static int qcom_spi_ecc_init_ctx_pipelin ecc_cfg->spare_bytes = 2; break; diff --git a/target/linux/qualcommax/patches-6.18/0920-clk-add-clk_hw_recalc_rate-to-trigger-HW-clk-rate-re.patch b/target/linux/qualcommax/patches-6.18/0920-clk-add-clk_hw_recalc_rate-to-trigger-HW-clk-rate-re.patch index c9d58702830..0a6f0fda5c0 100644 --- a/target/linux/qualcommax/patches-6.18/0920-clk-add-clk_hw_recalc_rate-to-trigger-HW-clk-rate-re.patch +++ b/target/linux/qualcommax/patches-6.18/0920-clk-add-clk_hw_recalc_rate-to-trigger-HW-clk-rate-re.patch @@ -57,7 +57,7 @@ Signed-off-by: Christian Marangi --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c -@@ -1978,6 +1978,29 @@ static unsigned long clk_core_get_rate_r +@@ -1979,6 +1979,29 @@ static unsigned long clk_core_get_rate_r } /** @@ -89,7 +89,7 @@ Signed-off-by: Christian Marangi * --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h -@@ -1407,6 +1407,7 @@ int clk_hw_get_parent_index(struct clk_h +@@ -1423,6 +1423,7 @@ int clk_hw_get_parent_index(struct clk_h int clk_hw_set_parent(struct clk_hw *hw, struct clk_hw *new_parent); unsigned int __clk_get_enable_count(struct clk *clk); unsigned long clk_hw_get_rate(const struct clk_hw *hw); diff --git a/target/linux/ramips/patches-6.18/840-serial-add-ugly-custom-baud-rate-hack.patch b/target/linux/ramips/patches-6.18/840-serial-add-ugly-custom-baud-rate-hack.patch index bed8ff5cd01..3421b1f13f4 100644 --- a/target/linux/ramips/patches-6.18/840-serial-add-ugly-custom-baud-rate-hack.patch +++ b/target/linux/ramips/patches-6.18/840-serial-add-ugly-custom-baud-rate-hack.patch @@ -10,7 +10,7 @@ Signed-off-by: John Crispin --- a/drivers/tty/serial/serial_core.c +++ b/drivers/tty/serial/serial_core.c -@@ -501,6 +501,9 @@ uart_get_baud_rate(struct uart_port *por +@@ -502,6 +502,9 @@ uart_get_baud_rate(struct uart_port *por break; } diff --git a/target/linux/realtek/patches-6.18/744-net-phylink-pass-media-to-PCS-configuration.patch b/target/linux/realtek/patches-6.18/744-net-phylink-pass-media-to-PCS-configuration.patch index a190f450d8b..eb214dea7bc 100644 --- a/target/linux/realtek/patches-6.18/744-net-phylink-pass-media-to-PCS-configuration.patch +++ b/target/linux/realtek/patches-6.18/744-net-phylink-pass-media-to-PCS-configuration.patch @@ -234,7 +234,7 @@ Signed-off-by: Jonas Jelonek struct sparx5_port_config conf; --- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c +++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c -@@ -2594,7 +2594,7 @@ static void axienet_pcs_an_restart(struc +@@ -2644,7 +2644,7 @@ static void axienet_pcs_an_restart(struc static int axienet_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, phy_interface_t interface, const unsigned long *advertising, diff --git a/target/linux/rockchip/patches-6.18/072-2-v7.1-arm64-dts-rockchip-Enable-OTP-controller-for-RK356x.patch b/target/linux/rockchip/patches-6.18/072-2-v7.1-arm64-dts-rockchip-Enable-OTP-controller-for-RK356x.patch index 38058285d96..346edefa2b4 100644 --- a/target/linux/rockchip/patches-6.18/072-2-v7.1-arm64-dts-rockchip-Enable-OTP-controller-for-RK356x.patch +++ b/target/linux/rockchip/patches-6.18/072-2-v7.1-arm64-dts-rockchip-Enable-OTP-controller-for-RK356x.patch @@ -15,7 +15,7 @@ Link: https://patch.msgid.link/20260312213019.13965-3-heiko@sntech.de --- a/arch/arm64/boot/dts/rockchip/rk356x-base.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk356x-base.dtsi -@@ -1057,6 +1057,52 @@ +@@ -1056,6 +1056,52 @@ status = "disabled"; }; diff --git a/target/linux/rockchip/patches-6.18/104-phy-rockchip-naneng-combphy-Fix-TX-detect-RX.patch b/target/linux/rockchip/patches-6.18/104-phy-rockchip-naneng-combphy-Fix-TX-detect-RX.patch deleted file mode 100644 index 2c9a968b837..00000000000 --- a/target/linux/rockchip/patches-6.18/104-phy-rockchip-naneng-combphy-Fix-TX-detect-RX.patch +++ /dev/null @@ -1,101 +0,0 @@ -From git@z Thu Jan 1 00:00:00 1970 -Subject: [PATCH] phy: rockchip: naneng-combphy: Fix TX detect RX - termination errata -From: Shawn Lin -Date: Mon, 31 Aug 2026 14:36:44 +0800 -Message-Id: <1788158204-161347-1-git-send-email-shawn.lin@rock-chips.com> -MIME-Version: 1.0 -Content-Type: text/plain; charset="utf-8" -Content-Transfer-Encoding: 7bit - -Some PHY revisions may fail to detect the peer RX's termination -resistor (RTERM) under certain critical temperature conditions. -This causes TX detection failures on PCIe links. - -Add a workaround to force the RTERM detection ready signal for -affected PHY revisions. This ensures reliable TX-to-RX termination -detection across all operating temperature ranges. - -The fix applies to RK3562, RK3568, RK3576 and RK3588 SoCs which share -the same PHY IP with this hardware errata. - -Fixes: 7160820d742a ("phy: rockchip: add naneng combo phy for RK3568") -Fixes: f13bff25161b ("phy: rockchip-naneng-combo: Support rk3562") -Fixes: ba8ad7eece66 ("phy: rockchip-naneng-combo: add rk3576 support") -Fixes: a03c44277253 ("phy: rockchip: Add naneng combo phy support for RK3588") -Signed-off-by: Shawn Lin ---- - - drivers/phy/rockchip/phy-rockchip-naneng-combphy.c | 19 +++++++++++++++++++ - 1 file changed, 19 insertions(+) - ---- a/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c -+++ b/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c -@@ -106,6 +106,9 @@ - #define RK3568_PHYREG18 0x44 - #define RK3568_PHYREG18_PLL_LOOP 0x32 - -+#define RK3568_PHYREG26 0x64 -+#define RK3568_PHYREG26_FORCE_RTERM_DET_RDY BIT(5) -+ - #define RK3568_PHYREG30 0x74 - #define RK3568_PHYREG30_GATE_TX_PCK_SEL BIT(7) - #define RK3568_PHYREG30_GATE_TX_PCK_DLY_PLL_OFF BIT(7) -@@ -193,6 +196,7 @@ struct rockchip_combphy_cfg { - unsigned int num_phys; - unsigned int phy_ids[3]; - const struct rockchip_combphy_grfcfg *grfcfg; -+ bool force_rxterm_det_rdy; - int (*combphy_cfg)(struct rockchip_combphy_priv *priv); - }; - -@@ -264,6 +268,17 @@ static int rockchip_combphy_init(struct - - switch (priv->type) { - case PHY_TYPE_PCIE: -+ /* -+ * Hardware Errata: TX fails to detect peer RX termination. -+ * Some PHY revisions may fail to detect remote RX's RTERM -+ * (receiver termination resistor) under certain critical -+ * temperature conditions. Set force rterm detect ready to -+ * fix it. -+ */ -+ if (priv->cfg->force_rxterm_det_rdy) -+ rockchip_combphy_updatel(priv, RK3568_PHYREG26_FORCE_RTERM_DET_RDY, -+ RK3568_PHYREG26_FORCE_RTERM_DET_RDY, RK3568_PHYREG26); -+ fallthrough; - case PHY_TYPE_USB3: - case PHY_TYPE_SATA: - case PHY_TYPE_SGMII: -@@ -747,6 +762,7 @@ static const struct rockchip_combphy_cfg - }, - .grfcfg = &rk3562_combphy_grfcfgs, - .combphy_cfg = rk3562_combphy_cfg, -+ .force_rxterm_det_rdy = true, - }; - - static int rk3568_combphy_cfg(struct rockchip_combphy_priv *priv) -@@ -964,6 +980,7 @@ static const struct rockchip_combphy_cfg - }, - .grfcfg = &rk3568_combphy_grfcfgs, - .combphy_cfg = rk3568_combphy_cfg, -+ .force_rxterm_det_rdy = true, - }; - - static int rk3576_combphy_cfg(struct rockchip_combphy_priv *priv) -@@ -1233,6 +1250,7 @@ static const struct rockchip_combphy_cfg - }, - .grfcfg = &rk3576_combphy_grfcfgs, - .combphy_cfg = rk3576_combphy_cfg, -+ .force_rxterm_det_rdy = true, - }; - - static int rk3588_combphy_cfg(struct rockchip_combphy_priv *priv) -@@ -1420,6 +1438,7 @@ static const struct rockchip_combphy_cfg - }, - .grfcfg = &rk3588_combphy_grfcfgs, - .combphy_cfg = rk3588_combphy_cfg, -+ .force_rxterm_det_rdy = true, - }; - - static const struct of_device_id rockchip_combphy_of_match[] = { diff --git a/target/linux/rockchip/patches-6.18/190-03-arm64-dts-rockchip-Add-the-vdpu346-Video-Decoders-on.patch b/target/linux/rockchip/patches-6.18/190-03-arm64-dts-rockchip-Add-the-vdpu346-Video-Decoders-on.patch index 9d3317c977f..52ec1f36f16 100644 --- a/target/linux/rockchip/patches-6.18/190-03-arm64-dts-rockchip-Add-the-vdpu346-Video-Decoders-on.patch +++ b/target/linux/rockchip/patches-6.18/190-03-arm64-dts-rockchip-Add-the-vdpu346-Video-Decoders-on.patch @@ -17,7 +17,7 @@ Signed-off-by: Christian Hewitt --- a/arch/arm64/boot/dts/rockchip/rk356x-base.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk356x-base.dtsi -@@ -380,6 +380,19 @@ +@@ -379,6 +379,19 @@ reg = <0x0 0xfdca8000 0x0 0x8000>; }; @@ -37,7 +37,7 @@ Signed-off-by: Christian Hewitt pmucru: clock-controller@fdd00000 { compatible = "rockchip,rk3568-pmucru"; reg = <0x0 0xfdd00000 0x0 0x1000>; -@@ -616,6 +629,42 @@ +@@ -615,6 +628,42 @@ #iommu-cells = <0>; }; diff --git a/target/linux/rockchip/patches-6.18/195-03-arm64-dts-rockchip-rk356x-Order-vdec-regs-by-address.patch b/target/linux/rockchip/patches-6.18/195-03-arm64-dts-rockchip-rk356x-Order-vdec-regs-by-address.patch index 2d9685f030d..99e11534bc8 100644 --- a/target/linux/rockchip/patches-6.18/195-03-arm64-dts-rockchip-rk356x-Order-vdec-regs-by-address.patch +++ b/target/linux/rockchip/patches-6.18/195-03-arm64-dts-rockchip-rk356x-Order-vdec-regs-by-address.patch @@ -20,7 +20,7 @@ Signed-off-by: Daniel Golle --- a/arch/arm64/boot/dts/rockchip/rk356x-base.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk356x-base.dtsi -@@ -631,10 +631,10 @@ +@@ -630,10 +630,10 @@ vdec: video-codec@fdf80100 { compatible = "rockchip,rk3568-vdec"; diff --git a/target/linux/rockchip/patches-6.18/195-04-arm64-dts-rockchip-rk356x-Clock-the-vdec-at-400-MHz.patch b/target/linux/rockchip/patches-6.18/195-04-arm64-dts-rockchip-rk356x-Clock-the-vdec-at-400-MHz.patch index a394b5c1ceb..a875f8f4483 100644 --- a/target/linux/rockchip/patches-6.18/195-04-arm64-dts-rockchip-rk356x-Clock-the-vdec-at-400-MHz.patch +++ b/target/linux/rockchip/patches-6.18/195-04-arm64-dts-rockchip-rk356x-Clock-the-vdec-at-400-MHz.patch @@ -19,7 +19,7 @@ Signed-off-by: Daniel Golle --- a/arch/arm64/boot/dts/rockchip/rk356x-base.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk356x-base.dtsi -@@ -644,8 +644,8 @@ +@@ -643,8 +643,8 @@ <&cru CLK_RKVDEC_CORE>, <&cru CLK_RKVDEC_CA>, <&cru CLK_RKVDEC_HEVC_CA>; diff --git a/target/linux/rockchip/patches-6.18/400-2-arm64-dts-rockchip-Fix-regulators-gmac-and-naming-on.patch b/target/linux/rockchip/patches-6.18/400-2-arm64-dts-rockchip-Fix-regulators-gmac-and-naming-on.patch index 063ef172f49..9cbe00f7009 100644 --- a/target/linux/rockchip/patches-6.18/400-2-arm64-dts-rockchip-Fix-regulators-gmac-and-naming-on.patch +++ b/target/linux/rockchip/patches-6.18/400-2-arm64-dts-rockchip-Fix-regulators-gmac-and-naming-on.patch @@ -96,7 +96,7 @@ Signed-off-by: Sebastian Kropatsch pinctrl-names = "default"; pinctrl-0 = <&sd_s0_pwr>; - regulator-name = "vcc_3v3_sd_s0"; -- regulator-boot-on; + regulator-boot-on; - regulator-max-microvolt = <3000000>; - regulator-min-microvolt = <3000000>; - vin-supply = <&vcc_3v3_s3>; @@ -106,7 +106,7 @@ Signed-off-by: Sebastian Kropatsch - compatible = "regulator-fixed"; - regulator-name = "vcc_3v3_pcie20"; - regulator-always-on; - regulator-boot-on; +- regulator-boot-on; - regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; + regulator-min-microvolt = <3300000>; @@ -241,7 +241,7 @@ Signed-off-by: Sebastian Kropatsch wakeup-source; }; }; -@@ -343,27 +329,35 @@ +@@ -343,31 +329,35 @@ status = "okay"; }; @@ -262,8 +262,8 @@ Signed-off-by: Sebastian Kropatsch +/* RTL8125BG Ethernet */ &pcie2x1l1 { -+ pinctrl-names = "default"; -+ pinctrl-0 = <&pcie20x1_1_perstn_m2>; + pinctrl-names = "default"; + pinctrl-0 = <&pcie20x1_1_perstn_m2>; reset-gpios = <&gpio1 RK_PA7 GPIO_ACTIVE_HIGH>; - vpcie3v3-supply = <&vcc_3v3_pcie20>; + vpcie3v3-supply = <&vcc_3v3_s3>; @@ -273,28 +273,17 @@ Signed-off-by: Sebastian Kropatsch +/* R6C: M.2 M-Key socket */ +/* R6S: RTL8125BG Ethernet */ &pcie2x1l2 { -+ pinctrl-names = "default"; -+ pinctrl-0 = <&pcie20x1_2_perstn_m0>; + pinctrl-names = "default"; + pinctrl-0 = <&pcie20x1_2_perstn_m0>; reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>; - vpcie3v3-supply = <&vcc_3v3_pcie20>; status = "okay"; }; -@@ -410,24 +404,34 @@ +@@ -429,23 +419,23 @@ + rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>; }; - }; -+ pcie { -+ pcie20x1_1_perstn_m2: pcie2x1-1-rst { -+ rockchip,pins = <1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>; -+ }; -+ -+ pcie20x1_2_perstn_m0: pcie2x1-2-rst { -+ rockchip,pins = <3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>; -+ }; -+ }; -+ - sdmmc { - sd_s0_pwr: sd-s0-pwr { + sd_s0_pwr: sd-pwr { rockchip,pins = <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>; @@ -319,7 +308,7 @@ Signed-off-by: Sebastian Kropatsch rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; }; }; -@@ -468,15 +472,19 @@ +@@ -486,15 +476,19 @@ status = "okay"; }; @@ -341,7 +330,7 @@ Signed-off-by: Sebastian Kropatsch &sdmmc { bus-width = <4>; cap-sd-highspeed; -@@ -492,16 +500,15 @@ +@@ -512,16 +506,15 @@ }; &spi2 { @@ -361,7 +350,7 @@ Signed-off-by: Sebastian Kropatsch reg = <0x0>; interrupt-parent = <&gpio0>; -@@ -511,23 +518,24 @@ +@@ -531,23 +524,24 @@ pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>, <&rk806_dvs2_null>, <&rk806_dvs3_null>; @@ -398,7 +387,7 @@ Signed-off-by: Sebastian Kropatsch gpio-controller; #gpio-cells = <2>; -@@ -835,10 +843,11 @@ +@@ -855,10 +849,11 @@ }; &u2phy2_host { diff --git a/target/linux/starfive/patches-6.18/0001-riscv-dts-starfive-Add-full-support-except-VIN-and-V.patch b/target/linux/starfive/patches-6.18/0001-riscv-dts-starfive-Add-full-support-except-VIN-and-V.patch index 255f563f5cb..18e07ce42f0 100644 --- a/target/linux/starfive/patches-6.18/0001-riscv-dts-starfive-Add-full-support-except-VIN-and-V.patch +++ b/target/linux/starfive/patches-6.18/0001-riscv-dts-starfive-Add-full-support-except-VIN-and-V.patch @@ -51,7 +51,7 @@ Signed-off-by: Hal Feng &mmc0 { non-removable; }; -@@ -65,3 +83,85 @@ +@@ -69,3 +87,85 @@ dr_mode = "peripheral"; status = "okay"; }; @@ -147,7 +147,7 @@ Signed-off-by: Hal Feng gmac0_rgmii_rxin: gmac0-rgmii-rxin-clock { compatible = "fixed-clock"; clock-output-names = "gmac0_rgmii_rxin"; -@@ -932,6 +933,26 @@ +@@ -995,6 +996,26 @@ #gpio-cells = <2>; }; diff --git a/target/linux/starfive/patches-6.18/0008-driver-rtc-Add-StarFive-JH7110-rtc-driver.patch b/target/linux/starfive/patches-6.18/0008-driver-rtc-Add-StarFive-JH7110-rtc-driver.patch index abc5d229293..a11a6aba3d1 100644 --- a/target/linux/starfive/patches-6.18/0008-driver-rtc-Add-StarFive-JH7110-rtc-driver.patch +++ b/target/linux/starfive/patches-6.18/0008-driver-rtc-Add-StarFive-JH7110-rtc-driver.patch @@ -16,7 +16,7 @@ Signed-off-by: Hal Feng --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig -@@ -1399,6 +1399,14 @@ config RTC_DRV_NTXEC +@@ -1420,6 +1420,14 @@ config RTC_DRV_NTXEC embedded controller found in certain e-book readers designed by the original design manufacturer Netronix. diff --git a/target/linux/starfive/patches-6.18/1001-riscv-dts-starfive-Enable-Bluetooth-on-JH7100-boards.patch b/target/linux/starfive/patches-6.18/1001-riscv-dts-starfive-Enable-Bluetooth-on-JH7100-boards.patch index b2c3e5189fc..744ddd93f42 100644 --- a/target/linux/starfive/patches-6.18/1001-riscv-dts-starfive-Enable-Bluetooth-on-JH7100-boards.patch +++ b/target/linux/starfive/patches-6.18/1001-riscv-dts-starfive-Enable-Bluetooth-on-JH7100-boards.patch @@ -14,7 +14,7 @@ Signed-off-by: Emil Renner Berthing --- a/arch/riscv/boot/dts/starfive/jh7100-common.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7100-common.dtsi -@@ -289,6 +289,41 @@ +@@ -299,6 +299,41 @@ }; }; @@ -56,7 +56,7 @@ Signed-off-by: Emil Renner Berthing uart3_pins: uart3-0 { rx-pins { pinmux = if (priv->dma_cap.host_dma_width <= 32) gfp |= GFP_DMA32; -@@ -4850,7 +4850,7 @@ static inline void stmmac_rx_refill(stru +@@ -4859,7 +4859,7 @@ static inline void stmmac_rx_refill(stru struct stmmac_rx_queue *rx_q = &priv->dma_conf.rx_queue[queue]; int dirty = stmmac_rx_dirty(priv, queue); unsigned int entry = rx_q->dirty_rx; diff --git a/target/linux/starfive/patches-6.18/1013-dmaengine-dw-axi-dmac-Handle-xfer-start-while-non-id.patch b/target/linux/starfive/patches-6.18/1013-dmaengine-dw-axi-dmac-Handle-xfer-start-while-non-id.patch index a241f9d33ae..a4a84ee82cf 100644 --- a/target/linux/starfive/patches-6.18/1013-dmaengine-dw-axi-dmac-Handle-xfer-start-while-non-id.patch +++ b/target/linux/starfive/patches-6.18/1013-dmaengine-dw-axi-dmac-Handle-xfer-start-while-non-id.patch @@ -28,7 +28,7 @@ Signed-off-by: Curry Zhang } axi_dma_enable(chan->chip); -@@ -1077,6 +1079,14 @@ static noinline void axi_chan_handle_err +@@ -1074,6 +1076,14 @@ static noinline void axi_chan_handle_err axi_chan_name(chan)); goto out; } diff --git a/target/linux/starfive/patches-6.18/1014-dmaengine-dw-axi-dmac-Add-StarFive-JH7100-support.patch b/target/linux/starfive/patches-6.18/1014-dmaengine-dw-axi-dmac-Add-StarFive-JH7100-support.patch index c8f3cd75c65..87d4d9eb1d4 100644 --- a/target/linux/starfive/patches-6.18/1014-dmaengine-dw-axi-dmac-Add-StarFive-JH7100-support.patch +++ b/target/linux/starfive/patches-6.18/1014-dmaengine-dw-axi-dmac-Add-StarFive-JH7100-support.patch @@ -26,7 +26,7 @@ Signed-off-by: Emil Renner Berthing hw_desc->lli->ctl_lo = cpu_to_le32(ctllo); set_desc_src_master(hw_desc); -@@ -1592,7 +1597,11 @@ static int dw_probe(struct platform_devi +@@ -1582,7 +1587,11 @@ static int dw_probe(struct platform_devi * Therefore, set constraint to 1024 * 4. */ dw->dma.dev->dma_parms = &dw->dma_parms; @@ -38,7 +38,7 @@ Signed-off-by: Emil Renner Berthing platform_set_drvdata(pdev, chip); pm_runtime_enable(chip->dev); -@@ -1679,6 +1688,9 @@ static const struct of_device_id dw_dma_ +@@ -1672,6 +1681,9 @@ static const struct of_device_id dw_dma_ .compatible = "intel,kmb-axi-dma", .data = (void *)AXI_DMA_FLAG_HAS_APB_REGS, }, { @@ -50,7 +50,7 @@ Signed-off-by: Emil Renner Berthing }, { --- a/drivers/dma/dw-axi-dmac/dw-axi-dmac.h +++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac.h -@@ -288,7 +288,11 @@ enum { +@@ -287,7 +287,11 @@ enum { #define CH_CTL_L_SRC_MAST BIT(0) /* CH_CFG_H */ diff --git a/target/linux/starfive/patches-6.18/1019-riscv-dts-starfive-Add-JH7100-USB-node.patch b/target/linux/starfive/patches-6.18/1019-riscv-dts-starfive-Add-JH7100-USB-node.patch index 15e88bbd51b..e3663ae97c8 100644 --- a/target/linux/starfive/patches-6.18/1019-riscv-dts-starfive-Add-JH7100-USB-node.patch +++ b/target/linux/starfive/patches-6.18/1019-riscv-dts-starfive-Add-JH7100-USB-node.patch @@ -14,7 +14,7 @@ Signed-off-by: Emil Renner Berthing --- a/arch/riscv/boot/dts/starfive/jh7100-common.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7100-common.dtsi -@@ -447,3 +447,8 @@ +@@ -463,3 +463,8 @@ pinctrl-0 = <&uart3_pins>; status = "okay"; }; diff --git a/target/linux/starfive/patches-6.18/1021-riscv-dts-Add-full-JH7100-Starlight-and-VisionFive-s.patch b/target/linux/starfive/patches-6.18/1021-riscv-dts-Add-full-JH7100-Starlight-and-VisionFive-s.patch index 211dc75997e..60db9c77eb4 100644 --- a/target/linux/starfive/patches-6.18/1021-riscv-dts-Add-full-JH7100-Starlight-and-VisionFive-s.patch +++ b/target/linux/starfive/patches-6.18/1021-riscv-dts-Add-full-JH7100-Starlight-and-VisionFive-s.patch @@ -199,7 +199,7 @@ Signed-off-by: Emil Renner Berthing &gmac { pinctrl-names = "default"; pinctrl-0 = <&gmac_pins>; -@@ -199,6 +268,20 @@ +@@ -227,6 +296,20 @@ }; }; @@ -217,10 +217,10 @@ Signed-off-by: Emil Renner Berthing + }; + }; + - pwm_pins: pwm-0 { - pwm-pins { - pinmux = uart0_pins: uart0-0 { rx-pins { pinmux = }; &i2c1 { -@@ -400,6 +527,44 @@ +@@ -416,6 +543,44 @@ status = "okay"; }; @@ -323,7 +323,7 @@ Signed-off-by: Emil Renner Berthing &sdio0 { broken-cd; bus-width = <4>; -@@ -428,6 +593,18 @@ +@@ -444,6 +609,18 @@ }; }; @@ -819,7 +819,7 @@ Signed-off-by: Emil Renner Berthing uart2: serial@12430000 { compatible = "starfive,jh7100-uart", "snps,dw-apb-uart"; reg = <0x0 0x12430000 0x0 0x10000>; -@@ -454,5 +822,26 @@ +@@ -517,5 +885,26 @@ reset-names = "sense", "bus"; #thermal-sensor-cells = <0>; }; diff --git a/target/linux/sunxi/patches-6.18/806-clk-sunxi-ng-add-A523-USB3-ref-clock-and-reset.patch b/target/linux/sunxi/patches-6.18/806-clk-sunxi-ng-add-A523-USB3-ref-clock-and-reset.patch index 309926d4907..9e0b662ceb0 100644 --- a/target/linux/sunxi/patches-6.18/806-clk-sunxi-ng-add-A523-USB3-ref-clock-and-reset.patch +++ b/target/linux/sunxi/patches-6.18/806-clk-sunxi-ng-add-A523-USB3-ref-clock-and-reset.patch @@ -11,7 +11,7 @@ Signed-off-by: Marvin Wewer --- a/drivers/clk/sunxi-ng/ccu-sun55i-a523.c +++ b/drivers/clk/sunxi-ng/ccu-sun55i-a523.c -@@ -1186,6 +1186,15 @@ static SUNXI_CCU_MUX_DATA_WITH_GATE(fano +@@ -1172,6 +1172,15 @@ static SUNXI_CCU_MUX_DATA_WITH_GATE(fano BIT(23), /* gate */ 0); @@ -27,7 +27,7 @@ Signed-off-by: Marvin Wewer /* * Contains all clocks that are controlled by a hardware register. They * have a (sunxi) .common member, which needs to be initialised by the common -@@ -1354,6 +1363,7 @@ static struct ccu_common *sun55i_a523_cc +@@ -1340,6 +1349,7 @@ static struct ccu_common *sun55i_a523_cc &fanout0_clk.common, &fanout1_clk.common, &fanout2_clk.common, @@ -35,7 +35,7 @@ Signed-off-by: Marvin Wewer }; static struct clk_hw_onecell_data sun55i_a523_hw_clks = { -@@ -1538,8 +1548,9 @@ static struct clk_hw_onecell_data sun55i +@@ -1524,8 +1534,9 @@ static struct clk_hw_onecell_data sun55i [CLK_FANOUT1] = &fanout1_clk.common.hw, [CLK_FANOUT2] = &fanout2_clk.common.hw, [CLK_NPU] = &npu_clk.common.hw,