Skip to contentSkip to conversation

mxs/spi: Restart the block after unsuccessful transfer

PATCH New Marek Vasut 2 participants 2 messages Aug 24, 2012 – Aug 27, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mxs/spi: Restart the block after unsuccessful transfer

Restart the SSP block in case the SSP transfer failed in any way. The block hung in some cases otherwise.

Cc Chris Ball <[email protected]>
Cc Shawn Guo <[email protected]>
Cc Mark Brown <[email protected]>
Cc Fabio Estevam <[email protected]>
---
 drivers/spi/spi-mxs.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/spi/spi-mxs.c +3 -1
index 746359e..8075683 100644
@@ -445,8 +445,10 @@ static int mxs_spi_transfer_one(struct spi_master *master,
 		}
 
 		m->actual_length += t->len;
-		if (status)
+		if (status) {
+			stmp_reset_block(ssp->base);
 			break;
+		}
 
 		first = last = 0;
 	}
Signature · 1 line
1.7.10.4
Applied
#1 lore raw

PATCH 1/1 mxs/spi: Restart the block after unsuccessful transfer

Quoted 2 lines · Marek Vasut

Restart the SSP block in case the SSP transfer failed in any way. The block hung in some cases otherwise.

Applied, thanks.