]> git.ipfire.org Git - thirdparty/openwrt.git/log
thirdparty/openwrt.git
2 months agorealtek: phy: remove unneeded usage of genphy_loopback() 18782/head
Markus Stockhausen [Sun, 11 May 2025 18:44:26 +0000 (14:44 -0400)] 
realtek: phy: remove unneeded usage of genphy_loopback()

Kernel does

  if (phydev->drv->set_loopback)
    ret = phydev->drv->set_loopback(phydev, enable, speed);
  else
    ret = genphy_loopback(phydev, enable, speed);

So no need to explicitly set genphy_loopback() in phy_driver. Drop
references to let kernel do its work.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18782
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agokernel: bump 6.6 to 6.6.90 18775/head
Shiji Yang [Sat, 10 May 2025 15:52:16 +0000 (23:52 +0800)] 
kernel: bump 6.6 to 6.6.90

Remove upstreamed patches:
  bcm27xx/patches-6.6/950-0481-xhci-Use-more-event-ring-segment-table-entries.patch [1]
  pending-6.6/691-net-ipv6-fix-UDPv6-GSO-segmentation-with-NAT.patch [2]

Manually rebased patches:
  generic/hack-6.6/781-usb-net-rndis-support-asr.patch [3]

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.90&id=f377434945f528217e65fc5b18781caeba19ce72
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.90&id=e0272844995aff8cbf2cc88b78c2b35ca51eda43
[3] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.90&id=222b6685efe0d8c1cdb078a67bbe806f56d18f94
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18775
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 months agoqualcommax: ipq50xx: add PCI path migration script 18789/head
Robert Marko [Tue, 13 May 2025 11:19:22 +0000 (13:19 +0200)] 
qualcommax: ipq50xx: add PCI path migration script

PCI paths of IPQ50xx devices have changed now that linux,pci-domain is set
in the DTSI, so add a migration script for wireless config.

Link: https://github.com/openwrt/openwrt/pull/18789
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agoqualcommax: ipq50xx: update PCI path for caldata
Robert Marko [Tue, 13 May 2025 10:24:12 +0000 (12:24 +0200)] 
qualcommax: ipq50xx: update PCI path for caldata

Now that IPQ50xx PCIe nodes have linux,pci-domain property defined
it changed the PCI path, but its now predictable and fixed.

So, update the caldata script accordingly.

Link: https://github.com/openwrt/openwrt/pull/18789
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agoqualcommax: fix PCIe card wifi node address
Robert Marko [Mon, 12 May 2025 18:14:52 +0000 (20:14 +0200)] 
qualcommax: fix PCIe card wifi node address

Unlike other buses, for PCIe child nodes we should not use "wifi@1,0" as
the bus adress since for PCI devices the actual device adress on the bus is
actually set via the "reg" property and the node name is unused completely.

Though, it will cause DTC to throw warnings, so after investigation and
similar issue upstream[1] simply set the nodes to "wifi@0,0" instead.

[1] https://lists.infradead.org/pipermail/linux-arm-kernel/2021-August/680846.html

Link: https://github.com/openwrt/openwrt/pull/18789
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agoqualcommax: remove PCIe bridge nodes
Robert Marko [Mon, 12 May 2025 18:11:22 +0000 (20:11 +0200)] 
qualcommax: remove PCIe bridge nodes

PCIe bridge nodes are now present in the SoC DTSI, so drop our downstream
ones as otherwise ath1*k BDF matching will fail.

Link: https://github.com/openwrt/openwrt/pull/18789
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agoqualcommax: ipq50xx: add missing bus-range to PCIe bridges
Robert Marko [Tue, 13 May 2025 10:12:39 +0000 (12:12 +0200)] 
qualcommax: ipq50xx: add missing bus-range to PCIe bridges

It seems that bus-range property was missed for the PCIe bridges on
IPQ50xx, thus causing DTC to warn on any bus adress used on nodes
under the PCIe bridges.

Link: https://github.com/openwrt/openwrt/pull/18789
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agoqualcommax: ipq50xx: use latest v9 PCIe DTS patch
Robert Marko [Tue, 13 May 2025 09:44:27 +0000 (11:44 +0200)] 
qualcommax: ipq50xx: use latest v9 PCIe DTS patch

Use the latest v9 PCIe DTS patch that is pending upstream, notable change
being that it includes PCIe bridge nodes.

Link: https://github.com/openwrt/openwrt/pull/18789
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agoqualcommax: ipq807x, ipq60xx: backport DTS PCIe bridge node
Robert Marko [Mon, 12 May 2025 17:57:41 +0000 (19:57 +0200)] 
qualcommax: ipq807x, ipq60xx: backport DTS PCIe bridge node

Currently, we manually define PCI bridge nodes in devices that use
PCI cards, etc.

But since we will need to rework this for 6.12 anyway since upstream added
the PCIe bridge nodes[1][2] lets backport it now.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/arch/arm64/boot/dts/qcom/ipq8074.dtsi?h=v6.12.28&id=ed3893f6f9b800ca774f63810c5f8838bc7cee78
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/arch/arm64/boot/dts/qcom/ipq6018.dtsi?h=v6.12.28&id=52358c64937e982d3cdcf64be58f08f30d8e518c

Link: https://github.com/openwrt/openwrt/pull/18789
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agolibtracefs: update to 1.8.2 18783/head
Nick Hainke [Sun, 11 May 2025 19:06:50 +0000 (21:06 +0200)] 
libtracefs: update to 1.8.2

Changelog:
0379096 libtracefs: version 1.8.2
e2e0b4d sqlhist: Add bash completion for the sqlhist utility
78dd6d5 libtracefs: Add trace_sql.bash for tracefs_sql() bash completions
4f66bca libtracefs: Fix trace_sql() to handle buckets cast
6680dae libtracefs: Have tracefs_sql() cast handle stacktrace
4668195 libtracefs: Handle synthetic events with dynamic strings as fields
48a7752 libtracefs: Fix COMM for use as a field for tracefs_sqlhist()
a8d57d2 libtracefs: Fix mistaken update to TRACEFS_STACKTRACE macro
6e913f7 libtracefs: utest: Do not fail if uprobes are not supported by kernel
5db5cf5 libtracefs: Rerun bison and flex via make sqlhist_remake
1514530 libtracefs: Add make sqlhist_remake to run bison and flex
d49b6fa libtrace: Fix memory leak in tracefs_cpu
07cff64 libtracefs: Fix the read file failure code checking
457f02f trace-cmd: Unit test for tracefs_instance_file_append() API
a2bfb49 libtracefs: utest: Rename private functions to fix static building
65f629e libtracefs utest: Do not test more events than what the ring buffer can hold
05a5dc4 libtracefs utest: Fix min percent test
0a46992 libtracefs utest: Add test to check handling multiple dynamic events
bd47435 libtracefs: Destroy synthetic and eprobes before other events
78d8d2e libtracefs: Have tracefs_dynevent_get_all() find kprobes and uprobes properly
ef70c00 libtracefs .gitignore: Ignore utest/trace-utest in git
ff20336 libtracefs utest: Do not test kprobe interface if there's no kprobes
93d9049 libtracefs: Have tracefs_instance_tracers() return instance tracers
4cbebed libtracefs: Documentation: Add missing documentation to meson.build

Link: https://github.com/openwrt/openwrt/pull/18783
Signed-off-by: Nick Hainke <vincent@systemli.org>
2 months agomac80211: add patch to suppress PREP when mesh forwarding is disabled
Benjamin Berg [Wed, 30 Apr 2025 19:15:18 +0000 (21:15 +0200)] 
mac80211: add patch to suppress PREP when mesh forwarding is disabled

This fixes a bug where mac80211 would respond to a PREQ frame when a
neighbor table entry exists locally even though it will not forward the
frame and the reported path does not actually work.

Link: https://github.com/openwrt/openwrt/pull/18657
Link: https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git/commit/?h=for-next&id=cf1b684a06170d253b47d6a5287821de976435bd
Link: https://patches.linaro.org/project/linux-wireless/patch/20250430191042.3287004-1-benjamin@sipsolutions.net/
Signed-off-by: Benjamin Berg <benjamin@sipsolutions.net>
2 months agomediatek: filogic: fix wifi on ASUS RT-AX52
Christoph Krapp [Mon, 12 May 2025 19:19:27 +0000 (21:19 +0200)] 
mediatek: filogic: fix wifi on ASUS RT-AX52

Add missing kmod-7915e package to get both wireless interfaces working.

Link: https://github.com/openwrt/openwrt/issues/18690
Reviewed-by: Steffen Förster <nemesis@chemnitz.freifunk.net>
Signed-off-by: Christoph Krapp <achterin@gmail.com>
2 months agolinux-firmware: update to 20250509
John Audia [Sat, 10 May 2025 17:58:00 +0000 (13:58 -0400)] 
linux-firmware: update to 20250509

