]> git.ipfire.org Git - thirdparty/openwrt.git/log
thirdparty/openwrt.git
3 months agoqualcommax: ipq50xx: refresh config
Robert Marko [Mon, 30 Mar 2026 17:15:03 +0000 (19:15 +0200)] 
qualcommax: ipq50xx: refresh config

Refresh qualcommax/ipq50xx config.

Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agorealtek: add support for D-Link DGS-1250-28X 22530/head
Markus Stockhausen [Fri, 20 Mar 2026 19:40:16 +0000 (20:40 +0100)] 
realtek: add support for D-Link DGS-1250-28X

Hardware specification
----------------------

* RTL9301 SoC, 1 MIPS 34KEc core @ 800MHz
* 512MB DRAM
* 64MB NAND Flash
* 24 x 10/100/1000BASE-T ports
* 4 x 10G SFP+ ports
* Power LED, Console LED, Fan Fault LED
* Reset button on front panel
* LM75 temperature sensor
* Atmel AT24C02 2kb eeprom
* fan (controllable via gpio for on/off and LM75 for low/high speed)
* UART (115200 8N1) via RJ45

Installation using serial interface
-----------------------------------

 1. Prepare TFTP server & connect to serial port.
 2. Connect DGS-1250 to your computer or network with one of the
    1G ports. All of them will be fine.
 3. Power on DGS-1250 and interrupt autoboot with "&".
 4. Change U-Boot startup sequence
> setenv silent
> setenv bootcmd 'cp.l 0xb4200000 0x84000000 0x300000; bootm 0x84000000'
> saveenv
 5. Enable networking within U-Boot.
> rtk network on
 6. Set switch IP and TFTP server IP (optional, adjust to your setup).
> setenv ipaddr <ip>
> setenv serverip <ip>
 7. Download initramfs image from TFTP server.
> tftpboot 0x84000000 <image name>
 8. Boot with the downloaded image.
> bootm 0x84000000
 9. With rambooted OpenWrt, backup the stock firmware.
    THIS IS CRITICAL! /dev/mtd3 contains data that is not provided
    in the downloadable vendor firmware images.
10. Copy sysupgrade image to the device.
11. Perform sysupgrade with the sysupgrade image.
12. After reboot, you should have functional OpenWrt.

Installation using OEM webinterface
-----------------------------------

This is not possible because the vendor image uses a ubifs based
loading technique with encrypted images. To be precise the boot
sequence basically runs as follows.

 1. U-Boot starts
 2. U-Boot mounts 62MB ubifs from mtd3
 3. U-Boot reads Linux kernel from file uImage inside ubifs
 4. Linux starts (this is a initramfs image)
 5. Linux mounts ubifs
 6. Linux calls a loader binary
 7. Depending on current configuration first (file Image1) or
    second firmware image (file Image2) is loaded and decrypted
 8. Inside the decrpyted firmware image there is a executable
    named “switch”
 9. "switch" executable is run and the switch comes alive

Reverting to stock firmware
---------------------------

 1. Boot OpenWrt from initramfs (like in installation section above)
 2. Restore partition /dev/mtd3 from backup
 3. Erase Openwrt special U-Boot env
# mtd erase mtd1
 4. reboot

Further information
-------------------

Wiki: https://openwrt.org/toh/d-link/dgs-1250
Forum: https://forum.openwrt.org/t/support-for-d-link-dgs-1250-switches
Partition dumps: https://github.com/plappermaul/realtek-doc/tree/main/DGS-1250

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22530
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 months agoqualcommax: ipq60xx: refresh config
Robert Marko [Mon, 30 Mar 2026 16:54:57 +0000 (18:54 +0200)] 
qualcommax: ipq60xx: refresh config

Refresh qualcommax/ipq60xx config.

Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agoqualcommax: refresh config
Robert Marko [Mon, 30 Mar 2026 16:49:43 +0000 (18:49 +0200)] 
qualcommax: refresh config

Refresh the qualcommax generic config.

Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agogeneric: filter out CONFIG_TOOLS_SUPPORT_RELR
Robert Marko [Mon, 30 Mar 2026 16:40:08 +0000 (18:40 +0200)] 
generic: filter out CONFIG_TOOLS_SUPPORT_RELR

CONFIG_TOOLS_SUPPORT_RELR is set during runtime by the kernel so it should
not end up in our static configs.

So, filter it out by default.

Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agogeneric: add missing MXL862 DSA symbols
Robert Marko [Mon, 30 Mar 2026 16:37:07 +0000 (18:37 +0200)] 
generic: add missing MXL862 DSA symbols

If DSA support is enabled, then these will pop up.
So instead of ending up in target configs, add them to the generic configs.

Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agorealtek: mdio-serdes: reorganize RTL839x TGRX0/1 pages 22633/head
Markus Stockhausen [Fri, 27 Mar 2026 12:31:18 +0000 (13:31 +0100)] 
realtek: mdio-serdes: reorganize RTL839x TGRX0/1 pages

The four TGRX pages are currently mapped into the page range 4-7 for even
10G serdes. This is only partly right. TGRX0/1 better aligns with RTL93xx
pages TGX_STD_0/TGX_STD_1. Change the mapping. No code update needed as
the pages are not yet used anywhere.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22633
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 months agorealtek: mdio-serdes: reorganize RTL839x ANA_RG pages
Markus Stockhausen [Fri, 27 Mar 2026 09:43:57 +0000 (10:43 +0100)] 
realtek: mdio-serdes: reorganize RTL839x ANA_RG pages

The ANA_RG pages of the RTL839x SerDes are a wild mix of WDIG, ANA_MISC
and ANA_1G2 data. Its current mapping to the TGX_STD_0 register does
not match at all. From the coding it makes most sense to remap it to the
ANA_1G2/ANA_1G2_EXT range. Adapt all consumers in the pcs driver
accordingly.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22633
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 months agorealtek: mdio-serdes: reorgnaize RTL839x ANA_10G pages
Markus Stockhausen [Fri, 27 Mar 2026 08:38:46 +0000 (09:38 +0100)] 
realtek: mdio-serdes: reorgnaize RTL839x ANA_10G pages

With all the recent development about RTL93xx serdes it has become
clear that the RTL839x ANA_TG page mapping is not perfect. Until
know it is mapped to pages 10/11. As its naming suggests these are
serdes analogous register settings for 10G. Map it to the appropriate
ANA_10G pages to align better with RTL93xx. Adapt all consumers
in the pcs driver accordingly.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22633
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 months agorealtek: mdio-serdes: rename debug serdes pages
Markus Stockhausen [Fri, 27 Mar 2026 06:57:51 +0000 (07:57 +0100)] 
realtek: mdio-serdes: rename debug serdes pages

