From 118359c83efa0758144489fd5e12cc6f5bdbad4c Mon Sep 17 00:00:00 2001 From: hyx0329 Date: Thu, 18 Dec 2025 13:52:27 +0800 Subject: [PATCH] fix(usb): Prevent unexpected USB disconnection caused by USB SOF (#3070) ZMK doesn't use SOF. Disable this to prevent unexpected USB disconnection. The disconnection is observed under 3 circumstances on a Linux host: 1. Keyboard just performed a firmware upgrade and USB is kept connected. 2. Keyboard is woken from USB power source and USB is kept connected. 3. Keyboard is connected when host is booting, and when Linux is just initialized. Disabling SOF processing will not affect boot protocol switching. Tested on Makerdiary M60. --- app/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/app/Kconfig b/app/Kconfig index 770c6ee1c..e1c4ada9f 100644 --- a/app/Kconfig +++ b/app/Kconfig @@ -129,7 +129,6 @@ config ZMK_USB_BOOT bool "USB Boot Protocol Support" depends on ZMK_USB select USB_HID_BOOT_PROTOCOL - select USB_DEVICE_SOF config USB_DEVICE_INITIALIZE_AT_BOOT default n