mtd: m25p80: Revive dual read support
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 22 Apr 2014 12:45:31 +0000 (14:45 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 12 May 2014 20:16:26 +0000 (13:16 -0700)
Commit 03e296f613affcc2671c1e86d8c25ecad867204e ("mtd: m25p80: use the SPI
nor framework") accidentally removed support for Dual SPI read transfers.
Add it back.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Huang Shijie <shijie8@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/devices/m25p80.c

index 1557d8f672c1eb5e33e5d9e8e05eced5c7cabba9..ed7e0a1bed3ce8d2c6d92e30444450047fdbf8e0 100644 (file)
@@ -221,6 +221,8 @@ static int m25p_probe(struct spi_device *spi)
 
        if (spi->mode & SPI_RX_QUAD)
                mode = SPI_NOR_QUAD;
+       else if (spi->mode & SPI_RX_DUAL)
+               mode = SPI_NOR_DUAL;
        ret = spi_nor_scan(nor, spi_get_device_id(spi), mode);
        if (ret)
                return ret;