]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: host: xhci-sideband: delegate offload_usage tracking to class drivers
authorGuan-Yu Lin <guanyulin@google.com>
Wed, 1 Apr 2026 12:32:18 +0000 (12:32 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Apr 2026 07:43:30 +0000 (09:43 +0200)
commit5abbe6ecc6203355c770bf232ade88e29c960049
tree540bf17470cff42dd337a468ac7e1e47f0e5a220
parentbd3d245b0fef571f93504904df62b8865b1c0d34
usb: host: xhci-sideband: delegate offload_usage tracking to class drivers

Remove usb_offload_get() and usb_offload_put() from the xHCI sideband
interrupter creation and removal paths.

The responsibility of manipulating offload_usage now lies entirely with
the USB class drivers. They have the precise context of when an offload
data stream actually starts and stops, ensuring a much more accurate
representation of offload activity for power management.

Cc: stable <stable@kernel.org>
Fixes: ef82a4803aab ("xhci: sideband: add api to trace sideband usage")
Signed-off-by: Guan-Yu Lin <guanyulin@google.com>
Tested-by: Hailong Liu <hailong.liu@oppo.com>
Tested-by: hailong.liu@oppo.com
Acked-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://patch.msgid.link/20260401123238.3790062-3-guanyulin@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-sideband.c
sound/usb/qcom/qc_audio_offload.c