% git log --no-merges --pretty=oneline --abbrev-commit 20250311...20250509
41860ad3db04 linux-firmware: Amphion: Update vpu firmware
86d528c26165 amd_pmf: Update AMD PMF TA Firmware to v3.1
1790d4705972 amdgpu: update dcn 4.01 firmware to 0.1.8.0
ac4c6b7d71e2 qcom: Add link for SM8350 GPU firmware
cb876e3622a9 cirrus: cs35l56: Add firmware for Cirrus Amps for some Lenovo laptops
9504a7f84232 cirrus: cs35l56: Add firmware for Cirrus Amps for some ASUS laptops
bfbe4a3cdb0b cirrus: cs35l56: Update firmware for Cirrus Amps for some Lenovo laptops
fe165836464c cirrus: cs35l56: Update firmware for Cirrus Amps for some Dell laptops
661dc215e93e linux-firmware: update firmware for MT7925 WiFi device
8357180b9ba0 mediatek MT7925: update bluetooth firmware to 20250425073330
f56a4436ffe3 rtw89: 8852c: add tables for dynamic antenna TXPWR
81a15eed8c95 rtw89: 8922a: update fw to v0.35.71.0
74f11e57e695 brcm: Add NVRAM file for Radxa Rock Pi X mini PC
64c65362b04a i915: Update Xe3LPD DMC to v2.23
c1a6a1a2030f rtl_bt: Update RTL8852B BT USB FW to 0x098B_154B
ce13d29c3933 ath11k: WCN6855 hw2.0: update board-2.bin
98e85bcbefbe ath11k: IPQ5018 hw1.0: update to WLAN.HK.2.6.0.1-01300-QCAHKSWPL_SILICONZ-1
360fd4530170 ath12k: WCN7850 hw2.0: update to WLAN.HMT.1.1.c5-00284-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3
55bd4602517e ath12k: QCN9274 hw2.0: update board-2.bin
ef226c72835b qcom: vpu: update video firmware binary for SA8775p
c1d4c8991f61 iwlwifi: add Bz/gl FW for core95-82 release
52665c0a6efe iwlwifi: update ty/So/Ma firmwares for core95-82 release
ee2e7b5fbdca iwlwifi: update cc/Qu/QuZ firmwares for core95-82 release
821f99ab2308 iwlwifi: add Bz-hr FW for core93-123 release
a940769c60a8 qcom: add QUPv3 firmware for QCS9100 platform
07c830a50c74 ASoC: tas2781: Swap channel for SPI projects.
5e3247fdbb6a bmi260: Add BMI260 IMU initial configuration data file
0c86915ffae6 rtl_bt: Update RTL8852BT/RTL8852BE-VT BT USB FW to 0x1881_BA06
e25579e9725c rtw89: 8922a: update element RF TXPWR to R40
1a44e0bf13d7 rtw89: 8852c: update element RF TXPWR to R78
d274703bf1ba rtw89: 8852c: add fw v0.27.125.0 with format version 2
cb465aa0042b Revert "rtw89: 8852c: update fw to v0.27.125.0"
51b35ac23ee7 qcom: vpu: add video firmware binary for qcm6490
b91a362b8e27 contrib: process_linux_firmware: set user agent
45f59212aebd amdgpu: update vcn 4.0.5 firmware
587b3a6825c7 amdgpu: update psp 14.0.0 firmware
960c2ce9ad01 amdgpu: update vcn 4.0.2 firmware
36610f5e805c amdgpu: update psp 13.0.4 firmware
8d3530bf47d0 amdgpu: update gc 11.0.1 firmware
516d07579883 amdgpu: update navy flounder firmware
b001286e0dd8 amdgpu: update psp 14.0.4 firmware
1e6f0edc6a14 amdgpu: update gc 11.5.2 firmware
97443f60bf77 amdgpu: update vcn 5.0.0 firmware
a8f7484e81ff amdgpu: update smu 14.0.3 firmware
af882729d2df amdgpu: update psp 14.0.3 firmware
82687ff07729 amdgpu: update gc 12.0.1 firmware
0d8e4fec3a1d amdgpu: update sienna cichlid firmware
d1cf7a70244c amdgpu: update yellow carp firmware
2aebc2971272 amdgpu: update smu 14.0.2 firmware
4993a7b7f7c6 amdgpu: update psp 14.0.2 firmware
009d751e131d amdgpu: update gc 12.0.0 firmware
7451317d946a amdgpu: update vega20 firmware
3f34d5dfe3e6 amdgpu: update navi14 firmware
acaf05617187 amdgpu: update vega12 firmware
7b83bddab139 amdgpu: update vcn 4.0.4 firmware
e0dbfcbfc037 amdgpu: update smu 13.0.7 firmware
2123f4b2a090 amdgpu: update psp 13.0.7 firmware
332416b29306 amdgpu: update gc 11.0.2 firmware
f541793e8571 amdgpu: update vega10 firmware
ec9f10427046 amdgpu: update psp 13.0.5 firmware
158dba269924 amdgpu: update navi12 firmware
47d6cc500d6c amdgpu: update psp 13.0.10 firmware
ef899ebfba58 amdgpu: update gc 11.0.3 firmware
75659e7efe1b amdgpu: update navi10 firmware
34678d2d7b88 amdgpu: update vangogh firmware
f8f5074da6bc amdgpu: update picasso firmware
ea0fc359b0b1 amdgpu: update vcn 4.0.0 firmware
c9bcb9a02ff1 amdgpu: update psp 13.0.0 firmware
0c13ba7e8180 amdgpu: update gc 11.0.0 firmware
6957a6858828 amdgpu: update psp 13.0.14 firmware
67c36c9016e8 amdgpu: update gc 9.4.4 firmware
f8a1a68f1cb6 amdgpu: update arcturus firmware
afe96cdcb0a4 amdgpu: update psp 13.0.6 firmware
79e1d1fe735c amdgpu: update gc 9.4.3 firmware
ca438793bbaf amdgpu: update beige goby firmware
5d8021f09ae8 amdgpu: update psp 13.0.8 firmware
5e10d79d3338 amdgpu: update psp 14.0.1 firmware
06a2d1907aa9 amdgpu: update gc 11.5.1 firmware
2ea6eb147a70 amdgpu: update psp 13.0.11 firmware
74c60f81cb2d amdgpu: update gc 11.0.4 firmware
3fed9e11e6c2 amdgpu: update dimgrey cavefish firmware
3af8f9b99c63 amdgpu: update aldebaran firmware
5c8cb78b35ff amdgpu: update dcn 4.01 frmware to 0.1.6.0
5780e8d2d4c2 intel: ish: Update license file for ISH
75a26a64e907 intel: avs: Update topology file for I2S Analog Devices 4567
475e9e00de7f intel: avs: Update topology file for I2S Realtek 5663
754412d59cb6 intel: avs: Update topology file for I2S Realtek 5640
03939aed99b0 intel: avs: Update topology file for I2S Realtek 5514
e5b81bae0be8 intel: avs: Update topology file for I2S Realtek 298
b78fe3bcfd23 intel: avs: Update topology file for I2S Realtek 286
28eecfdfd508 intel: avs: Update topology file for I2S Realtek 274
31efaf10d5dd intel: avs: Update topology file for I2S Nuvoton 8825
607edf958ba4 intel: avs: Update topology file for I2S Maxim 98927
ba5cccdd0edb intel: avs: Update topology file for I2S Maxim 98373
1593be09f0a3 intel: avs: Update topology file for I2S Maxim 98357a
c98ceb499c00 intel: avs: Update topology file for HDAudio codecs
1e53e2242ab9 intel: avs: Update topology file for HDMI codecs
53958b3945c6 intel: avs: Update topology file for Digital Microphone Array
452e4fc378dd intel: avs: Update topology file for I2S Dialog 7219
9e61db179b32 xe: Update GUC to v70.44.1 for BMG and LNL
a21b7f3e500b i915: Update GUC to v70.44.1 for i915 platforms
e35f9a9fcd29 qcom:x1e80100: Iris Support for Lenovo T14s G6 Qualcomm platform
c0a41b800760 qcom:x1e80100: Support for Lenovo Yoga Slim 7 Snapdragon platform
71f7d44b2334 Mellanox: Add new mlxsw_spectrum firmware xx.2014.4012
f99fbfab7215 linux-firmware: add firmware for Aeonsemi AS21x1x 1G/2.5G/5G/10G Ethernet Phy
9d6096016881 QCA: Add 8 bluetooth nvm files for WCN785x btusb
7253e661035e QCA: Update WCN785x btusb firmware to 2.0.0-00790-3
56f91d88d2bc qcom: update firmware binary for SM8250
a7b3d211e8ef mediatek: Add new mt8195 SOF firmware
124ee28c7894 mediatek: Add new mt8188 SOF firmware
518d79a18f42 rtl_bt: Update RTL8852BT/RTL8852BE-VT BT USB FW to 0x17E9_16ED
1664eb364786 Revert "rtl_bt: Update RTL8852BT/RTL8852BE-VT BT USB FW to 0x0471_70A6"
495f77c714a6 intel_vpu: Update NPU firmware
d2b574154896 cirrus: cs35l56: Correct filenames of SSID 103c8e1b and 103c8e1c
2873cbcd965b rtl_bt: Update RTL8852BT/RTL8852BE-VT BT USB FW to 0x0471_70A6
a80a8bd73e0b amdgpu: update dcn 3.5 and dcn 3.5.1 firmware to 9.0.27.0
152e5e12df70 amdgpu: update dcn 3.1.4 firmware to 8.0.78.0
39002867507d amdgpu: update dcn 4.01 firmware to 0.1.3.0
a2aaefe5a592 amdgpu: update dcn 3.5 firmware to 0.1.0.0
139c1b5faedd cirrus: cs35l41: Add Firmware for various HP Laptops using CS35L41 HDA
0c9b82b60972 cirrus: Add cs35l56 firmware symlinks for Asus UM5606KA
bd50c4979e4e qcom: Add DSP firmware for QCS8300 platform
c4a5cd624f9f mediatek: Add MT8188 SCP firmware
dd90046b703b copy-firmware: fail gracefully if moreutils parallel is installed
142c0a71434f copy-firmware: make script smarter about bad parameters
07ffc2005a97 copy-firmware: add usage help text
47bc8a240742 linux-firmware: Update firmware file for Intel BlazarI core
3184e14b28e3 qcom: Add Audio firmware for Lenovo Slim 7x
c2516a030f87 qcom: Add Audio firmware for Lenovo T14s
b0e96674082d amdgpu: DMCUB updates for various ASICs
9e4806597b5b rtw88: Add firmware v33.6.0 for RTL8814AE/RTL8814AU
da086994b2ad rtw89: 8922a: update fw to v0.35.64.0
733be574df95 rtw89: 8922a: update fw to v0.35.63.0
913b0e59b9a8 rtw89: 8852c: update fw to v0.27.125.0
ea922918add3 iwlwifi: add Bz/gl FW for core94-91 release
591d31e9ad05 iwlwifi: update ty/So/Ma firmwares for core94-91 release
198f5df992f8 iwlwifi: update cc/Qu/QuZ firmwares for core94-91 release

