Re: [PATCH v5] platform/chrome: cros_ec_proto: Fix deferred response
From: Tzung-Bi Shih
Date: Mon Aug 31 2026 - 22:24:30 EST
On Mon, Aug 31, 2026 at 06:51:26PM -0600, Rob Barnes wrote:
> When cros_ec_wait_until_complete() succeeds after an
> EC_RES_IN_PROGRESS status, it previously returned the 4-byte
> transfer size of EC_CMD_GET_COMMS_STATUS. For 0-byte payload
> commands (such as EC_CMD_FLASH_ERASE), userspace received 4
> bytes instead of 0, causing response size validation errors.
> For commands expecting non-zero response payloads, the kernel
> exited without issuing EC_CMD_RESEND_RESPONSE, leaving response
> buffers uninitialized.
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git for-next
[1/1] platform/chrome: cros_ec_proto: Fix deferred response
commit: c55749415623a58eba3eb527da023d29b43fbf5d
Thanks!