]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: offload: add apis for offload usage tracking
authorGuan-Yu Lin <guanyulin@google.com>
Thu, 11 Sep 2025 14:20:14 +0000 (14:20 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Sep 2025 12:08:02 +0000 (14:08 +0200)
commit7f70b89b2be66c03ddc76d3ad8aebeeec4a9c505
tree811c870701aa017e8f95dd037c0ca8fb3210a851
parentddb473a51b4bf33d040d827ae9a8724ee5ef1a36
usb: offload: add apis for offload usage tracking

Introduce offload_usage and corresponding apis to track offload usage
on each USB device. Offload denotes that there is another co-processor
accessing the USB device via the same USB host controller. To optimize
power usage, it's essential to monitor whether the USB device is
actively used by other co-processor. This information is vital when
determining if a USB device can be safely suspended during system power
state transitions.

Signed-off-by: Guan-Yu Lin <guanyulin@google.com>
Link: https://lore.kernel.org/r/20250911142051.90822-3-guanyulin@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20250911142051.90822-3-guanyulin@google.com
drivers/usb/core/Makefile
drivers/usb/core/offload.c [new file with mode: 0644]
drivers/usb/core/usb.c
include/linux/usb.h