[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171129121123.7zg63mjy7pufokg5@dell>
Date: Wed, 29 Nov 2017 12:11:23 +0000
From: Lee Jones <lee.jones@...aro.org>
To: Shawn Nematbakhsh <shawnn@...omium.org>
Cc: linux-kernel@...r.kernel.org, jonathanh@...dia.com,
briannorris@...omium.org
Subject: Re: [PATCH] mfd: cros ec: spi: Fix "in progress" error signaling
On Wed, 27 Sep 2017, Shawn Nematbakhsh wrote:
> For host commands that take a long time to process, cros ec can return
> early by signaling a EC_RES_IN_PROGRESS result. The host must then poll
> status with EC_CMD_GET_COMMS_STATUS until completion of the command.
>
> None of the above applies when data link errors are encountered. When
> errors such as EC_SPI_PAST_END are encountered during command
> transmission, it usually means the command was not received by the EC.
> Treating such errors as if they were 'EC_RES_IN_PROGRESS' results is
> almost always the wrong decision, and can result in host commands
> silently being lost.
>
> Reported-and-tested-by: Jon Hunter <jonathanh@...dia.com>
> Signed-off-by: Shawn Nematbakhsh <shawnn@...omium.org>
> ---
> drivers/mfd/cros_ec_spi.c | 52 ++++++++++++++++++++++-------------------------
> 1 file changed, 24 insertions(+), 28 deletions(-)
Applied, thanks.
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
Powered by blists - more mailing lists