Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c895db0f authored by Marek Vasut's avatar Marek Vasut Committed by Mark Brown
Browse files

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.

Signed-off-by: default avatarMarek Vasut <marex@denx.de>
Cc: Chris Ball <cjb@laptop.org>
Cc: Shawn Guo <shawn.guo@linaro.org>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 4ad1e5b5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -439,8 +439,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;
	}