Linux-SPI Archive on
 help / color / Atom feed
From: Marek Vasut <>
Cc: Marek Vasut <>,
	Fabio Estevam
	Shawn Guo <>,
	Mark Brown
	Chris Ball <>,
Subject: [PATCH] mxs/spi: Restart the block after unsuccessful transfer
Date: Fri, 24 Aug 2012 04:34:18 +0200
Message-ID: <> (raw)

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

Signed-off-by: Marek Vasut <>
Cc: Chris Ball <>
Cc: Shawn Guo <>
Cc: Mark Brown <broonie-yzvPICuk2AATkU/>
Cc: Fabio Estevam <>
 drivers/spi/spi-mxs.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/spi/spi-mxs.c b/drivers/spi/spi-mxs.c
index 746359e..8075683 100644
--- a/drivers/spi/spi-mxs.c
+++ b/drivers/spi/spi-mxs.c
@@ -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);
+		}
 		first = last = 0;

Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 

             reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-24  2:34 Marek Vasut [this message]
     [not found] ` <>
2012-08-27 16:37   ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \
    --cc=broonie-yzvPICuk2AATkU/ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-SPI Archive on

Archives are clonable:
	git clone --mirror linux-spi/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-spi linux-spi/ \
	public-inbox-index linux-spi

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone