]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/chrome: cros_ec_sysfs: Expose PD mux status
authorAndrei Kuchynski <akuchynski@chromium.org>
Mon, 3 Feb 2025 12:59:46 +0000 (12:59 +0000)
committerTzung-Bi Shih <tzungbi@kernel.org>
Wed, 5 Feb 2025 04:02:27 +0000 (04:02 +0000)
commite6a3215f78716d25ad60b002fd0585c04ffd5d01
treec7c5324db58122dafef2249708f75e5bf7476ddc
parentd83c45aeec9b223fe6db4175e9d1c4f5699cc37a
platform/chrome: cros_ec_sysfs: Expose PD mux status

This adds sysfs attribute /sys/class/chromeos/cros_ec/usbpdmuxinfo
to expose the PD mux status for each Type-C port.
This allows user-space applications to easily determine
the current mux state without using ioctls.

Signed-off-by: Andrei Kuchynski <akuchynski@chromium.org>
Link: https://lore.kernel.org/r/20250203125947.2701106-2-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