Re: [PATCH] platform/chrome: cros_ec_typec: Add support for setting USB mode via sysfs
From: Tzung-Bi Shih
Date: Thu Feb 20 2025 - 20:46:17 EST
On Mon, Feb 10, 2025 at 01:04:19PM +0000, Andrei Kuchynski wrote:
> This patch implements USB mode setting via a sysfs interface in
> cros_ec_typec driver. User-space applications can now change the current
> USB mode by writing to "usb_mode" sysfs entry, replacing the previous
> ioctl-based method.
> The embedded controller (EC) currently supports only entering USB4 mode
> and exiting all modes (including altmodes). Both of these operations
> trigger Data Reset Message, even if no USB Mode is active.
> Additionally, the patch exposes the USB modes supported by the port via
> "usb_capability" sysfs attribute.
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git for-next
[1/1] platform/chrome: cros_ec_typec: Add support for setting USB mode via sysfs
commit: 9fc83373f0ffb8834da48b1446a5c2fef9525bb1
Thanks!