The initial page naming of the debugfs page registers in the mdio
serdes driver was a mix of RTL839x and RTL93xx. Developing the
Realtek pcs driver, it was discovered that the RTL93xx IP block
shares a lot of the registers with the RTL8295 PHY.

The RTL839x serdes development is quite okay and currently on hold.
Thus drop the RTL839x derived page names and substitute them for
their RTL93xx counterpart.

This is only a cosmetic change for better readability.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22633
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 months agorealtek: dts: cleanup of ethernet link speed 22639/head
Markus Stockhausen [Sat, 28 Mar 2026 07:43:34 +0000 (08:43 +0100)] 
realtek: dts: cleanup of ethernet link speed

Realtek switches have a very simple network adapter for the SOC.
They can ship packets via DMA without further offloading features.
Even on the RTL931x devices they can barely reach 50MB/s. In the
dts there is a mix of 1G/10G definitions. To be consistent and
better reflect the performance set the link speed to 1000.
This is only cosmetic.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22639
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 months agokernel: bump 6.12 to 6.12.79 22607/head
John Audia [Fri, 27 Mar 2026 19:58:47 +0000 (15:58 -0400)] 
kernel: bump 6.12 to 6.12.79

Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.79

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/22607
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 months agokernel: bump 6.12 to 6.12.78
John Audia [Wed, 25 Mar 2026 12:15:25 +0000 (08:15 -0400)] 
kernel: bump 6.12 to 6.12.78

Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.78

Removed upstreamed:
  generic/pending-6.12/620-net-sfp-improve-Huawei-MA5671a-fixup.patch[1]
  generic/pending-6.12/704-net-phy-register-phy-led_triggers-during-probe-to-av.patch[2]
  airoha/patches-6.12/014-01-v6.13-net-airoha-fix-PSE-memory-configuration-in-airoha_fe.patch[3]
  airoha/patches-6.12/014-02-v6.13-net-airoha-read-default-PSE-reserved-pages-value-bef.patch[4]
  airoha/patches-6.12/031-01-v6.13-net-airoha-Read-completion-queue-data-in-airoha_qdma.patch[5]
  airoha/patches-6.12/128-v7.1-net-airoha-Remove-airoha_dev_stop-in-airoha_remove.patch[6]

Manually rebased:
  airoha/patches-6.12/048-01-v6.15-net-airoha-Move-airoha_eth-driver-in-a-dedicated-fol.patch

All patches automatically rebased.

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.78&id=bbdf6d378e1ddbeadc04c57b182aadefcc3aa917
2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.78&id=241cd64cf2e32b28ead151b1795cd8fef2b6e482
3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.78&id=a04ac7bc97afe313e10ae4c73797c668dee47c5c
4. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.78&id=a9ed47c3663219e20406d566f02809de05373a42
5. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.78&id=4cba4373abac7ba27fdb33057a29b92efa8fd15d
6. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.78&id=652ec118d8dc1b088e685d5562995b6665463771

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/22607
[Fix 048-01-v6.15-net-airoha-Move-airoha_eth-driver-in-a-dedicated-fol]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 months agoairoha: an7581: drop airoha,x2-mode related property and enable in device
Christian Marangi [Mon, 30 Mar 2026 10:17:50 +0000 (12:17 +0200)] 
airoha: an7581: drop airoha,x2-mode related property and enable in device

Drop airoha,x2-mode related property from the DTSI and enable them only in
the relevant devices that use a PCIe0 line. x2-mode should be enabled only
for the WiFi card that would use it as it might cause problem for WiFi card
that expect 2 single PCIe x1 line instead of a single PCIe x2 line.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
3 months agomxs: enable 6.18 testing kernel
Zoltan HERPAI [Sun, 8 Feb 2026 22:19:54 +0000 (22:19 +0000)] 
mxs: enable 6.18 testing kernel

The mxs target now supports 6.18 kernel as testing.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 months agogeneric/6.18: add missing config symbols
Zoltan HERPAI [Sun, 8 Feb 2026 22:19:34 +0000 (22:19 +0000)] 
generic/6.18: add missing config symbols

These were discovered when migrating mxs to 6.18.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 months agokernel/mxs: restore files for v6.12
Zoltan HERPAI [Sun, 8 Feb 2026 17:11:33 +0000 (17:11 +0000)] 
kernel/mxs: restore files for v6.12

This is an automatically generated commit which aids following Kernel patch
history, as git will see the move and copy as a rename thus defeating the
purpose.

For the original discussion see:
https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 months agokernel/mxs: create files for v6.18 (from v6.12)
Zoltan HERPAI [Sun, 8 Feb 2026 17:11:33 +0000 (17:11 +0000)] 
kernel/mxs: create files for v6.18 (from v6.12)

This is an automatically generated commit.

When doing `git bisect`, consider `git bisect --skip`.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
3 months agoramips: mt7621: disable CONFIG_LIST_HARDENED 22672/head
Rany Hany [Sun, 29 Mar 2026 15:17:48 +0000 (15:17 +0000)] 
ramips: mt7621: disable CONFIG_LIST_HARDENED

It appears that CONFIG_LIST_HARDENED causes the system to
hang when restarted. I was unable to determine the cause
of the crash so disabling CONFIG_LIST_HARDENED seems like
an acceptable workaround for the time being.

The issue only occurs on reboot.

Fixes: https://github.com/openwrt/openwrt/issues/20099
Signed-off-by: Rany Hany <rany_hany@riseup.net>
Link: https://github.com/openwrt/openwrt/pull/22672
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agokernel: 6.18: backport mxl862xx driver for Linxu 6.18 22668/head
Daniel Golle [Sun, 29 Mar 2026 11:37:34 +0000 (12:37 +0100)] 
kernel: 6.18: backport mxl862xx driver for Linxu 6.18

The signature of phylink_pcs get_state has changed, and we need to set
.supported_interfaces.

Both has been removed when backporting the driver to Linux 6.12, readd
to make it build and work with Linux 6.18.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Link: https://github.com/openwrt/openwrt/pull/22668
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agorealtek: add patch to extend upstream sfp smbus support 21181/head
Jonas Jelonek [Sat, 27 Dec 2025 23:10:51 +0000 (23:10 +0000)] 
realtek: add patch to extend upstream sfp smbus support

