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.
This commit is contained in:
hyx0329 2025-12-18 13:52:27 +08:00 committed by GitHub
parent edb36b5838
commit 118359c83e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 1 deletions

View File

@ -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