mtd: fsl-quadspi: Actually clear TX FIFO upon write
[deliverable/linux.git] / drivers / mtd / spi-nor / fsl-quadspi.c
index 4fe13dd535f8bff35421081788bb9f198cd3d87e..1946c6da76cd76db5bfe9077b6547a3d03833970 100644 (file)
@@ -539,7 +539,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++) {
This page took 0.023349 seconds and 5 git commands to generate.