Add patches that extends the upstream smbus support in sfp driver. This
only supports SMBus byte operations and in that case, disables hwmon and
prints warnings because of that. Using the word/block capability of our
I2C controller is totally fine for all that functionality.

The patches are currently pending upstream.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21181
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agorealtek: dsa: 6.18: adjust mac ops and callbacks
Jonas Jelonek [Sun, 30 Nov 2025 12:34:33 +0000 (12:34 +0000)] 
realtek: dsa: 6.18: adjust mac ops and callbacks

Between 6.12 and 6.18, several DSA switch ops have changed.
phylink_mac_* ops were moved out of dsa_switch_ops into dsa_switch using
phylink_mac_ops. Add new definitions for that and adjust the callbacks
accordingly to work with the different signatures.

get_mac_eee() has been dropped and support_eee() was added.

remove_new() has been dropped completely, allowing us to use remove()
again.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21181
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agorealtek: pcs: 6.18: fix neg_mode handling
Jonas Jelonek [Sun, 30 Nov 2025 12:26:15 +0000 (12:26 +0000)] 
realtek: pcs: 6.18: fix neg_mode handling

Between 6.12 and 6.18, neg_mode moved from struct phylink_pcs to a
parameter passed to pcs_get_state. Adjust the implementation
accordingly.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21181
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agorealtek: phy: 6.18: drop shared priv access helper
Jonas Jelonek [Sun, 30 Nov 2025 10:40:39 +0000 (10:40 +0000)] 
realtek: phy: 6.18: drop shared priv access helper

Between v6.12 and v6.18, struct phy_package_shared was moved from
include/linux/phylib.h to drivers/net/phy/phy_package.c and thus made
internal/unavailable for other drivers.

Our PHY driver used a helper to access the shared priv. With v6.18, it
doesn't work anymore (due to missing access to internal fields of struct
phy_package_shared) but upstream has an equivalent helper for that. Drop
ours and use the upstream helper.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21181
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agorealtek: phy: 6.18: switch to sfp module caps
Jonas Jelonek [Tue, 16 Dec 2025 16:51:22 +0000 (16:51 +0000)] 
realtek: phy: 6.18: switch to sfp module caps

Kernel 6.18 uses dedicated sfp_module_caps instead of a plain bitmask
for supported modes. Switch to that the fix the rtl83xx-phy driver.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21181
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agorealtek: add missing symbols for 6.18
Jonas Jelonek [Sun, 30 Nov 2025 00:03:53 +0000 (00:03 +0000)] 
realtek: add missing symbols for 6.18

Add missing symbols to default config by running make kernel_oldconfig
and using default options for all unanswered symbols.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21181
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agorealtek: 6.18: adapt and refresh remaining patches
Jonas Jelonek [Sat, 14 Feb 2026 21:46:44 +0000 (21:46 +0000)] 
realtek: 6.18: adapt and refresh remaining patches

Refresh and adapt the remaining patches as needed.

- 024-02-v7.1-net-phy-realtek-add-RTL8224-pair-order-support.patch
  needed addition of '#include "../phylib.h"'
- 314-irqchip-irq-realtek-rtl-add-VPE-support.patch needed manual
adoption
- 700-dsa-mdio-increase-max-ports-for-rtl839x-rtl931x.patch needed
  manual fix
- 810-lm75-alert-polarity-swap.patch needed adoption to changed probe
  function upstream

All other patches were automatically refreshed.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21181
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agorealtek: 6.18: adapt SFP SMBus patches
Jonas Jelonek [Wed, 21 Jan 2026 23:26:28 +0000 (23:26 +0000)] 
realtek: 6.18: adapt SFP SMBus patches

Adapt our downstream patches for SMBus SFP functionality to kernel 6.18.
Upstream gained support for SMBus byte access on SFP and a patch to
extend that to word and block access is pending.

These downstream patches aren't acceptable for upstream and will need to
be adapted. However, keep them for now to maintain functionality.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21181
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agorealtek: 6.18: remove obsolete patches
Jonas Jelonek [Wed, 21 Jan 2026 23:17:04 +0000 (23:17 +0000)] 
realtek: 6.18: remove obsolete patches

Remove patches which are accepted upstream and were backported to
pre-6.18. Those are obsolete now.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21181
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agorealtek: add v6.18 as testing kernel
Jonas Jelonek [Sun, 30 Nov 2025 00:00:16 +0000 (00:00 +0000)] 
realtek: add v6.18 as testing kernel

Add kernel v6.18 as testing kernel for realtek target.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21181
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agokernel/realtek: restore files for v6.12
Jonas Jelonek [Sat, 28 Mar 2026 19:41:46 +0000 (19:41 +0000)] 
kernel/realtek: restore files for v6.12

This is an automatically generated commit which aids following Kernel patch
history, as git will see the move and copy as a rename thus defeating the
purpose.

For the original discussion see:
https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21181
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agokernel/realtek: create files for v6.18 (from v6.12)
Jonas Jelonek [Sat, 28 Mar 2026 19:41:46 +0000 (19:41 +0000)] 
kernel/realtek: create files for v6.18 (from v6.12)

This is an automatically generated commit.

When doing `git bisect`, consider `git bisect --skip`.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21181
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agomicrochipsw: add 6.18 testing kernel 22649/head
Robert Marko [Sat, 28 Mar 2026 11:28:48 +0000 (12:28 +0100)] 
microchipsw: add 6.18 testing kernel

Add the 6.18 kernel config and allow selecting it as testing kernel.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
3 months agomicrochipsw: 6.18: refresh patches
Robert Marko [Sat, 28 Mar 2026 16:26:40 +0000 (17:26 +0100)] 
microchipsw: 6.18: refresh patches

Refresh the patches for 6.18 so they apply.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
3 months agomicrochipsw: 6.18: drop upstreamed patches
Robert Marko [Sat, 28 Mar 2026 16:26:04 +0000 (17:26 +0100)] 
microchipsw: 6.18: drop upstreamed patches

Drop patches that were upstead into 6.18 or earlier.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
3 months agokernel/microchipsw: restore files for v6.12
Robert Marko [Sat, 28 Mar 2026 11:27:35 +0000 (12:27 +0100)] 
kernel/microchipsw: restore files for v6.12

This is an automatically generated commit which aids following Kernel patch
history, as git will see the move and copy as a rename thus defeating the
purpose.

