From 7768bf3eea4140e6c6b22b217fef8812a2833653 Mon Sep 17 00:00:00 2001 From: mcc45tr Date: Sat, 5 Sep 2026 02:57:53 +0300 Subject: [PATCH] Input: nabu: use explicit modern workqueue modes Linux 7.2 warns when drivers enqueue work on the deprecated system_wq or allocate a queue without selecting per-CPU or unbound execution. Keep keyboard debounce on the direct system per-CPU queue and preserve serialized touch ESD recovery with an ordered queue. Signed-off-by: mcc45tr --- drivers/input/misc/xiaomi-nabu-keyboard.c | 2 +- drivers/input/touchscreen/nt36523/nt36xxx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/misc/xiaomi-nabu-keyboard.c b/drivers/input/misc/xiaomi-nabu-keyboard.c index 24c6c1da6d9a..d932443e3aaa 100644 --- a/drivers/input/misc/xiaomi-nabu-keyboard.c +++ b/drivers/input/misc/xiaomi-nabu-keyboard.c @@ -91,7 +91,7 @@ static irqreturn_t nabu_keyboard_detect_irq(int irq, void *data) */ if (READ_ONCE(keyboard->wake_enabled)) pm_wakeup_event(keyboard->dev, 500); - mod_delayed_work(system_wq, &keyboard->detect_work, + mod_delayed_work(system_percpu_wq, &keyboard->detect_work, msecs_to_jiffies(NABU_KEYBOARD_DEBOUNCE_MS)); return IRQ_HANDLED; } diff --git a/drivers/input/touchscreen/nt36523/nt36xxx.c b/drivers/input/touchscreen/nt36523/nt36xxx.c index 95a1cd586ad6..7560d66af434 100644 --- a/drivers/input/touchscreen/nt36523/nt36xxx.c +++ b/drivers/input/touchscreen/nt36523/nt36xxx.c @@ -1609,7 +1609,7 @@ static int32_t nvt_ts_probe(struct spi_device *client) NVT_LOG("NVT_TOUCH_ESD_PROTECT is %d\n", NVT_TOUCH_ESD_PROTECT); #if NVT_TOUCH_ESD_PROTECT INIT_DELAYED_WORK(&nvt_esd_check_work, nvt_esd_check_func); - nvt_esd_check_wq = alloc_workqueue("nvt_esd_check_wq", WQ_MEM_RECLAIM, 1); + nvt_esd_check_wq = alloc_ordered_workqueue("nvt_esd_check_wq", WQ_MEM_RECLAIM); if (!nvt_esd_check_wq) { NVT_ERR("nvt_esd_check_wq create workqueue failed\n"); ret = -ENOMEM; -- 2.55.0