Re: [PATCH v2] platform/chrome: cros_ec_typec: Poll for role swap completion

From: Tzung-Bi Shih

Date: Wed Oct 07 2026 - 22:21:00 EST


On Wed, Oct 07, 2026 at 05:38:37AM +0200, Marek Maslanka wrote:
> Depending on the EC USB-C stack (TCPMv2 vs PDC), EC_CMD_USB_PD_CONTROL
> with a role swap request may either block until the swap completes or
> queue the request asynchronously for the EC PD task and return the
> current (pre-swap) role in the immediate response. On platforms where
> the EC handles the swap asynchronously, checking resp.role right after
> issuing the swap command sees the old role and fails with -EIO before
> the USB PD handshake completes.
>
> [...]

Applied to

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

[1/1] platform/chrome: cros_ec_typec: Poll for role swap completion
commit: 2d3ee0bdb321ad84d9cf18d4bfd2b839293a695d

Thanks!