BACKPORT: FROMGIT: 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 Bug: 332543320 (cherry picked from commit 7f70b89b https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/ usb-next) Change-Id: I8c932f8921bb4466c404a47a7827f06e92cda5f4 Signed-off-by:
Guan-Yu Lin <guanyulin@google.com> [guanyulin: use ANDROID_KABI_USE to preserve KMI] Signed-off-by:
Will McVicker <willmcvicker@google.com> [willmcvicker: updated the ABI stg]
Loading
Please sign in to comment