Signed-off-by: John Audia <therealgraysky@proton.me>
2 months agokernel: bump 6.12 to 6.12.28 18756/head
Mieczyslaw Nalewaj [Fri, 9 May 2025 10:56:32 +0000 (12:56 +0200)] 
kernel: bump 6.12 to 6.12.28

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

Removed upstreamed:
        generic/pending-6.12/691-net-ipv6-fix-UDPv6-GSO-segmentation-with-NAT.patch[1]

Manually rebased:
        generic/pending-6.12/737-net-ethernet-mtk_eth_soc-add-paths-and-SerDes-modes-.patch[2]
        generic/hack-6.12/781-usb-net-rndis-support-asr.patch[3]

1. https://web.git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=6effe1c0fa823d9923f3b77547f201a5bab6c1e5
2. https://web.git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=aea3ca60fafbdf0da5c930ff2f4105587deb6753
3. https://web.git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=222b6685efe0d8c1cdb078a67bbe806f56d18f94

All other patches automatically rebased.

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

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/18756
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agogeneric: 6.12: add CONFIG_EC_LENOVO_YOGA_C630
Robert Marko [Mon, 12 May 2025 15:04:35 +0000 (17:04 +0200)] 
generic: 6.12: add CONFIG_EC_LENOVO_YOGA_C630

CONFIG_EC_LENOVO_YOGA_C630 popped up while doing 6.12 for qualcommax.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agorealtek: decouple MDIO and ethernet devices
Markus Stockhausen [Fri, 2 May 2025 18:51:38 +0000 (14:51 -0400)] 
realtek: decouple MDIO and ethernet devices

We are lucky to have a working realtek environment. But some things where mixed
heavily. To say it clear a bus is a bus and an ethernet is an ethernet. With
the new naming conventions and defines this becomes even more obvious.

Decouple it by moving the bus specific parts out of the ethernet device. To
make the code more readable rename bus_priv variables to priv and sort variable
definitions in inverse tree order (length descending) where it makes sense.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18402
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2 months agorealtek: harden MDIO driver
Markus Stockhausen [Fri, 2 May 2025 17:44:29 +0000 (13:44 -0400)] 
realtek: harden MDIO driver

At least since 2022 there is a major bug in the MDIO driver that
produces out-of-bound reads and erratic behaviour during initialization.

- mdiobus_scan_bus_c22() scans the bus for 64 devices (PHY_MAX_ADDR)
- private bus structure only supports 57 entry arrays (MAX_PORTS)

All the bus/reader writer functions accept calls with addr>=57 and will
silently read beyond their limits. This can lead to ghost SERDES like
https://github.com/openwrt/openwrt/issues/18665#issuecomment-2846053813

Add proper boundary checks and end the functions with -ENODEV that is
the only accepted error code from the bus scan function.

Fixes: 0536c582e673aa292 ("realtek: Fix RTL931X Ethernet driver") etc ...
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18402
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2 months agorealtek: resize mdio bus private arrays
Markus Stockhausen [Fri, 2 May 2025 14:33:34 +0000 (10:33 -0400)] 
realtek: resize mdio bus private arrays

These two arrays have been fixed to some sane size (= 64 ports). Now
that everything is in place reuse the global RTMDIO_MAX_PORT define.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18402
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2 months agorealtek: move private bus structure closer to the bus
Markus Stockhausen [Fri, 2 May 2025 14:17:11 +0000 (10:17 -0400)] 
realtek: move private bus structure closer to the bus

Relocate the bus structure definition into the MDIO source code area
of the ethernet driver. So if the real bus driver is forked from the
rest of the code only one area needs to be removed. Rename it to make
clear it belongs to the bus.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18402
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2 months agorealtek: reuse RTMDIO_MAX_SMI_BUS define
Markus Stockhausen [Fri, 2 May 2025 12:47:22 +0000 (08:47 -0400)] 
realtek: reuse RTMDIO_MAX_SMI_BUS define

Although a dfine is used to set the maxiumum number of SMI
busses (=4) it is not used at all appropriate places in the code.
Replace hard coded constants with that define.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18402
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2 months agorealtek: add mdio prefix to defines
Markus Stockhausen [Fri, 2 May 2025 08:53:10 +0000 (04:53 -0400)] 
realtek: add mdio prefix to defines

Inside the ethernet driver lives the mdio bus. It is not always clear
what belongs where. Prefix some leftovers from the kernel 6.6 refactor
to clearly state what belongs to the bus. Group all defines together
in one place. This commit has no functional changes.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18402
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2 months agoqualcommbe: ipq95xx: fix ipq-uniphy crash on IPQ9554 18779/head
Alexandru Gagniuc [Sat, 10 May 2025 20:09:40 +0000 (15:09 -0500)] 
qualcommbe: ipq95xx: fix ipq-uniphy crash on IPQ9554

IPQ9554 does not have uniphy1. The "gcc_uniphy1_sys_clk" cannot be
enabled. This causes the ipq-uniphy driver to crash on .probe().
Add a patch to resolve the crash.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18779
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agoucode: ubus: fix use-after-free on deferred request reply() method
Felix Fietkau [Mon, 12 May 2025 10:46:12 +0000 (12:46 +0200)] 
ucode: ubus: fix use-after-free on deferred request reply() method

Hold a reference to the defer resource as long as it is still needed

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 months agounetmsg: clean up remote data when replacing the incoming connection
Felix Fietkau [Mon, 12 May 2025 09:15:09 +0000 (11:15 +0200)] 
unetmsg: clean up remote data when replacing the incoming connection

Ensure that pub/sub state is in sync

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 months agounetmsg: ping on tx channel after new incoming connection
Felix Fietkau [Mon, 12 May 2025 09:13:44 +0000 (11:13 +0200)] 
unetmsg: ping on tx channel after new incoming connection

Ensure that stale connections are timed out faster

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 months agounetmsg: reconnect on loss of tx connection
Felix Fietkau [Mon, 12 May 2025 09:00:34 +0000 (11:00 +0200)] 
unetmsg: reconnect on loss of tx connection

