26 Oct
2023
26 Oct
'23
5:09 p.m.
On Thu, Oct 26, 2023 at 04:05:58PM +0100, Stefan Binding wrote:
The existing code checks for the correct state transition after sending a command. However, it is possible for the message box to return -1, which indicates an error, if an error has occurred in the firmware. We can detect if the error has occurred, and return a different error. In addition, there is no recovering from a CSPL error, so the retry mechanism is not needed in this case, and we can return immediately.
Acked-by: Mark Brown broonie@kernel.org