ar71xx: add support for D-Link DIR-615 rev. Ix board
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / patches-3.18 / 462-mtd-m25p80-set-spi-transfer-type.patch
1 --- a/drivers/mtd/devices/m25p80.c
2 +++ b/drivers/mtd/devices/m25p80.c
3 @@ -142,10 +142,12 @@ static int m25p80_read(struct spi_nor *n
4 flash->command[0] = nor->read_opcode;
5 m25p_addr2cmd(nor, from, flash->command);
6
7 + t[0].type = SPI_TRANSFER_FLASH_READ_CMD;
8 t[0].tx_buf = flash->command;
9 t[0].len = m25p_cmdsz(nor) + dummy;
10 spi_message_add_tail(&t[0], &m);
11
12 + t[1].type = SPI_TRANSFER_FLASH_READ_DATA;
13 t[1].rx_buf = buf;
14 t[1].rx_nbits = m25p80_rx_nbits(nor);
15 t[1].len = len;