1 --- a/drivers/mtd/devices/m25p80.c
2 +++ b/drivers/mtd/devices/m25p80.c
3 @@ -530,6 +530,8 @@ static int m25p80_read(struct mtd_info *
5 dev_err(&flash->spi->dev, "No valid read command supported\n");
7 + } else if (dummy == 1) {
11 t[0].type = SPI_TRANSFER_FLASH_READ_CMD;
12 --- a/drivers/spi/spi-ath79.c
13 +++ b/drivers/spi/spi-ath79.c
14 @@ -262,6 +262,10 @@ static int ath79_spi_do_read_flash_cmd(s
25 --- a/include/linux/spi/spi.h
26 +++ b/include/linux/spi/spi.h
27 @@ -598,6 +598,7 @@ struct spi_transfer {
30 enum spi_transfer_type type;
33 struct list_head transfer_list;