On Fri, Dec 08, 2017 at 07:46:56PM +0100, Alexander Steffen wrote: > By setting cs_change=1 multiple messages are kept within the same > transaction, i.e. the CS line is not released after the first message. This > is fine during normal transactions, when the last message sets cs_change=0, > so that the CS line is released at the end. > > But when transactions cannot be completed, e.g. when the wait state > handling times out, the CS line is not released before leaving the > function, because no message is sent with cs_change=0. This breaks future > SPI transactions, so ensure that the CS line is correcly released in this > error case by sending an empty message. > > Signed-off-by: Alexander Steffen <Alexander.Steffen@xxxxxxxxxxxx> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@xxxxxxxxxxxxxxx> /Jarkko