|
@@ -395,8 +395,10 @@ static int ifx_spi_decode_spi_header(unsigned char *buffer, int *length,
|
|
|
|
|
|
if (h1 == 0 && h2 == 0) {
|
|
if (h1 == 0 && h2 == 0) {
|
|
*received_cts = 0;
|
|
*received_cts = 0;
|
|
|
|
+ *more = 0;
|
|
return IFX_SPI_HEADER_0;
|
|
return IFX_SPI_HEADER_0;
|
|
} else if (h1 == 0xffff && h2 == 0xffff) {
|
|
} else if (h1 == 0xffff && h2 == 0xffff) {
|
|
|
|
+ *more = 0;
|
|
/* spi_slave_cts remains as it was */
|
|
/* spi_slave_cts remains as it was */
|
|
return IFX_SPI_HEADER_F;
|
|
return IFX_SPI_HEADER_F;
|
|
}
|
|
}
|
|
@@ -688,6 +690,7 @@ static void ifx_spi_complete(void *ctx)
|
|
ifx_dev->rx_buffer + IFX_SPI_HEADER_OVERHEAD,
|
|
ifx_dev->rx_buffer + IFX_SPI_HEADER_OVERHEAD,
|
|
(size_t)actual_length);
|
|
(size_t)actual_length);
|
|
} else {
|
|
} else {
|
|
|
|
+ more = 0;
|
|
dev_dbg(&ifx_dev->spi_dev->dev, "SPI transfer error %d",
|
|
dev_dbg(&ifx_dev->spi_dev->dev, "SPI transfer error %d",
|
|
ifx_dev->spi_msg.status);
|
|
ifx_dev->spi_msg.status);
|
|
}
|
|
}
|