For the original discussion see:
https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
3 months agokernel/microchipsw: create files for v6.18 (from v6.12)
Robert Marko [Sat, 28 Mar 2026 11:27:34 +0000 (12:27 +0100)] 
kernel/microchipsw: create files for v6.18 (from v6.12)

This is an automatically generated commit.

When doing `git bisect`, consider `git bisect --skip`.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
3 months agomicrochipsw: lan969x: make kernel config version specific
Robert Marko [Sat, 28 Mar 2026 16:24:03 +0000 (17:24 +0100)] 
microchipsw: lan969x: make kernel config version specific

As preparation for enabling 6.18 kernel, rename the existing config to a
version specific 6.12 config.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
3 months agoqualcommax: ipq807x: DL-WRX36 use mac from art 22622/head
Paweł Owoc [Tue, 24 Mar 2026 10:10:25 +0000 (11:10 +0100)] 
qualcommax: ipq807x: DL-WRX36 use mac from art

MAC addresses are located at the beginning of the art partition.
Some units do not have MAC addresses in the u-boot variables.

Signed-off-by: Paweł Owoc <frut3k7@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22622
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agoqualcommax: qpic only support max 4 bytes ID 21021/head
Ziyang Huang [Tue, 2 Dec 2025 14:28:10 +0000 (22:28 +0800)] 
qualcommax: qpic only support max 4 bytes ID

QPIC use a reg (NAND_READ_ID) to transport the ID, so the max bytes of ID is a word (4Bytes).

https://github.com/torvalds/linux/blob/3a8660878839faadb4f1a6dd72c3179c1df56787/drivers/mtd/nand/raw/qcom_nandc.c#L1783
https://github.com/torvalds/linux/blob/4a26e7032d7d57c998598c08a034872d6f0d3945/drivers/spi/spi-qpic-snand.c#L1392-L1393

Signed-off-by: Ziyang Huang <hzyitc@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/21021
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agogeneric: 6.18: disable CONFIG_ROCKCHIP_ERRATUM_3568002
Robert Marko [Sat, 28 Mar 2026 16:50:48 +0000 (17:50 +0100)] 
generic: 6.18: disable CONFIG_ROCKCHIP_ERRATUM_3568002

CONFIG_ROCKCHIP_ERRATUM_3568002 should be disabled in the generic config.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
3 months agogeneric: 6.18: disable CONFIG_AMPERE_ERRATUM_AC04_CPU_23
Robert Marko [Sat, 28 Mar 2026 16:49:50 +0000 (17:49 +0100)] 
generic: 6.18: disable CONFIG_AMPERE_ERRATUM_AC04_CPU_23

CONFIG_AMPERE_ERRATUM_AC04_CPU_23 should be disabled in generic config.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
3 months agogeneric: 6.18: disable CONFIG_ARCH_SOPHGO
Robert Marko [Sat, 28 Mar 2026 16:44:24 +0000 (17:44 +0100)] 
generic: 6.18: disable CONFIG_ARCH_SOPHGO

CONFIG_ARCH_SOPHGO should be disabled in the generic config.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
3 months agogeneric: 6.18: disable CONFIG_ARCH_CIX
Robert Marko [Sat, 28 Mar 2026 16:43:14 +0000 (17:43 +0100)] 
generic: 6.18: disable CONFIG_ARCH_CIX

CONFIG_ARCH_CIX should be disabled in the generic config.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
3 months agogeneric: 6.18: disable CONFIG_ARCH_BLAIZE
Robert Marko [Sat, 28 Mar 2026 16:42:44 +0000 (17:42 +0100)] 
generic: 6.18: disable CONFIG_ARCH_BLAIZE

CONFIG_ARCH_BLAIZE should be disabled in the generic config.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
3 months agogeneric: 6.18: disable CONFIG_ARCH_AXIADO
Robert Marko [Sat, 28 Mar 2026 16:41:49 +0000 (17:41 +0100)] 
generic: 6.18: disable CONFIG_ARCH_AXIADO

CONFIG_ARCH_AXIADO should be disabled in the generic config.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
3 months agogeneric: 6.18: disable CONFIG_AMD_SBRMI_I2C
Robert Marko [Sat, 28 Mar 2026 16:40:22 +0000 (17:40 +0100)] 
generic: 6.18: disable CONFIG_AMD_SBRMI_I2C

CONFIG_AMD_SBRMI_I2C should be disabled in generic config.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
3 months agokernel: refresh patches for 6.18.20 13333/head 22643/head
John Audia [Sat, 28 Mar 2026 11:22:43 +0000 (07:22 -0400)] 
kernel: refresh patches for 6.18.20

Sole patch automatically rebased.

Build system: x86/64
Build-tested: x86/64-glibc
Run-tested: x86/64-glibc

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/22643
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agomicrochipsw: tactical-1000: expand FIP partition size
Robert Marko [Fri, 20 Mar 2026 13:23:16 +0000 (14:23 +0100)] 
microchipsw: tactical-1000: expand FIP partition size

Expand the FIP partition size to future proof and allow custom firmware
to be used as BL31 instead of U-Boot.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
3 months agokernel: refresh patches 21078/head
John Audia [Tue, 20 Jan 2026 13:51:20 +0000 (08:51 -0500)] 
kernel: refresh patches

x86 patches automatically rebased

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agox86: make CONFIG_NR_CPUS a tunable (2-512)
John Audia [Sun, 4 Jan 2026 15:31:43 +0000 (10:31 -0500)] 
x86: make CONFIG_NR_CPUS a tunable (2-512)

Add KERNEL_NR_CPUS option in Global build settings → Kernel build
options, allowing users to set maximum CPU count (2-512) for the image.

Defaults:
- x86_64: 512 CPUs (backward compatible)
- x86: 8 CPUs (fix broken single-CPU default)

Per-CPU data structures consume ~100-200KB each.
On a 4-core system configured to NR_CPUS=4, this frees approx 76 MB
of RAM: (512 - 4) × 150 KB = ~76 MB

Note: CONFIG_NR_CPUS_RANGE_{BEGIN,END}= and CONFIG_NR_CPUS_DEFAULT= are
set by the build system and will default to 2/512/64 per arch/x86/Kconfig
These are harmless metadata and don't affect memory allocation.

