ar71xx: boost SPI flash read performance
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / patches-3.2 / 462-mtd-m25p80-set-spi-transfer-type.patch
1 --- a/drivers/mtd/devices/m25p80.c
2 +++ b/drivers/mtd/devices/m25p80.c
3 @@ -372,10 +372,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) + FAST_READ_DUMMY_BYTE;
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 /* Byte count starts at zero. */