]> www.infradead.org Git - users/willy/pagecache.git/commit
platform/chrome: cros_ec_sysfs: Expose AP_MODE_ENTRY feature state
authorAndrei Kuchynski <akuchynski@chromium.org>
Mon, 3 Feb 2025 12:59:47 +0000 (12:59 +0000)
committerTzung-Bi Shih <tzungbi@kernel.org>
Wed, 5 Feb 2025 04:03:31 +0000 (04:03 +0000)
commit435a3d78b87a93c52a4f84e36ba4a0857554c958
tree40044c43258be62f1ca84421debfe901126a48e4
parente6a3215f78716d25ad60b002fd0585c04ffd5d01
platform/chrome: cros_ec_sysfs: Expose AP_MODE_ENTRY feature state

This adds sysfs attribute /sys/class/chromeos/cros_ec/ap_mode_entry
to expose the status of the AP_MODE_ENTRY feature. This attribute
indicate whether the EC requires direction from the Application
Processor (AP) before entering Type-C alternate modes or USB4 mode.
This allows user-space applications to easily determine if the AP needs
to be involved in mode entry.

Signed-off-by: Andrei Kuchynski <akuchynski@chromium.org>
Link: https://lore.kernel.org/r/20250203125947.2701106-3-akuchynski@chromium.org
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Documentation/ABI/testing/sysfs-class-chromeos
drivers/platform/chrome/cros_ec_sysfs.c