Commit 11464453 authored by Guan-Yu Lin's avatar Guan-Yu Lin Committed by William McVicker
Browse files

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: default avatarGuan-Yu Lin <guanyulin@google.com>
Link: https://lore.kernel.org/r/20250911142051.90822-3-guanyulin@google.com


Signed-off-by: default avatarGreg 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: default avatarGuan-Yu Lin <guanyulin@google.com>
[guanyulin: use ANDROID_KABI_USE to preserve KMI]
Signed-off-by: default avatarWill McVicker <willmcvicker@google.com>
[willmcvicker: updated the ABI stg]
parent cbd122ab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment