[PATCH 0/2] Add sysfs attributes to cros-ec-typec

Andrei Kuchynski posted 2 patches 1 year ago
.../ABI/testing/sysfs-class-chromeos          | 20 ++++++
drivers/platform/chrome/cros_ec_sysfs.c       | 71 +++++++++++++++++++
2 files changed, 91 insertions(+)
[PATCH 0/2] Add sysfs attributes to cros-ec-typec
Posted by Andrei Kuchynski 1 year ago
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
Re: [PATCH 0/2] Add sysfs attributes to cros-ec-typec
Posted by Tzung-Bi Shih 1 year ago
On Mon, Feb 03, 2025 at 12:59:45PM +0000, Andrei Kuchynski wrote:
> 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.
> 
> [...]

Applied to

    https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git for-next

[1/2] platform/chrome: cros_ec_sysfs: Expose PD mux status
      commit: e6a3215f78716d25ad60b002fd0585c04ffd5d01
[2/2] platform/chrome: cros_ec_sysfs: Expose AP_MODE_ENTRY feature state
      commit: 435a3d78b87a93c52a4f84e36ba4a0857554c958

Thanks!