Shawn Nematbakhsh 001dde9400 mfd: cros ec: spi: Fix "in progress" error signaling
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-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
2017-11-29 16:29:46 +00:00
..
2016-11-29 08:21:33 +00:00
2017-07-11 09:55:47 -07:00
2017-11-16 09:15:57 -08:00
2017-11-16 09:15:57 -08:00
2017-07-18 08:27:18 +01:00
2015-10-30 17:19:51 +00:00
2017-09-04 14:49:04 +01:00
2016-08-10 09:25:18 +01:00
2016-08-10 09:25:18 +01:00
2017-04-27 09:25:04 +01:00
2015-08-11 15:09:01 +01:00
2017-11-29 16:29:36 +00:00
2015-08-11 15:09:01 +01:00
2015-09-04 11:46:02 -07:00