linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mtd: fsl-quadspi: Actually clear TX FIFO upon write
@ 2015-07-02  9:37 Alexander Stein
  2015-07-20 17:41 ` Brian Norris
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Stein @ 2015-07-02  9:37 UTC (permalink / raw)
  To: Han Xu, David Woodhouse, Brian Norris; +Cc: Alexander Stein, linux-mtd

QUADSPI_MCR_CLR_TXF_MASK is the correct mask for clearing the TX FIFO.

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
---
 drivers/mtd/spi-nor/fsl-quadspi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/spi-nor/fsl-quadspi.c b/drivers/mtd/spi-nor/fsl-quadspi.c
index 5d5d362..d8349cd 100644
--- a/drivers/mtd/spi-nor/fsl-quadspi.c
+++ b/drivers/mtd/spi-nor/fsl-quadspi.c
@@ -537,7 +537,7 @@ static int fsl_qspi_nor_write(struct fsl_qspi *q, struct spi_nor *nor,
 
 	/* clear the TX FIFO. */
 	tmp = readl(q->iobase + QUADSPI_MCR);
-	writel(tmp | QUADSPI_MCR_CLR_RXF_MASK, q->iobase + QUADSPI_MCR);
+	writel(tmp | QUADSPI_MCR_CLR_TXF_MASK, q->iobase + QUADSPI_MCR);
 
 	/* fill the TX data to the FIFO */
 	for (j = 0, i = ((count + 3) / 4); j < i; j++) {
-- 
2.3.6

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mtd: fsl-quadspi: Actually clear TX FIFO upon write
  2015-07-02  9:37 [PATCH] mtd: fsl-quadspi: Actually clear TX FIFO upon write Alexander Stein
@ 2015-07-20 17:41 ` Brian Norris
  0 siblings, 0 replies; 2+ messages in thread
From: Brian Norris @ 2015-07-20 17:41 UTC (permalink / raw)
  To: Alexander Stein; +Cc: Han Xu, David Woodhouse, linux-mtd

On Thu, Jul 02, 2015 at 11:37:56AM +0200, Alexander Stein wrote:
> QUADSPI_MCR_CLR_TXF_MASK is the correct mask for clearing the TX FIFO.
> 
> Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>

Pushed to l2-mtd.git, thanks.

Brian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-20 17:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-02  9:37 [PATCH] mtd: fsl-quadspi: Actually clear TX FIFO upon write Alexander Stein
2015-07-20 17:41 ` Brian Norris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).