Skip to content

Commit

Permalink
ath79: increase the rfkill debounce interval for TP-Link Archer C7 v2
Browse files Browse the repository at this point in the history
Due to circuit issue or silicon defect, sometimes the WiFi switch button
of the Archer C7 v2 can be accidentally triggered multiple times in one
second. This will cause WiFi to be unexpectedly shut down and trigger
'irq 23: nobody cared'[1] warning. Increasing the key debounce interval
to 1000 ms can fix this issue. This patch also add the missing rfkill
key label.

[1] Warning Log:
```
[87765.218511] irq 23: nobody cared (try booting with the "irqpoll" option)
[87765.225331] CPU: 0 PID: 317 Comm: irq/23-keys Not tainted 5.15.118 #0
...
[87765.486246] handlers:
[87765.488543] [<85257547>] 0x800c29a0 threaded [<5c6328a2>] 0x80ffe0b8 [gpio_button_hotplug@4cf73d00+0x1a00]
[87765.498364] Disabling IRQ #23
```

Fixes: openwrt/openwrt#13010
Fixes: openwrt/openwrt#12167
Fixes: openwrt/openwrt#11191
Fixes: openwrt/openwrt#7835

Tested-by: Hans Hasert
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
  • Loading branch information
DragonBluep authored and hauke committed Oct 29, 2023
1 parent f025135 commit e32f70e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion target/linux/ath79/dts/qca9558_tplink_archer-c7-v2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@

&keys {
rfkill {
label = "rfkill";
gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RFKILL>;
linux,input-type = <EV_SW>;
debounce-interval = <60>;
debounce-interval = <1000>;
};
};

Expand Down

0 comments on commit e32f70e

Please sign in to comment.