Avoids half-connected broken state

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 months agotoolchain: gcc: fix build error with glibc for aarch64 targets 18647/head
Konstantin Demin [Mon, 12 May 2025 06:25:58 +0000 (09:25 +0300)] 
toolchain: gcc: fix build error with glibc for aarch64 targets

GCC 14+ fails to build due to libatomic specific -march handling.
This build error triggers only with glibc and not with musl libc
which is default.

Related: https://github.com/openwrt/openwrt/issues/16073

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18647
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agoucode: update to Git HEAD (2025-05-11)
Felix Fietkau [Sun, 11 May 2025 13:25:54 +0000 (15:25 +0200)] 
ucode: update to Git HEAD (2025-05-11)

567207a9bf16 fs: implement fileno() on directory handles
eb1d93235509 fs: support passing directory handle or fd in chdir()
38a2254337f1 build: detect whether toolchain employs default source fortification
6eddfc9dff17 resolv: fix fd leak in send_queries
3d36856b2dc5 uci: fix memory leak on cursor() error
aafde95f1ecf uci: add cursor() flags argument
d8cebc5a6bfd Revert "WIP: lib: support map() over objects"
2599cf80736b zlib: incorporate latest PR changes
830f316a7e49 socker: let sock.peercred() clear error on success
4cbac141406e types: rename u64_to_constant flag to ext_flag
d802fe5da5cd types: add support for resources with embedded data/values
71b4fdc6f60b types: add support for setting resource persistent flag
141f799eba08 uloop: use container_of instead of direct pointer casts
1396f8f2988d uloop: use uc_fn_thisval
9a121fc7440c uloop: drop object_registry
11b804d97086 socket: do not clear last_error in socket.error()
d5b3a9dc1091 socket: add strerror() method

Fixes: https://github.com/jow-/ucode/issues/285
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 months agokernel: add missing Kconfig symbols 18685/head
Tianling Shen [Fri, 2 May 2025 13:01:48 +0000 (21:01 +0800)] 
kernel: add missing Kconfig symbols

Found when building rockchip target (with kernel 6.12).

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/18685
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agoiw: backport WiFi 7 (EHT) scan support 18741/head
Aleksander Jan Bajkowski [Sat, 29 Mar 2025 22:39:19 +0000 (23:39 +0100)] 
iw: backport WiFi 7 (EHT) scan support

Backport patches to support scans of WiFi 7 APs.

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Link: https://github.com/openwrt/openwrt/pull/18741
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agohostapd: Enable DPPv2 support for OpenSSL and mbedtls
Gustavo Bertoli [Wed, 12 Mar 2025 17:22:12 +0000 (18:22 +0100)] 
hostapd: Enable DPPv2 support for OpenSSL and mbedtls

Enable Device Provisioning Protocol (DPPv2) in hostapd
for the "full" build-variants.

DPPv2 currently does not compile with WolfSSL due to
missing PKCS7 and certificate support.

Link: https://github.com/openwrt/openwrt/pull/18485
Signed-off-by: Gustavo Bertoli <gubertoli@gmail.com>
2 months agonat46: bump to latest git HEAD 2025-04-23
Shiji Yang [Tue, 29 Apr 2025 12:52:59 +0000 (20:52 +0800)] 
nat46: bump to latest git HEAD 2025-04-23

This new version introduces many compilation error fixes for
the upcoming 6.12 kernel. Changelogs:

04923c5 "Fix build failures observed so far" - take three.
b4263cc "Fix build failures observed so far" - take two.
de595b4 Fix build failures observed so far
1c0066a Zero checksum handling for UDP4->UDP6
b42c37d Fix crash when viewing nat46 kernel module config
3a9f630 nat46-module: fix modpost warning
88b91ca gha: use checkout@v4 action instead of checkout@v2
84ba13a gha: enable github action on push/PR
f367088 fix the compilation error
03c14bf gha: clean-up the yaml definition
d964921 Create c-compile.yml
cb69317  "Add network namespace awareness to nat46" - take two.
8302f42 Revert "Add network namespace awareness to nat46"
91b8e68 Add network namespace awareness to nat46

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
2 months agolantiq: xrx200_legacy: rename TP-LINK to TP-Link
Aleksander Jan Bajkowski [Sun, 30 Mar 2025 17:34:57 +0000 (19:34 +0200)] 
lantiq: xrx200_legacy: rename TP-LINK to TP-Link

Keep the name consistent with other places.

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
2 months agolantiq: xrx200_legacy: rename PHY LEDs
Aleksander Jan Bajkowski [Sun, 30 Mar 2025 17:33:31 +0000 (19:33 +0200)] 
lantiq: xrx200_legacy: rename PHY LEDs

This commit corrects led phy names. This has been discussed
at link [1] and corrected in the mediatek target in the
commit a51fd20e0d65ef836ee6c1e13c39a529855af4a0. Now it's time
to do the same thing in the lantiq target.

Link: https://github.com/openwrt/openwrt/pull/18265
Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
2 months agoramips: add support for Cudy R700
David DeGraw [Fri, 18 Apr 2025 17:55:34 +0000 (11:55 -0600)] 
ramips: add support for Cudy R700

This is the same hardware as the Cudy WR2100 that's
had support for some time now, just without the WLAN
hardware.

This PR is mostly copied from the commit that added
support for the WR2100, here: 3501db9

Specifications:
SoC: MT7621
CPU: 880 MHz
Flash: 16 MiB
RAM: 128 MiB
Ethernet: 5x Gbit ports

Installation:
There are two known options:

The Luci-based UI.
Press and hold the reset button during power up.
The router will request 'recovery.bin' from a TFTP server at
192.168.1.88.

Both options require a signed firmware binary.
A signed firmware can be found in GitHub PR #18532.

R4 & R5 need to be shorted (0-100Ω) for the UART to work.

Link: https://github.com/openwrt/openwrt/pull/18532
Signed-off-by: David DeGraw <degraw@fastmail.com>
2 months agoramips: use i2c-gpio driver for EX400
David Bauer [Tue, 6 May 2025 16:23:50 +0000 (18:23 +0200)] 
ramips: use i2c-gpio driver for EX400

Configure the i2c pins as GPIO outputs and use the i2c-gpio driver to
control the Semtech SX9512 touch controller.

This fixes spurious errors in i2c transactions even at 1kHz with the
native i2c driver.

leds green:wan: Setting an LED's brightness failed (-6)

Signed-off-by: David Bauer <mail@david-bauer.net>
2 months agoramips: support Genexis EX400 touch controller
David Bauer [Sun, 4 May 2025 02:45:03 +0000 (04:45 +0200)] 
ramips: support Genexis EX400 touch controller

Add the necessary package dependencies as well as device-tree properties
to support the touch-inputs as well as missing LEDs on the Genexis Pulse
EX400 range extender.

Signed-off-by: David Bauer <mail@david-bauer.net>
2 months agoramips: add Semtech SX9512 touch input driver
David Bauer [Sun, 4 May 2025 02:47:32 +0000 (04:47 +0200)] 
ramips: add Semtech SX9512 touch input driver

This driver is required for the touch-inputs as well as some LEDs on the
Genexis Pulse EX400.

The driver was also sent upstream. As the EX400 is currently the only
consumer, the driver is added target-specific for ramips.

Once the driver has been accepted upstream and is provided in a kernel
release used by OpenWrt, the package should be moved to the global input
drivers.

Link: https://www.spinics.net/lists/kernel/msg5669349.html
Signed-off-by: David Bauer <mail@david-bauer.net>
2 months agoramips: drop ALT0 name from Pulse EX400 dts model
David Bauer [Sun, 4 May 2025 02:49:50 +0000 (04:49 +0200)] 
ramips: drop ALT0 name from Pulse EX400 dts model

The alternative model name does not need to be represented in the DTS.

Signed-off-by: David Bauer <mail@david-bauer.net>
2 months agolinux: remove of_match_ptr from OF only drivers 18763/head
Rosen Penev [Thu, 1 May 2025 21:11:56 +0000 (14:11 -0700)] 
linux: remove of_match_ptr from OF only drivers

There's no need for it. Kernel update to 6.12 found that it now needs
linux/of.h explicitly included.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18763
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agocmake: use RelWithDebInfo, not Debug, with CONFIG_DEBUG 18709/head
Nathaniel Wesley Filardo [Sun, 4 May 2025 20:40:13 +0000 (21:40 +0100)] 
cmake: use RelWithDebInfo, not Debug, with CONFIG_DEBUG

