ar71xx: Add profile and build image for TP-Link MR12U v1
[openwrt.git] / target / linux / ar71xx / patches-3.14 / 462-mtd-m25p80-set-spi-transfer-type.patch
1 --- a/drivers/mtd/devices/m25p80.c
2 +++ b/drivers/mtd/devices/m25p80.c
3 @@ -532,6 +532,7 @@ static int m25p80_read(struct mtd_info *
4                 return -EINVAL;
5         }
6  
7 +       t[0].type = SPI_TRANSFER_FLASH_READ_CMD;
8         t[0].tx_buf = flash->command;
9         t[0].len = m25p_cmdsz(flash) + dummy;
10         spi_message_add_tail(&t[0], &m);
11 @@ -561,6 +562,7 @@ static int m25p80_read(struct mtd_info *
12                 else
13                         readlen = len;
14  
15 +               t[1].type = SPI_TRANSFER_FLASH_READ_DATA;
16                 t[1].rx_buf = buf + ofs;
17                 t[1].rx_nbits = m25p80_rx_nbits(flash);
18                 t[1].len = readlen;