Note pending https://github.com/openwrt/openwrt/pull/21407

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agox86/64: 6.18: enable recent MITIGATION options
John Audia [Mon, 5 Jan 2026 20:02:37 +0000 (15:02 -0500)] 
x86/64: 6.18: enable recent MITIGATION options

These mitigations are low-overhead, upstream-supported hardening options
that only activate on CPUs affected by their respective vulnerabilities.
Enabling them provides consistent, defense-in-depth coverage across Intel
and AMD systems without impacting unaffected hardware.

Detailed list:
- CONFIG_MITIGATION_SRSO to guard against known a vulnerability found on
  AMD processors (Zen generations 1-4) for sure, maybe others. This is
  tracked under CVE-2023-20569.
- CONFIG_MITIGATION_ITS to guard against a bug in BPU on some Intel CPUs
  that may allow Spectre V2 style attacks. We never enabled this option
  (and its dependencies).
- CONFIG_MITIGATION_SRBDS to guard against Special Register Buffer Data
  Sampling on affected Intel CPUs (CVE-2020-0543), preventing cross-core
  leakage of RDRAND/RDSEED/EGETKEY values.
- CONFIG_MITIGATION_SLS to guard against Spectre-v4 gadgets on x86 by
  inserting speculation barriers around RET/JMP/CALL sites when required
  by CPU/microcode state.
- CONFIG_MITIGATION_CALL_DEPTH_TRACKING to guard against speculative
  call-stack underflow on x86 by enabling hardware-assisted depth
  tracking where supported, reducing exposure to RET-based misprediction
  attacks.
- CONFIG_MITIGATION_UNRET_ENTRY to guard against RET-based speculation
  attacks on x86 by replacing vulnerable function returns in kernel
  entry paths with UNRET sequences when required by CPU/microcode state.

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agox86/64: 6.18: enable THP (disabled by default)
John Audia [Sun, 8 Feb 2026 12:58:52 +0000 (07:58 -0500)] 
x86/64: 6.18: enable THP (disabled by default)

Users can opt-in to THP via builtin tunables under:
/sys/kernel/mm/transparent_hugepage/enabled

Useful if using running VMs on the device.

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agox86: 6.18: import new options
John Audia [Sat, 13 Dec 2025 21:07:28 +0000 (16:07 -0500)] 
x86: 6.18: import new options

Some options here were identified by running:
make kernel_oldconfig while others were manually added from a list
curated by hand at build time.

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agortl8812au-ct: restrict to kernels ≤ 6.18
John Audia [Fri, 2 Jan 2026 16:55:24 +0000 (11:55 -0500)] 
rtl8812au-ct: restrict to kernels ≤ 6.18

The rtl8812au-ct driver is obsolete and replaced by rtw88. It will need
tons of work to compile against 6.18 so for now limit it to 6.12.

Co-authored-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agokernel: video: 6.18: update module files
John Audia [Fri, 19 Dec 2025 15:41:57 +0000 (10:41 -0500)] 
kernel: video: 6.18: update module files

Update module files for kernel 6.18

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agokernel: sound: 6.18: update module files
John Audia [Sun, 21 Dec 2025 14:00:35 +0000 (09:00 -0500)] 
kernel: sound: 6.18: update module files

This kernel reorganized HDA drivers into sound/hda/ subdirectories and
split codec drivers into modular components. Core modules moved to
sound/hda/{core,common,codecs,controllers}/ with version conditionals
(@ge6.18/@lt6.18) added for backward compatibility.

Codec drivers split into multiple modules:
- Realtek: library + 10 chipset modules (ALC260-ALC882)
- HDMI: base + 6 vendor modules (Intel, ATI, NVIDIA, etc.)
- Cirrus: 3 chipset modules (CS420X, CS421X, CS8409)

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agokernel: other: 6.18: update module files
John Audia [Fri, 19 Dec 2025 15:25:25 +0000 (10:25 -0500)] 
kernel: other: 6.18: update module files

Update module files for kernel 6.18

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agokernel: modules: 6.18: update module file
John Audia [Thu, 5 Feb 2026 20:13:15 +0000 (15:13 -0500)] 
kernel: modules: 6.18: update module file

Wrap the crc32c dependency in !LINUX_6_18 to allow the package to
build correctly on 6.18-based targets.

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agox86: enable testing kernel for x86
John Audia [Sat, 13 Dec 2025 15:49:14 +0000 (10:49 -0500)] 
x86: enable testing kernel for x86

KERNEL_TESTING_PATCHVER:=6.18

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agokernel/x86: restore files for v6.12
John Audia [Sat, 28 Mar 2026 09:38:05 +0000 (05:38 -0400)] 
kernel/x86: restore files for v6.12

This is an automatically generated commit which aids following Kernel patch
history, as git will see the move and copy as a rename thus defeating the
purpose.

For the original discussion see:
https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agokernel/x86: create files for v6.18 (from v6.12)
John Audia [Sat, 28 Mar 2026 09:38:05 +0000 (05:38 -0400)] 
kernel/x86: create files for v6.18 (from v6.12)

This is an automatically generated commit.

When doing `git bisect`, consider `git bisect --skip`.

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agokernel: usb-dwc3-qcom: package legacy Qualcomm glue driver
Til Kaiser [Wed, 11 Mar 2026 20:36:59 +0000 (21:36 +0100)] 
kernel: usb-dwc3-qcom: package legacy Qualcomm glue driver

Linux 6.18 now builds both dwc3-qcom.ko and dwc3-qcom-legacy.ko
under CONFIG_USB_DWC3_QCOM. [1]

Upstream qcom-ipq4019.dtsi still uses the legacy Qualcomm DWC3 DT
layout, so ipq40xx boards require the legacy glue driver for USB
host bring-up.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b958b03c82d2a1c470225355e43248c679a949a5

Signed-off-by: Til Kaiser <mail@tk154.de>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agomt76: use hrtimer_setup() in mt76x02u beacon init
Mieczyslaw Nalewaj [Thu, 29 Jan 2026 15:48:20 +0000 (16:48 +0100)] 
mt76: use hrtimer_setup() in mt76x02u beacon init

Replace the two-step hrtimer initialization pattern with a single
consolidated call to hrtimer_setup().
The legacy approach of calling hrtimer_init() followed by manual
assignment to timer.function is deprecated. The new hrtimer_setup()
helper atomically initializes the timer and assigns the callback
function in one operation, eliminating the race-prone intermediate
state where the timer is initialized but lacks a handler.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agokernel.mk: add 6.18 workaround for empty Module.symvers.tmp
Til Kaiser [Mon, 26 Jan 2026 18:48:47 +0000 (19:48 +0100)] 
kernel.mk: add 6.18 workaround for empty Module.symvers.tmp