Given the description of the configuration option at its definition in
target/sdk/files/Config.in ("Compile packages with debugging info" and "Adds -g3
to the CFLAGS", the more appropriate CMAKE build type is `RelWithDebInfo` rather
than `Debug`.

Signed-off-by: Nathaniel Wesley Filardo <nwfilardo@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18709
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agotools/llvm-bpf: fix compilation with GCC15 18767/head
Henry Tung [Fri, 9 May 2025 23:45:34 +0000 (16:45 -0700)] 
tools/llvm-bpf: fix compilation with GCC15

Add cstdint include to SmallVector.h.

Backported from
https://github.com/llvm/llvm-project/commit/7e44305041d96b064c197216b931ae3917a34ac1.

Signed-off-by: Henry Tung <henryptung@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18767
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agoqualcommax: ipq50xx: fix NAND ECC for ELECOM WRC-X3000GS2 18770/head
INAGAKI Hiroshi [Sat, 10 May 2025 07:33:04 +0000 (16:33 +0900)] 
qualcommax: ipq50xx: fix NAND ECC for ELECOM WRC-X3000GS2

Specify 4-bit ECC strength instead of 8-bit, to resolve NAND I/O errors
on ELECOM WRC-X3000GS2.

ELECOM WRC-X3000GS2 has a Macronix MX35UF1G24AD SPI-NAND chip as a flash
storage. That chip is registered as a chip that has 128 bytes OOB and
requires 8-bit ECC, and described as the same in the Macronix's datasheet.

But on WRC-X3000GS2, 8-bit ECC breaks NAND I/O on mtdblock devices with
the following errors and 4-bit ECC needs to be used to resolve this issue.

current (ECC strength=8):

```
[    1.401566] 0x000000480000-0x000000500000 : "0:appsblenv"
[    1.407128] 1 fixed-partitions partitions found on MTD device 0:appsblenv
[    1.410663] Creating 1 MTD partitions on "0:appsblenv":
[    1.417359] 0x000000000000-0x000000040000 : "env-data"
[    1.479865] u-boot-env-layout: probe of 79b0000.qpic-nand:flash@0:partitions:partition-0-appsblenv:partition@0:nvmem-layout failed with error -74

root@OpenWrt:~# strings /dev/mtdblock10
[   55.693754] mtdblock: MTD device '0:appsblenv' is NAND, please consider using UBI block devices instead.
[   55.694660] I/O error, dev mtdblock10, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 4 prio class 2
[   55.703147] I/O error, dev mtdblock10, sector 8 op 0x0:(READ) flags 0x80700 phys_seg 3 prio class 2
[   55.711884] I/O error, dev mtdblock10, sector 16 op 0x0:(READ) flags 0x80700 phys_seg 2 prio class 2
[   55.720778] I/O error, dev mtdblock10, sector 24 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
[   55.730310] I/O error, dev mtdblock10, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
[   55.738607] Buffer I/O error on dev mtdblock10, logical block 0, async page read
```

after fixing (ECC strength=4):

```
[    1.402301] 0x000000480000-0x000000500000 : "0:appsblenv"
[    1.407909] 1 fixed-partitions partitions found on MTD device 0:appsblenv
[    1.411370] Creating 1 MTD partitions on "0:appsblenv":
[    1.418075] 0x000000000000-0x000000040000 : "env-data"
(no error)

root@OpenWrt:~# strings /dev/mtdblock10
[   39.131008] mtdblock: MTD device '0:appsblenv' is NAND, please consider using UBI block devices instead.
bootcmd=bootipq
baudrate=115200
wifi2=7C:F8:54:01:BD:F3
CRASH_COUNT=0
...

```

Fixes: 01b72ce61e ("qualcommax: ipq50xx: remove ECC user config from board files")
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18770
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agobmips: sercomm-msp430: fix include
Álvaro Fernández Rojas [Sat, 10 May 2025 07:00:45 +0000 (09:00 +0200)] 
bmips: sercomm-msp430: fix include

Include <linux/of.h> instead of <linux/of_device.h>.
This problem arised when adding support for 6.12, but it can be fixed on
older kernels too.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2 months agobcm27xx: fix kmod-drm-rp1 modules dependencies
Álvaro Fernández Rojas [Fri, 9 May 2025 06:46:18 +0000 (08:46 +0200)] 
bcm27xx: fix kmod-drm-rp1 modules dependencies

kmod-drm-rp1-dsi, kmod-drm-rp1-dpi and kmod-drm-rp1-vec should depend on
kmod-drm-dma-helper and kmod-drm-vram-helper in order to fix dependency errors
when all kernel modules are selected.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2 months agokernel: modules: video: package DRM VRAM helper
Álvaro Fernández Rojas [Fri, 9 May 2025 07:39:40 +0000 (09:39 +0200)] 
kernel: modules: video: package DRM VRAM helper

bcm27xx DRM packages depend on it.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2 months agokernel: add KERNEL_ARM64_CONTPTE
Álvaro Fernández Rojas [Fri, 9 May 2025 06:59:41 +0000 (08:59 +0200)] 
kernel: add KERNEL_ARM64_CONTPTE

When KERNEL_TRANSPARENT_HUGEPAGE is enabled, build fails due to
missing KERNEL_ARM64_CONTPTE.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2 months agorealtek rtl931x: mark subtarget as source-only 18757/head
Shiji Yang [Fri, 9 May 2025 14:12:11 +0000 (22:12 +0800)] 
realtek rtl931x: mark subtarget as source-only

There are no supported devices on this sub-target. It can be
considered that it is still under development. Therefore,
there is no need to make the buildbot build it every day.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18757
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agoqca-nss-dp: use OpenWrt GIT repo as upstream
Robert Marko [Fri, 9 May 2025 14:17:25 +0000 (16:17 +0200)] 
qca-nss-dp: use OpenWrt GIT repo as upstream

Instead of having to deal with patch files, lets use the newly made
OpenWrt GIT repo as the SSDK upstream[1].

All existing patches have been applied to the same source commit, so
there should be no intended changes.

[1] https://github.com/openwrt/qca-nss-dp.git

Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agoqca-ssdk: use OpenWrt GIT repo as upstream
Robert Marko [Fri, 9 May 2025 14:14:16 +0000 (16:14 +0200)] 
qca-ssdk: use OpenWrt GIT repo as upstream

Instead of having to deal with patch files, lets use the newly made
OpenWrt GIT repo as the SSDK upstream[1].

All existing patches have been applied to the same source commit, so
there should be no intended changes.

[1] https://github.com/openwrt/qca-ssdk.git

Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agogeneric: config-filter: filter out CONFIG_RUSTC_SUPPORTS_* symbols
Robert Marko [Fri, 9 May 2025 12:10:41 +0000 (14:10 +0200)] 
generic: config-filter: filter out CONFIG_RUSTC_SUPPORTS_* symbols

CONFIG_RUSTC_SUPPORTS_* is set based on rustc presence and version,
so we need to filter it out.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agobmips: sercomm-msp430: fix duplicated definition
Álvaro Fernández Rojas [Fri, 9 May 2025 05:23:00 +0000 (07:23 +0200)] 
bmips: sercomm-msp430: fix duplicated definition

This problem arised when adding support for 6.12, but it should be fixed on
older kernels too.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2 months agobmips: add missing PCI drivers include
Álvaro Fernández Rojas [Fri, 9 May 2025 09:46:46 +0000 (11:46 +0200)] 
bmips: add missing PCI drivers include

These drivers should include <linux/platform_device.h>, but this wasn't an
issue on kernels < 6.12.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2 months agoucode: add fix for double registry clear on channel disconnect
Felix Fietkau [Fri, 9 May 2025 10:04:28 +0000 (12:04 +0200)] 
ucode: add fix for double registry clear on channel disconnect

Avoid clobbering registry items of unrelated connections.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2 months agoramips: rt288x: remove default build barriers 18745/head
Shiji Yang [Thu, 8 May 2025 11:23:30 +0000 (19:23 +0800)] 
ramips: rt288x: remove default build barriers

This sub-target is source only now. We don't need to disable build
for specific devices.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18745
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agoramips: rt288x: mark subtarget as source-only
Shiji Yang [Thu, 8 May 2025 11:23:14 +0000 (19:23 +0800)] 
ramips: rt288x: mark subtarget as source-only

Due to RAM/ROM size limitations, this sub-target has been unable
to generate usable images for a long time. Mark them as source-only
to save some resource for the buildbot.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18745
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agolantig: xway_legacy: remove default build barriers
Shiji Yang [Thu, 8 May 2025 11:23:07 +0000 (19:23 +0800)] 
lantig: xway_legacy: remove default build barriers

This sub-target is source only now. We don't need to disable build
for specific devices.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18745
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agolantig: xway_legacy: mark subtarget as source-only
Shiji Yang [Thu, 8 May 2025 11:22:48 +0000 (19:22 +0800)] 
lantig: xway_legacy: mark subtarget as source-only

Due to RAM/ROM size limitations, this sub-target has been unable
to generate usable images for a long time. Mark them as source-only
to save some resource for the buildbot.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18745
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agolantig: ase: remove default build barriers
Shiji Yang [Thu, 8 May 2025 11:22:33 +0000 (19:22 +0800)] 
lantig: ase: remove default build barriers

This sub-target is source only now. We don't need to disable build
for specific devices.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18745
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agolantig: ase: mark subtarget as source-only
Shiji Yang [Thu, 8 May 2025 11:22:16 +0000 (19:22 +0800)] 
lantig: ase: mark subtarget as source-only

Due to RAM/ROM size limitations, this sub-target has been unable
to generate usable images for a long time. Mark them as source-only
to save some resource for the buildbot.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18745
Signed-off-by: Robert Marko <robimarko@gmail.com>
2 months agoimagebuilder: exclude metadata for profiles that have no kernel 18748/head
Eric Fahlgren [Thu, 8 May 2025 22:28:52 +0000 (15:28 -0700)] 
imagebuilder: exclude metadata for profiles that have no kernel

Device profiles that specify 'DEFAULT := n' are being included
in the imagebuilder metadata, specifically in .profiles.mk, even
though there is no kernel built for the device.  This results in
'make info' showing the device as valid, but then 'make image
PROFILE=xxx' failing with 'No rule to make target xxx-kernel.bin ...'

We exclude these profiles from the imagebuilder, avoiding these
errors.

Fixes: https://github.com/openwrt/openwrt/issues/18410
Signed-off-by: Eric Fahlgren <ericfahlgren@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18748
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agorealtek: proper RTL8214FC fibre/copper detection 18724/head
Markus Stockhausen [Tue, 6 May 2025 06:44:43 +0000 (02:44 -0400)] 
realtek: proper RTL8214FC fibre/copper detection

The RTL8214FC currently uses generic PHY functions. That makes it look like a copper
device. Switching to/from fibre works fortunately but the autonegotiation handling
still works on MII_LPA (PHY register 5) as if a copper link is used. Fix that by

- advertising a superset of TP/FIBRE features
- using clause 37 functions when on fibre

Additionally enhance the code of the driver to assist further development.

- log the speed of the inserted module to detect wrongly inserted 10gbase-r modules
- order phy driver functions alphabetically (keep match/name on top)
- remove genphy_loopback as the kernel uses it if not provided

Remark! The driver internally uses PORT_MII for the TP port. Align with that and
report MII to ethtool instead of TP. Other drivers do the same and it can be
changed in the future if needed.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18724
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agounetmsg: fix reconnecting outgoing socket
Felix Fietkau [Fri, 9 May 2025 08:11:26 +0000 (10:11 +0200)] 
unetmsg: fix reconnecting outgoing socket

Due to a typo, the rx channel was deleted after disconnect instead of tx.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 months agokernel: modules: fs: add missing backslash
Daniel Golle [Fri, 9 May 2025 02:46:29 +0000 (03:46 +0100)] 
kernel: modules: fs: add missing backslash

Commit 7db0748b7b ("kernel: modules: split package fs-fscache") modified
the KCONFIG section of KernelPackage/fs-netfs but missed to add a
backslash to escape a linebreak. Add it now.

Fixes: 7db0748b7b ("kernel: modules: split package fs-fscache")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
3 months agomediatek: filogic: increase spi flash memory speed on ZyXEL EX5601 18694/head
Aleksander Jan Bajkowski [Mon, 27 Jan 2025 20:23:50 +0000 (21:23 +0100)] 
mediatek: filogic: increase spi flash memory speed on ZyXEL EX5601

Reduces boot time by 3s on a freshly installed image. This device
has a large flash and the gain can be higher with more packages
installed. According to the datasheet, this is the maximum frequency
supported by the Micron and Macronix chips that are installed in
these devices. Tested on three units over a two month period.

Before:
$ dd if=/dev/mtd5 of=/dev/null bs=10M count=1 status=progress
1+0 records in
1+0 records out
10485760 bytes (10 MB, 10 MiB) copied, 1.51901 s, 6.9 MB/s

After:
$ dd if=/dev/mtd5 of=/dev/null bs=10M count=1 status=progress
1+0 records in
1+0 records out
10485760 bytes (10 MB, 10 MiB) copied, 0.899474 s, 11.7 MB/s

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Link: https://github.com/openwrt/openwrt/pull/18694
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 months agokernel: modules: split package fs-fscache 18661/head
Shiji Yang [Thu, 1 May 2025 03:35:36 +0000 (11:35 +0800)] 
kernel: modules: split package fs-fscache

The module kmod-fs-fscache was merged into kmod-fs-netfs since
6.12 LTS kernel[1]. Therefore, we have to split fs-cachefiles
into a separate package. This patch also removed some outdated
config symbols that have already been removed in 5.15 kernel:

CONFIG_FSCACHE_OBJECT_LIST [2]
CONFIG_{FSCACHE,CACHEFILES}_HISTOGRAM [3]

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=915cd30cdea8811cddd8f59e57dd9dd0a814b76c
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.15.y&id=58f386a73f16cea1f78e8466cc5c402eb7f6fcf8
[3] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.15.y&id=6ae9bd8bb037b7c422bafde746f2338a716f6058
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18661
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 months agokernel: modules: update dependency for kmod-tpm
Shiji Yang [Thu, 1 May 2025 03:35:36 +0000 (11:35 +0800)] 
kernel: modules: update dependency for kmod-tpm

Remove unneeded dependencies asn1 codec and oid.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18661
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 months agokernel: modules: adjust the object files of kmod-fb
Shiji Yang [Thu, 1 May 2025 03:35:36 +0000 (11:35 +0800)] 
kernel: modules: adjust the object files of kmod-fb

kmod-fb no longer depends on fb_io_fops.ko since 6.8 kernel.

Link: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.8.y&id=8813e86f6d82a7931446c3cbc5d596f77d0f1ba6
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18661
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 months agoqualcommax: use upstreamed IPQ5018 PCI support
Robert Marko [Thu, 8 May 2025 19:02:44 +0000 (21:02 +0200)] 
qualcommax: use upstreamed IPQ5018 PCI support

Instead of downstream patch, use the upstreamed version.
Makes it easy to update to 6.12.

Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agoath79: support Mikrotik RouterBOARD 2011-UiAS-2HnD 17617/head
Lech Perczak [Sun, 12 Nov 2023 22:55:39 +0000 (23:55 +0100)] 
ath79: support Mikrotik RouterBOARD 2011-UiAS-2HnD

Mikrotik RouterBOARD 2011 series are AR9344-based wired routers, with
optional 2,4GHz 802.11n 2x2:2 Wi-Fi radio, with desktop or rack-mount
capability, featuring 5 gigabit Ethernet ports and 5 fast Ethernet
ports. Different variants of the board are supported using a single
image.
Bare-bones RouterBOARD 2011LS is supported using the same image.

Specification:
- Power: 10-28V input via 5,5/2,1 DC barrel jack, or terminal block on
  some boards
- CPU: AR9344 at 600 to 750MHz (configurable)
- RAM: 128MB (64MB in early versions) DDR2
- Flash: 128MB (64MB in early versions) NAND flash
- Gigabit Ethernet: 5 ports via AR8327 switch (eth1 to eth5)
- Fast Ethernet: 5 ports via AR9344 built-in switch (eth6 to eth10)
- SFP: single port through AR8327 switch (SGMII at port 6)
- PoE in: passive input up to 28V at eth1
- PoE out: passive output up to 28V at eth10
- USB: optional micro-AB host port or type-A host port
- Console: optional Cisco-style RS232 console at the back of the device,
  on budget devices available as 3.3V UART via testpoints
- LCD: 2" touchscreen-equipped LCD (unsupported)

Installation:
- perform TFTP boot of initramfs image as for netinstall procedure
  typical for Mikrotik devices
- when initramfs image boots, use sysupgrade to perform final
  installation.

If upgrading from ar71xx, clean installation should be performed, as the
devices now uses yafut to handle kernel image.

TODO:
- 64MB NAND variant using K9F1208U0C isn't yet supported, because it
  needs disabling subpage write support for that chip. A proper solution
  would be to fix that in kernel, but I don't have this variant to test
  with currently.
- The same is true for GD9FU1G8F3A NAND, which isn't ONFI compliant and
  needs definition in kernel for proper geometry.
- SFP port probes over I²C and gigabit link is possible, but currently
  the drivers lack support of handling link status information to
  userspace, including swconfig. Link will appear as always up.
  Currently, link status logging can detect something, but status both
  for ports 0 and 6 is logged simultaneously,
  but "swconfig dev switch0 show" will always show link up on port 6.
- Not yet fully known connection to display and touch panel, but some
  documentation is available (seemingly connected via SPI, according to
  Mikrotik's open source code at [1])

[1] https://github.com/robimarko/routeros-GPL

Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17617
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 months agogeneric: 6.12: add new config symbols
Álvaro Fernández Rojas [Thu, 8 May 2025 06:15:48 +0000 (08:15 +0200)] 
generic: 6.12: add new config symbols

Add new config symbols to 6.12 kernel config and move common symbols from x86.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
3 months agoqualcommax: use upstream QMP pipe patch
Robert Marko [Thu, 8 May 2025 16:09:16 +0000 (18:09 +0200)] 
qualcommax: use upstream QMP pipe patch

Passing QMP pipe clocks was upstreamed, but it requires conversion single
QMP node, so backport both of those instead of our downstream patch.

Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agogeneric: 6.12: add Qualcomm PBS symbol
Robert Marko [Thu, 8 May 2025 16:06:38 +0000 (18:06 +0200)] 
generic: 6.12: add Qualcomm PBS symbol

Qualcomm PBS symbols popped up during 6.12 work.

Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agogeneric: 6.12: add Qualcomm PM8916 symbols
Robert Marko [Thu, 8 May 2025 15:35:09 +0000 (17:35 +0200)] 
generic: 6.12: add Qualcomm PM8916 symbols

Qualcomm PM8916 PMIC symbols popped up while doing 6.12 for qualcommax.

Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agoqualcommax: renumber upstreamed patches
Robert Marko [Thu, 8 May 2025 15:50:24 +0000 (17:50 +0200)] 
qualcommax: renumber upstreamed patches

In order to free up some more number space, simply renumber existing
upstreamed patches starting from 0 again.

Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agoqualcommax: ipq50xx: remove ECC user config from board files 18723/head
George Moussalem [Tue, 6 May 2025 06:18:09 +0000 (10:18 +0400)] 
qualcommax: ipq50xx: remove ECC user config from board files

With the spi-qpic-snand driver now supporting reading ECC requirements
from the NAND chip itself, there's no need to set those in the DTS
anymore avoiding issues with devices of the same revision using
different NAND types with varying ECC requirements.

Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18723
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agospi: spi-qpic-snand: update driver with latest patches from upstream
George Moussalem [Tue, 6 May 2025 06:02:27 +0000 (10:02 +0400)] 
spi: spi-qpic-snand: update driver with latest patches from upstream

Updating the spi-qpic-snand driver with the latest patches sent
upstream and remove custom patches.
These patches add error handling fixes, use of right read location in
read ops, removal of unused variable, ability to read user config and
nand chip requirements, and support for 8bits ECC strength.

Tested on: Gl.iNet GL-B3000 & Linksys MR5500, MX2000, MX5500, SPNMX56

Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18723
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agoqualcommax: use upstreamed multiple conf clock patches
Robert Marko [Thu, 8 May 2025 11:27:08 +0000 (13:27 +0200)] 
qualcommax: use upstreamed multiple conf clock patches

Multiple conf support was upstreamed into kernel 6.10, so lets use the
upstreamed patches and mark them as so.

Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agoath11k-firmware: fix legacy FW tarball hash
Robert Marko [Thu, 8 May 2025 11:19:34 +0000 (13:19 +0200)] 
ath11k-firmware: fix legacy FW tarball hash

The legacy FW tarball hash is wrong, fix it.

Fixes: ea83f7de2b02 ("ath11k-firmware: add wifi firmware for IPQ5018")
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agoqualcommax: update kernel version for MP5496 patches
Robert Marko [Thu, 8 May 2025 10:14:42 +0000 (12:14 +0200)] 
qualcommax: update kernel version for MP5496 patches

MP5496 patches are not part of 6.15, but rather will be part of 6.16 as
they are no in 6.15 RC releases but they are in linux-next.

Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agomac80211: ath11k: fix broadcast failures during GTK rekeying 18705/head
Henry Tung [Sun, 4 May 2025 18:29:54 +0000 (11:29 -0700)] 
mac80211: ath11k: fix broadcast failures during GTK rekeying

Revert key_cipher change to NONE when clearing key.
Setting to NONE triggers asserts in the firmware and causes broadcast
drops with ath11k firmware 2.9.0.1, so until a future blob
fixes this, revert this as a workaround.

Imported from
https://git.codelinaro.org/clo/qsdk/oss/system/feeds/wlan-open/-/blob/win.wlan_host_opensource.3.0.r24/patches/ath11k/350-ath11k-Revert-clear-the-keys-properly-when-DISABLE_K.patch

Related discussion links:

- https://github.com/openwrt/openwrt/issues/9555
- https://lore.kernel.org/linux-wireless/Z2Q9POuV-6MIdzRf@pilgrim/T/#t

Signed-off-by: Henry Tung <henryptung@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18705
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agorealtek: rtl838x: fix broadcast flooding with many multicast entries 18733/head
Linus Lüssing [Wed, 7 May 2025 00:50:11 +0000 (02:50 +0200)] 
realtek: rtl838x: fix broadcast flooding with many multicast entries

When many multicast entries are installed broadcast flooding might
potentially stop working for several ports. This is because the layer
2 broadcast flood port mask index has the wrong offset. It should be
9 bits, matching the 2^9 = 512 indexes on rtl838x, not 12.

The wrong offset leads to L2_BC_FLD_PMSK being set to 504, not 511
((511 << 12) >> 9) & 511 = 504). So, as by default an unset PMSK
is set to all ports, the issue would only become noticeable once
many multicast entries are installed, causing the 504th entry to be set
to something other than all ports.

Fixing this by setting the offset to 9 bits, to correctly point to our
511th reserved entry for all ports.

Tested-on: ZyXEL GS1900-24HP v1

Fixes: 28e972b2ea2f ("realtek: Configure initial L2 learning setup")
Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Link: https://github.com/openwrt/openwrt/pull/18733
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agoucode-mod-uline: re-introduce polling loop to fix prompt after line end 18529/head
Felix Fietkau [Wed, 7 May 2025 15:21:38 +0000 (17:21 +0200)] 
ucode-mod-uline: re-introduce polling loop to fix prompt after line end

Introduce a check for the resource data in order to avoid segfaulting
on exit

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 months agoath10k-ct: update to latest version 6.14 from 2025-04-30 18731/head
Paweł Owoc [Tue, 6 May 2025 20:53:49 +0000 (22:53 +0200)] 
ath10k-ct: update to latest version 6.14 from 2025-04-30

In this new version channel 177 is supported.

Dropped patches:
[1] 001-patch-version.patch
[2] 205-ath10k-ct-silence-warning-caused-by-unsupported-retr.patch

[1] [2] https://github.com/greearb/ath10k-ct/commit/8adb310f84b0a90df1f65701b863321e7b2afecd

Signed-off-by: Paweł Owoc <frut3k7@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18731
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agokernel: bump 6.12 to 6.12.27 18728/head
Mieczyslaw Nalewaj [Tue, 6 May 2025 17:47:47 +0000 (19:47 +0200)] 
kernel: bump 6.12 to 6.12.27

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

No patches update required.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/18728
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agoqualcommax: ipq50xx: gl-b3000: add 03_set_oem_name 18656/head
Scott Mercer [Wed, 30 Apr 2025 18:46:51 +0000 (14:46 -0400)] 
qualcommax: ipq50xx: gl-b3000: add 03_set_oem_name

This additional board.d script creates the "/tmp/sysinfo/oem_name" file
and populates it with the proper OEM "supported_devices" metadata entry
to be used by the new fwtool.sh oem detection feature.

(#18554): add oem image dectection to fwtool.sh

Signed-off-by: Scott Mercer <TheRootEd24@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18656
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agogeneric: 6.12: update block NVMEM driver
Daniel Golle [Wed, 7 May 2025 02:58:17 +0000 (03:58 +0100)] 
generic: 6.12: update block NVMEM driver

Update block NVMEM driver based on backported OF partition support.

Note the different MMC card DT binding compared to the previous
downstream solution: Instead of having a 'partitions' subnode inside
a 'block' node, the 'partitions' node now resides directly under the
node representing the card.

In order to make references to the 'boot0' or 'boot1' hw partitions
you will have to define 'partitions-boot0' or 'partitions-boot1', and
move the NVMEM layout into a partition (you may, of course, use
'fixed-partitions' for that, and cover the whole device, if needed).

See also https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/mmc/mmc-card.yaml?h=v6.13

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
3 months agogeneric: 6.12: update fitblk driver for Linux 6.12
Daniel Golle [Wed, 7 May 2025 02:29:42 +0000 (03:29 +0100)] 
generic: 6.12: update fitblk driver for Linux 6.12

Update the uImage.FIT filesystem subimage block driver for use
with Linux 6.12.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
3 months agoramips: update drivers to be compatible with kernel 6.12 18711/head
Mieczyslaw Nalewaj [Fri, 25 Apr 2025 14:59:55 +0000 (16:59 +0200)] 
ramips: update drivers to be compatible with kernel 6.12

Update drivers to be compatible with kernel 6.12:
 - change deprecate function strlcpy to strscpy
 - fix kernel warning "no previous prototype", by static declaration
 - add missing of.h headers

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/18711
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 months agomac80211: rt2x00: use remove_new 18719/head
Mieczyslaw Nalewaj [Mon, 5 May 2025 22:40:56 +0000 (00:40 +0200)] 
mac80211: rt2x00: use remove_new

Easy compability fix for kernel 6.12.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/18719
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 months agoiw: fix WiFi 6 (HE) Scan on big endian platforms 18717/head
Aleksander Jan Bajkowski [Sat, 29 Mar 2025 22:39:19 +0000 (23:39 +0100)] 
iw: fix WiFi 6 (HE) Scan on big endian platforms

On big endian platforms, scans show invalid info for WiFi 6 APs.
This commit backports patches to fix this issue.

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Link: https://github.com/openwrt/openwrt/pull/18717
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agobcm27xx: bcm2712: support all devices 18622/head
Dave Marquard [Sun, 27 Apr 2025 00:39:33 +0000 (17:39 -0700)] 
bcm27xx: bcm2712: support all devices

- RPi 500
- RPi 5 Compute Module
- RPi 5B (bcm2712 d0 rev)

Signed-off-by: Dave Marquard <dave-atx@users.noreply.github.com>
Link: https://github.com/openwrt/openwrt/pull/18622
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
3 months agolinux-firmware: add Raspberry Pi 5 CM NVRAM 18722/head
Dave Marquard [Tue, 6 May 2025 02:33:59 +0000 (02:33 +0000)] 
linux-firmware: add Raspberry Pi 5 CM NVRAM

The RPi 5 Compute Module expects the same NVRAM as the one from RPi 4
on a different file.

Signed-off-by: Dave Marquard <dave-atx@users.noreply.github.com>
Link: https://github.com/openwrt/openwrt/pull/18722
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
3 months agotoolchain/musl: fix build regression on x86_64
Felix Fietkau [Tue, 6 May 2025 12:28:51 +0000 (14:28 +0200)] 
toolchain/musl: fix build regression on x86_64

Fix whitespace mangling which broke matching opcodes in the CFI patch

Signed-off-by: Felix Fietkau <nbd@nbd.name>
3 months agogeneric: fix MIPS -mno-long-calls patchset for 6.12 kernel 18721/head
Shiji Yang [Thu, 1 May 2025 02:18:52 +0000 (10:18 +0800)] 
generic: fix MIPS -mno-long-calls patchset for 6.12 kernel

It seems that we need to override all execmem alloc/free callbacks,
not just for module. This is the default patch behavior in the 6.6
kernel. Fix the warning when the module is loaded:

root@OpenWrt:~# insmod mtd-rw i_want_a_brick=1
[ 1404.954813] mtd-rw: mtd0: setting writeable flag
[ 1404.959643] mtd-rw: mtd5: setting writeable flag
[ 1404.966396] ------------[ cut here ]------------
[ 1404.971119] WARNING: CPU: 0 PID: 8 at mm/vmalloc.c:3361 vfree+0x1ac/0x2c4
[ 1404.978146] Trying to vfree() nonexistent vm area (74cc6c73)
[ 1404.983901] Modules linked in: mtd_rw(O) ath9k(O) ath9k_common(O)...
[ 1405.043696] CPU: 0 UID: 0 PID: 8 Comm: kworker/0:1 Tainted: G        W  O       6.12.25 #0
[ 1405.052118] Tainted: [W]=WARN, [O]=OOT_MODULE
[ 1405.056536] Hardware name:
[ 1405.061222] Workqueue: events do_free_init
[ 1405.065408] Stack : 807865d8 80850000 81823f80 81857df8 00000000 00000d21 81823fd0 800ca130
[ 1405.073924]         81839e48 807865d8 808d20bf 807865d8 81857d1c 00000001 81857ce8 4951640f
[ 1405.082434]         00000000 00000000 807865d8 81857bf8 ffffefff 00000000 ffffffea 00000b5d
[ 1405.090944]         81857c04 00000b5d 808537b0 ffffffff 00000001 00000000 807865d8 81857df8
[ 1405.099453]         00000000 00000d21 81823fd0 8085119c 00000018 803f4828 00000000 80a00000
[ 1405.107963]         ...
[ 1405.110454] Call Trace:
[ 1405.112935] [<80066910>] show_stack+0x28/0xf0
[ 1405.117392] [<8069f340>] dump_stack_lvl+0x48/0x7c
[ 1405.122186] [<80084ab8>] __warn+0x9c/0x118
[ 1405.126357] [<80084bc0>] warn_slowpath_fmt+0x8c/0xac
[ 1405.131399] [<801f02ec>] vfree+0x1ac/0x2c4
[ 1405.135570] [<800dde54>] do_free_init+0x50/0x84
[ 1405.140172] [<8009f4a0>] process_one_work+0x1b0/0x3dc
[ 1405.145312] [<800a022c>] worker_thread+0x308/0x478
[ 1405.150178] [<800a81c0>] kthread+0xf4/0x11c
[ 1405.154455] [<80061b58>] ret_from_kernel_thread+0x14/0x1c
[ 1405.159938]
[ 1405.161772] ---[ end trace 0000000000000000 ]---

Fixes: a9c0f28951fd ("generic: 6.12: move MIPS reloc patch from pending to hack and rework")
Ref: https://lore.kernel.org/all/20240505160628.2323363-1-rppt@kernel.org/
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Tested-by: Tony Ambardar <itugrok@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/18721
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agoimx: coretexa53: add network config for single-port Gateworks Venice boards 18629/head
Tim Harvey [Mon, 14 Apr 2025 17:34:31 +0000 (10:34 -0700)] 
imx: coretexa53: add network config for single-port Gateworks Venice boards

Add network config for single-port Gateworks venice boards such that the
ethernet port is the WAN port instead of the default being a LAN port.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Link: https://github.com/openwrt/openwrt/pull/18629
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agorealtek: fix cpu port link type 18691/head
Markus Stockhausen [Sat, 3 May 2025 06:35:41 +0000 (02:35 -0400)] 
realtek: fix cpu port link type

Some DTS files have a qsgmii link mode for the CPU port. This does
not harm but it is wrong. The CPU port of the realtek switch is always
directly connected to the switch by some unknown wiring and should
therefore be described as internal. Align the wrongly defined DTS
files to the standard.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18691
Signed-off-by: Robert Marko <robimarko@gmail.com>
3 months agogeneric: 6.12: sync Realtek PHY patches with upstream 18715/head
Álvaro Fernández Rojas [Mon, 5 May 2025 11:01:55 +0000 (13:01 +0200)] 
generic: 6.12: sync Realtek PHY patches with upstream

- Fix order of patches (3d483a10327f was merged before 34d5a86ff7bb).
- Reorganize patch numbers now that < 6.12 patches are no longer needed.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
3 months agogeneric: 6.12: backport hwmon_ops static visibility
Álvaro Fernández Rojas [Mon, 5 May 2025 11:35:59 +0000 (13:35 +0200)] 
generic: 6.12: backport hwmon_ops static visibility

This patch was added on linux v6.13 in order to avoid simple is_visible
functions on hwmon drivers.
See https://github.com/torvalds/linux/commit/79bc0af904db647979c735563299c9b0d820e432

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
3 months agogeneric: 6.12: sync r8169 patches with upstream
Álvaro Fernández Rojas [Mon, 5 May 2025 10:54:01 +0000 (12:54 +0200)] 
generic: 6.12: sync r8169 patches with upstream

Upstream e2015942e90a couldn't be backported to 6.6 because the following
symbols were missing:
- disable_work
- disable_work_sync
- enable_work
See https://github.com/torvalds/linux/commit/e2015942e90a021151a5751776f35830ba063be7

Upstream 34e5ededf4b8 couldn't be backported to 6.6 because the following
symbol was missing:
- pcim_iomap_region
See https://github.com/torvalds/linux/commit/34e5ededf4b8ad4c9e58f0cab8596e26c8fa59a2

Reorganize patch numbers now that < 6.12 patches are no longer needed.

The following patches still differ from upstream:
e340bff27e63
  phy_set_eee_broken symbol is missing in 6.12
  https://github.com/torvalds/linux/commit/e340bff27e63

The following patches can't be backported to 6.12 due to missing symbols:
5e7a74b6a357
  phy_disable_eee_mode symbol is missing in 6.12
  https://github.com/torvalds/linux/commit/5e7a74b6a357

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>