Linux USB
 help / color / mirror / Atom feed
* [PATCH 0/2] USB: core: Disconnect a parent hub on suspend for HyperX QuadCast S
@ 2026-11-19 22:22 Oleh Kurudz via B4 Relay
  2026-11-19 22:22 ` [PATCH 1/2] USB: core: Add USB_QUIRK_DISCONNECT_PARENT_SUSPEND Oleh Kurudz via B4 Relay
  2026-11-19 22:22 ` [PATCH 2/2] USB: quirks: Add USB_QUIRK_DISCONNECT_PARENT_SUSPEND for HyperX QuadCast S Oleh Kurudz via B4 Relay
  0 siblings, 2 replies; 5+ messages in thread
From: Oleh Kurudz via B4 Relay @ 2026-11-19 22:22 UTC (permalink / raw)
  To: Jonathan Corbet, Shuah Khan, Randy Dunlap, Greg Kroah-Hartman
  Cc: Alan Stern, linux-doc, linux-kernel, linux-usb, Oleh Kurudz

The HyperX QuadCast S microphone is an audio function and an HID (RGB)
function behind a hub built into the microphone. During system suspend
the HID function drops off that hub, and the hub then wakes the system
even though remote wakeup is disabled for it. On s2idle machines the
suspend bounces back within about a second. Users report the same
symptom online, with unplugging the microphone as the usual workaround.

The existing USB_QUIRK_DISCONNECT_SUSPEND would fix this if it were set
on the hub, but the hub is a generic Huasheng 214b:7250 chip, and setting
the quirk on it would also stop keyboards behind other hubs with that
chip from waking the system. So patch 1 adds a quirk for the child
device that makes usb_suspend() disable the upstream port of its parent
hub, and patch 2 sets it for the two QuadCast S functions.

Other QuadCast models (QuadCast, QuadCast 2, the HP-era 03f0:xxxx IDs)
may have the same problem, but I only have the QuadCast S to test with.
They can be tried with usbcore.quirks=<vid>:<pid>:s.

Tested on usb-next (7.4.0-rc3) on an AMD laptop with s2idle.

How this was made: I had been working around the problem with a
systemd-sleep hook that disabled the microphone's upstream port, and
asked an AI coding assistant (Claude, claude-opus-5-5) to turn it into
a kernel fix. It read the USB core code, proposed the approach, wrote
both patches and the changelogs, and built the test kernel. I reviewed
the patches and ran the tests on my laptop: with the quirk cleared via
usbcore.quirks the bouncing suspend is reproducible, with it the system
stays suspended. checkpatch.pl --strict is clean and each patch builds
on its own with W=1.

Signed-off-by: Oleh Kurudz <admin@or1k.net>
---
Oleh Kurudz (2):
      USB: core: Add USB_QUIRK_DISCONNECT_PARENT_SUSPEND
      USB: quirks: Add USB_QUIRK_DISCONNECT_PARENT_SUSPEND for HyperX QuadCast S

 Documentation/admin-guide/kernel-parameters.txt |  5 +++++
 drivers/usb/core/driver.c                       | 20 +++++++++++++++++++-
 drivers/usb/core/quirks.c                       |  9 +++++++++
 include/linux/usb/quirks.h                      |  7 +++++++
 4 files changed, 40 insertions(+), 1 deletion(-)
---
base-commit: f11fe7603df07fbb9fa02b0d385c1696c87a6dab
change-id: 20261120-quadcast-s-suspend-b1d21389ac8a

Best regards,
-- 
Oleh Kurudz <admin@or1k.net>



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-19 22:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-19 22:22 [PATCH 0/2] USB: core: Disconnect a parent hub on suspend for HyperX QuadCast S Oleh Kurudz via B4 Relay
2026-11-19 22:22 ` [PATCH 1/2] USB: core: Add USB_QUIRK_DISCONNECT_PARENT_SUSPEND Oleh Kurudz via B4 Relay
2026-11-19 22:30   ` sashiko-bot
2026-11-19 22:22 ` [PATCH 2/2] USB: quirks: Add USB_QUIRK_DISCONNECT_PARENT_SUSPEND for HyperX QuadCast S Oleh Kurudz via B4 Relay
2026-11-19 22:27   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox