ar71xx: add linux 3.10
[openwrt.git] / target / linux / ar71xx / patches-3.10 / 462-mtd-m25p80-set-spi-transfer-type.patch
1 --- a/drivers/mtd/devices/m25p80.c
2 +++ b/drivers/mtd/devices/m25p80.c
3 @@ -357,10 +357,12 @@ static int m25p80_read(struct mtd_info *
4          * OPCODE_FAST_READ (if available) is faster.
5          * Should add 1 byte DUMMY_BYTE.
6          */
7 +       t[0].type = SPI_TRANSFER_FLASH_READ_CMD;
8         t[0].tx_buf = flash->command;
9         t[0].len = m25p_cmdsz(flash) + (flash->fast_read ? 1 : 0);
10         spi_message_add_tail(&t[0], &m);
11  
12 +       t[1].type = SPI_TRANSFER_FLASH_READ_DATA;
13         spi_message_add_tail(&t[1], &m);
14  
15         mutex_lock(&flash->lock);