]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mt76: remove obsolete patches
authorFelix Fietkau <nbd@nbd.name>
Wed, 24 Jun 2026 10:33:11 +0000 (12:33 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 24 Jun 2026 10:33:34 +0000 (12:33 +0200)
Already included in the last update

Fixes: a0c5a58123fd ("mt76: update to Git HEAD (2026-06-23)"
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/kernel/mt76/patches/002-use-hrtimer_setup-in-mt76x02u-beacon-init.patch [deleted file]
package/kernel/mt76/patches/003-pass-LED-define-via-ccflags-y.patch [deleted file]

diff --git a/package/kernel/mt76/patches/002-use-hrtimer_setup-in-mt76x02u-beacon-init.patch b/package/kernel/mt76/patches/002-use-hrtimer_setup-in-mt76x02u-beacon-init.patch
deleted file mode 100644 (file)
index 705104c..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-From a95e567eb0e06d460dee234f9c845fbfb215ab11 Mon Sep 17 00:00:00 2001
-From: Mieczyslaw Nalewaj <namiltd@yahoo.com>
-Date: Thu, 29 Jan 2026 16:36:25 +0100
-Subject: [PATCH] wifi: 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>
----
- mt76x02_usb_core.c | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/mt76x02_usb_core.c b/mt76x02_usb_core.c
-index c94c2f661..3a28a8cc1 100644
---- a/mt76x02_usb_core.c
-+++ b/mt76x02_usb_core.c
-@@ -264,8 +264,8 @@ void mt76x02u_init_beacon_config(struct mt76x02_dev *dev)
-       };
-       dev->beacon_ops = &beacon_ops;
--      hrtimer_init(&dev->pre_tbtt_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
--      dev->pre_tbtt_timer.function = mt76x02u_pre_tbtt_interrupt;
-+      hrtimer_setup(&dev->pre_tbtt_timer, mt76x02u_pre_tbtt_interrupt, CLOCK_MONOTONIC,
-+                    HRTIMER_MODE_REL);
-       INIT_WORK(&dev->pre_tbtt_work, mt76x02u_pre_tbtt_work);
-       mt76x02_init_beacon_config(dev);
diff --git a/package/kernel/mt76/patches/003-pass-LED-define-via-ccflags-y.patch b/package/kernel/mt76/patches/003-pass-LED-define-via-ccflags-y.patch
deleted file mode 100644 (file)
index 243d4ef..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-From: Mieczyslaw Nalewaj <namiltd@yahoo.com>
-Date: Thu, 2 Apr 2026 19:01:10 +0200
-Subject: Subject: [PATCH] mt76: pass LED define via ccflags-y
-
-Replace the deprecated EXTRA_CFLAGS with ccflags-y so that
-the -DCONFIG_MT76_LEDS define is applied correctly by the kernel
-build system. EXTRA_CFLAGS is no longer honored by recent
-kbuilds[1]; ccflags-y is the supported variable and works
-on kernels 6.12 and 6.18.
-
-1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.18.20&id=f77bf01425b11947eeb3b5b54685212c302741b8
-
-Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
----
- Makefile | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
---- a/Makefile
-+++ b/Makefile
-@@ -1,5 +1,5 @@
- # SPDX-License-Identifier: BSD-3-Clause-Clear
--EXTRA_CFLAGS += -Werror -DCONFIG_MT76_LEDS
-+ccflags-y += -Werror -DCONFIG_MT76_LEDS
- obj-m := mt76.o
- obj-$(CONFIG_MT76_USB) += mt76-usb.o
- obj-$(CONFIG_MT76_SDIO) += mt76-sdio.o