[PATCH 0/2] Add sysfs attributes to cros-ec-typec
From: Andrei Kuchynski
Date: Mon Feb 03 2025 - 08:00:36 EST
This patch series adds sysfs attributes to expose the state of EC.
These attributes provide user-space applications with a read-only view of
the EC state, eliminating the need for ioct calls and facilitating
diagnostics.
Tested on a ChromeOS Brya device with kernel 6.6. Verified that user-space
applications can correctly read the new sysfs attributes.
Andrei Kuchynski (2):
platform/chrome: cros_ec_typec: Expose PD mux status via sysfs
platform/chrome: cros_ec_typec: Expose AP_MODE_ENTRY feature state via
sysfs
.../ABI/testing/sysfs-class-chromeos | 20 ++++++
drivers/platform/chrome/cros_ec_sysfs.c | 71 +++++++++++++++++++
2 files changed, 91 insertions(+)
--
2.48.1.362.g079036d154-goog