On Linux 6.18 the path-based symvers filter can
yield an empty tmp file for external modules.

Add a 6.18-only fallback using modules.order
to populate Module.symvers.tmp.

Signed-off-by: Til Kaiser <mail@tk154.de>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agomac80211: ath9k: gpio: adapt to 6.16+ gpio_chip API change
Mieczyslaw Nalewaj [Wed, 24 Dec 2025 22:01:16 +0000 (23:01 +0100)] 
mac80211: ath9k: gpio: adapt to 6.16+ gpio_chip API change

Linux 6.16 changed the return type of gpio_chip.set() from void to int.
Add a version check so the driver builds correctly on both older and
newer kernels[1].

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.16&id=fb52f3226cab41b94f9e6ac92b1108bce324e700

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agomac80211: restore pre-6.14 debugfs_fops handling
Mieczyslaw Nalewaj [Wed, 24 Dec 2025 21:24:32 +0000 (22:24 +0100)] 
mac80211: restore pre-6.14 debugfs_fops handling

Reintroduce old-style debugfs file_operations for kernels < 6.14 and
switch the drivers to use debugfs_short_fops + debugfs_create_file_aux
on >= 6.14. This restores compatibility with older kernels while keeping
the new debugfs API working on 6.14+.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agomac80211: fix build failure on kernel 6.18
Mieczyslaw Nalewaj [Thu, 25 Dec 2025 17:40:35 +0000 (18:40 +0100)] 
mac80211: fix build failure on kernel 6.18

