mbox series

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

Message ID 20250203125947.2701106-1-akuchynski@chromium.org (mailing list archive)
Headers show
Series Add sysfs attributes to cros-ec-typec | expand

Message

Andrei Kuchynski Feb. 3, 2025, 12:59 p.m. UTC
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(+)

Comments

Tzung-Bi Shih Feb. 5, 2025, 4:22 a.m. UTC | #1
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!