Kernel since version 6.16 defines `SOCKWQ_ASYNC_NOSPACE` and
SOCKWQ_ASYNC_WAITDATA` in the socket_flags enum, which causes redefinition
errors when compiling the backport package[1].
Since kernel 6.12 also has them defined, the test and definition of these
constants have been completely abandoned. Thanks to this, there are
no compilation errors on either kernel 6.12 or 6.18.

1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.16&id=0e81cfd971dc4833c699dcd8924e54a5021bc4e8

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agoplatform/mikrotik: adjust hc_wlan read-callback for 6.18
Mieczyslaw Nalewaj [Fri, 9 Jan 2026 16:07:56 +0000 (17:07 +0100)] 
platform/mikrotik: adjust hc_wlan read-callback for 6.18

Include <linux/version.h> and use preprocessor checks to select the appropriate
prototype and definition for hc_wlan_data_bin_read. The third parameter of bin_attribute
read callbacks was changed to 'const struct bin_attribute *' in Linux 6.18; this
change prevents compilation errors on newer kernels while preserving compatibility
with older ones

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agogeneric: 6.18: silence unused-variable warnings
Mieczyslaw Nalewaj [Wed, 7 Jan 2026 00:38:03 +0000 (01:38 +0100)] 
generic: 6.18: silence unused-variable warnings

This patch silences compiler warnings about unused variables by explicitly
casting them to void where appropriate.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agokbuild: extract modules.builtin.modinfo from vmlinux.o
Mieczyslaw Nalewaj [Tue, 16 Dec 2025 19:18:18 +0000 (20:18 +0100)] 
kbuild: extract modules.builtin.modinfo from vmlinux.o

Partially reverse https://web.git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.18.y&id=39cfd5b12160be4f57df1c3ba60139741c827616
to prevent generation of empty modules.builtin.modinfo and modules.builtin
files that cause modules compilation errors.
If an out-of-tree package or any kernel-install rule ran modprobe xyz while
the build was still in progress, and xyz had been configured =y, a clean tree
would already have xyz listed in modules.builtin; with the empty file produced
by the buggy rule it was missing, so modprobe emitted "module xyz not found"
even though the code was sitting inside the freshly built vmlinux.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agopackages: 6.18: update modules files
Mieczyslaw Nalewaj [Sat, 20 Dec 2025 12:21:06 +0000 (13:21 +0100)] 
packages: 6.18: update modules files

Update modules files for kernel 6.18.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agoserial: 8250: 6.18: add UPIO_AU case to set_io_from_upio()
Mieczyslaw Nalewaj [Sun, 18 Jan 2026 14:24:46 +0000 (15:24 +0100)] 
serial: 8250: 6.18: add UPIO_AU case to set_io_from_upio()

This patch fixes the "Unsupported UART type 4" error by adding support
for the UPIO_AU I/O type in set_io_from_upio() (used by Au1x00 and
RT288x). It assigns the correct serial input/output functions
(io_serial_in, io_serial_out) for proper operation when UPIO_AU is
configured.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agokernel: 6.18: backport eip93 driver fixes
Aleksander Jan Bajkowski [Fri, 5 Dec 2025 21:11:05 +0000 (22:11 +0100)] 
kernel: 6.18: backport eip93 driver fixes

Backport minor fixes for the eip93 driver from upstream.

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agocrypto: eip93: use in-tree driver for kernel 6.18
Mieczyslaw Nalewaj [Thu, 15 Jan 2026 08:08:05 +0000 (09:08 +0100)] 
crypto: eip93: use in-tree driver for kernel 6.18

This patch set introduces support for using the in-tree (mainline)
EIP93 crypto driver for kernel 6.18 and later, along with additional
improvements and fixes:
 - Conditional Kconfig/Makefile handling for crypto-hw-eip93 to enable use of the mainline driver with kernel 6.18+.
 - Patch 926: Use software AES fallback for small requests in the EIP93 driver.
 - Patch 927: Add `mediatek,mtk-eip93` compatible string for upstream kernel device trees.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agopackages: sctp: 6.18: add missing symbol
Mieczyslaw Nalewaj [Sat, 13 Dec 2025 12:31:33 +0000 (13:31 +0100)] 
packages: sctp: 6.18: add missing symbol

Add missing CONFIG_SCTP_DEFAULT_COOKIE_HMAC_SHA256 for kernel 6.18

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agokernel: kmod-fs-nfs-v4: add option for kernel-6.18
John Audia [Sun, 7 Dec 2025 21:53:23 +0000 (16:53 -0500)] 
kernel: kmod-fs-nfs-v4: add option for kernel-6.18

Add a config option for the 6.18 series of kernels

Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agopackage: gpio-button-hotplug: adapt to kernel 6.18
Mieczyslaw Nalewaj [Sun, 14 Dec 2025 00:53:22 +0000 (01:53 +0100)] 
package: gpio-button-hotplug: adapt to kernel 6.18

 Change GPIOF_ACTIVE_LOW to gpiod_toggle_active_low

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agogeneric: net: phy: adapt to kernel 6.18
Mieczyslaw Nalewaj [Sat, 13 Dec 2025 21:05:48 +0000 (22:05 +0100)] 
generic: net: phy: adapt to kernel 6.18

 - change phy_driver_register and phy_driver_unregister function calls
   to phy_drivers_register and phy_drivers_unregister for compatibility
   with kernel 6.18
 - replace PHY_ANY_ID with "MATCH ANY PHY"

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agogeneric: 6.18: update kernel symbols
Mieczyslaw Nalewaj [Sat, 13 Dec 2025 16:03:47 +0000 (17:03 +0100)] 
generic: 6.18: update kernel symbols

Remove symbols no longer present in version 6.18,
add new 6.18 kernel symbols.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agogeneric: 6.18: refresh hack patches
Mieczyslaw Nalewaj [Wed, 3 Dec 2025 16:07:08 +0000 (17:07 +0100)] 
generic: 6.18: refresh hack patches

Refreshed patches for generic/hack-6.18 by running
make target/linux/refresh

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agogeneric: 6.18: manually rebuild hack patches
Mieczyslaw Nalewaj [Thu, 25 Dec 2025 15:47:26 +0000 (16:47 +0100)] 
generic: 6.18: manually rebuild hack patches

Manually rebuild hack patches:
 - 200-tools_portability.patch
 - 204-module_strip.patch
 - 230-openwrt_lzma_options.patch
 - 251-kconfig.patch
 - 259-regmap_dynamic.patch
 - 301-01-mm-permit-to-declare-custom-execmem-alloc-free-funct.patch
 - 301-02-mips-replace-mlong-calls-with-mno-long-calls-if-poss.patch
 - 430-mtk-bmt-support.patch
 - 721-net-add-packet-mangeling.patch
 - 722-net-phy-aquantia-enable-AQR112-and-AQR412.patch
 - 725-net-phy-aquantia-add-PHY_IDs-for-AQR112-variants.patch
 - 750-net-pcs-mtk-lynxi-workaround-2500BaseX-no-an.patch
 - 800-GPIO-add-named-gpio-exports.patch
 - 902-debloat_proc.patch
 - 904-debloat_dma_buf.patch

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agogeneric: 6.18: refresh pending patches
Mieczyslaw Nalewaj [Tue, 2 Dec 2025 21:18:18 +0000 (22:18 +0100)] 
generic: 6.18: refresh pending patches

Refreshed patches for generic/pending-6.18 by running
make target/linux/refresh

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agogeneric: 6.18: manually rebuild pending patches
Mieczyslaw Nalewaj [Sat, 27 Dec 2025 13:27:14 +0000 (14:27 +0100)] 
generic: 6.18: manually rebuild pending patches

Manually rebuild pending patches:
 - 203-kallsyms_uncompressed.patch
 - 417-mtd-spi-nand-macronix-disable-continuous-read-for-MX.patch
 - 487-mtd-spinand-Add-support-for-Etron-EM73D044VCx.patch
 - 530-jffs2_make_lzma_available.patch
 - 681-net-remove-NETIF_F_GSO_FRAGLIST-from-NETIF_F_GSO_SOF.patch
 - 701-netfilter-nf_tables-ignore-EOPNOTSUPP-on-flowtable-d.patch
 - 710-bridge-add-knob-for-filtering-rx-tx-BPDU-pack.patch
 - 732-03-net-ethernet-mtk_eth_soc-optimize-dma-ring-address-i.patch
 - 737-net-ethernet-mtk_eth_soc-add-paths-and-SerDes-modes-.patch
 - 739-03-net-pcs-pcs-mtk-lynxi-add-platform-driver-for-MT7988.patch
 - 739-05-net-pcs-add-driver-for-MediaTek-USXGMII-PCS.patch
 - 802-OPP-Provide-old-opp-to-config_clks-on-_set_opp.patch
 - 812-PCI-sysfs-enforce-single-creation-of-sysfs-entry-for.patch
 - 850-0023-PCI-aardvark-Make-main-irq_chip-structure-a-static-d.patch

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agogeneric: 6.18: remove obsolete pending patches
Mieczyslaw Nalewaj [Fri, 27 Mar 2026 16:48:10 +0000 (17:48 +0100)] 
generic: 6.18: remove obsolete pending patches

Remove obsolete pending patches already included in kernel 6.18.
 - 620-net-sfp-improve-Huawei-MA5671a-fixup.patch[1]
 - 704-net-phy-register-phy-led_triggers-during-probe-to-av.patch[2]

[1] https://web.git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.18.y&id=ecb4ed7a723f02c81a0111a13ceeabb26f50f899
[2] https://web.git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.18.y&id=2764dcb3c35de4410f642afc62cf979727470575

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agogeneric: 6.18: refresh backport patches
Mieczyslaw Nalewaj [Tue, 2 Dec 2025 21:18:09 +0000 (22:18 +0100)] 
generic: 6.18: refresh backport patches

Refreshed patches for generic/backport-6.18 by running
make target/linux/refresh

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agogeneric: 6.18: manually rebuild backport patches
Mieczyslaw Nalewaj [Wed, 7 Jan 2026 13:27:14 +0000 (14:27 +0100)] 
generic: 6.18: manually rebuild backport patches

Manually rebuild backport patches:
 - 700-01-v7.0-net-sched-Export-mq-functions-for-reuse.patch
 - 700-02-v7.0-net-sched-sch_cake-Factor-out-config-variables-into-.patch
 - 750-v7.0-net-phy-move-mmd_phy_read-and-mmd_phy_write-to-phyli.patch
 - 761-v6.19-net-phy-mxl-gpy-add-support-for-mxl86252-and-mxl86282.patch

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agogeneric: 6.18: remove obsolete backport patches
Mieczyslaw Nalewaj [Fri, 27 Mar 2026 16:48:03 +0000 (17:48 +0100)] 
generic: 6.18: remove obsolete backport patches

Remove obsolete backport patches already included in kernel 6.18.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agokernel/generic: restore files for v6.12
Mieczyslaw Nalewaj [Fri, 27 Mar 2026 16:47:48 +0000 (17:47 +0100)] 
kernel/generic: restore files for v6.12

This is an automatically generated commit which aids following Kernel patch
history, as git will see the move and copy as a rename thus defeating the
purpose.

For the original discussion see:
https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agokernel/generic: create files for v6.18 (from v6.12)
Mieczyslaw Nalewaj [Fri, 27 Mar 2026 16:47:40 +0000 (17:47 +0100)] 
kernel/generic: create files for v6.18 (from v6.12)

This is an automatically generated commit.

When doing `git bisect`, consider `git bisect --skip`.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agokernel: add define for kernel 6.18
Mieczyslaw Nalewaj [Sun, 30 Nov 2025 22:40:24 +0000 (23:40 +0100)] 
kernel: add define for kernel 6.18

Add define for kernel 6.18.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agokernel: qca8k: fix host FDB on multi-CPU 21317/head
Kevin Staley [Mon, 29 Dec 2025 13:53:20 +0000 (07:53 -0600)] 
kernel: qca8k: fix host FDB on multi-CPU

On qca8k multi-CPU-port setups (e.g. qca8337 with ports 0+6 as CPU),
bridging switch user ports that use different conduits can make the host
reachable only from the ports tied to the last-programmed CPU port.

Add a pending kernel patch which makes qca8k merge CPU/DSA-port FDB
programming, so host FDB entries end up on all relevant CPU ports.

Fixes: openwrt/openwrt#17891
Signed-off-by: Kevin Staley <glaciertablet@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21317
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agowolfssl: update to 5.9.0 22595/head
Ignat Loskutov [Tue, 24 Mar 2026 21:50:04 +0000 (22:50 +0100)] 
wolfssl: update to 5.9.0

Release Notes:
https://www.wolfssl.com/wolfssl-5-9-0-released/

Fixes CVEs:
- CVE-2026-3548
- CVE-2026-3549
- CVE-2026-3547
- CVE-2026-2646
- CVE-2026-3849
- CVE-2026-0819
- CVE-2026-1005
- CVE-2026-2645
- CVE-2026-3230
- CVE-2026-3229
- CVE-2026-3579
- CVE-2026-3580
- CVE-2026-3503
- CVE-2026-4159
- CVE-2026-4395

Signed-off-by: Ignat Loskutov <ignat.loskutov@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22595
Signed-off-by: Nick Hainke <vincent@systemli.org>
3 months agorealtek: mdio: provide individual bus probing function 22604/head
Markus Stockhausen [Wed, 25 Mar 2026 15:04:59 +0000 (16:04 +0100)] 
realtek: mdio: provide individual bus probing function

rtmdio_probe() is a do-it-all setup function. It creates one
control structure and one bus. In the future multiple busses
will be created. As a preparation carve out the bus specific
part into an individual probing function.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22604
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agorealtek: mdio: pull bus/ctrl dependency apart
Markus Stockhausen [Wed, 25 Mar 2026 13:48:43 +0000 (14:48 +0100)] 
realtek: mdio: pull bus/ctrl dependency apart

Until now the central control structure is allocated via a call to
devm_mdiobus_alloc_size(). This will not be possible any longer when
multiple busses will be implemented in a future commit.

Relax that as follows:

- Define a new private "channel" structure for a mdio bus
- Allocate the central control structure with a dedicated alloc()
- Allocate only the channel structure during bus setup
- Link the channel to the central structure via chan->ctrl

Reorganize the probing function so that it becomes clearer that
the control structure is setup first and afterwards the bus is
registered.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22604
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agorealtek: mdio: add helper to derive ctrl from bus
Markus Stockhausen [Wed, 25 Mar 2026 13:09:49 +0000 (14:09 +0100)] 
realtek: mdio: add helper to derive ctrl from bus

Add a new helper macro rtmdio_ctrl_from_bus that encapuslates
the current ctrl=bus->priv lookup. This is a preparation for
the future multi-channel driver architecture. With an upcoming
commit the structures will be changed as follows:

- ctrl: contains the generic data structurs
- chan: contains the channel specific structure

This will involve changing the pointers between them

old lookup chain: ctrl = bus->ctrl
new lookup chain: ctrl = bus->chan->ctrl

The helper macro allows to easily switch the lookup in one
central location. While we are here fix a whitespace issue.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22604
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agorealtek: mdio: setup topology from control structure
Markus Stockhausen [Wed, 25 Mar 2026 11:22:13 +0000 (12:22 +0100)] 
realtek: mdio: setup topology from control structure

The topology setup is bus independent and can be derived completely
from the control structure. Adapt the call parameters accordingly.

The call location is quite confusing at the moment. Being no longer
dependent from the bus call it where it makes most sense. This is
directly after the mapping setup in rtmdio_map_ports(). Doing other
bus dependent setup between these two functions is not needed
any longer.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22604
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agorealtek: mdio: create new bus structure
Markus Stockhausen [Wed, 25 Mar 2026 10:35:13 +0000 (11:35 +0100)] 
realtek: mdio: create new bus structure

The port specific attributes of the central control structure
have been moved over to a separate port structure. Do the same
for the (up to 4) busses. Establish a separate bus structure
that will hold data about each bus and use it in the control
structure. As a first usage type move the is_c45 attribute over.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22604
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agorealtek: mdio: move phy_node attribute into port structure
Markus Stockhausen [Wed, 25 Mar 2026 10:31:18 +0000 (11:31 +0100)] 
realtek: mdio: move phy_node attribute into port structure

The phy_node attribute is defined per port. Move it into the new
port structure. Now it is clear that it belongs to the port.

While we are here rename it to dn (aka device_node) to align with
upstream style. As all usage locations must be adapted it makes
no sense to make two commits (relocate/rename) to change the
code twice.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22604
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agorealtek: mdio: move smi_addr attribute into port structure
Markus Stockhausen [Wed, 25 Mar 2026 10:26:57 +0000 (11:26 +0100)] 
realtek: mdio: move smi_addr attribute into port structure

The smi_addr attribute is defined per port. Move it into the new
port structure. As the devices have a maximum of 56 addresses
save some space and convert it to type u8.

While we are here harden the mapping routine that reads these
addresses from the DTS. For this check the value that is read into
smi_addr. This is usually the MDIO standard 0..31. Sadly RTL839x
devices are an exception from that and allow addresses 0..51.
To avoid device specific if/then/else cases for now implement
a "light" consistency check.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22604
Signed-off-by: Robert Marko <robimarko@gmail.com>