Re: [OpenWrt-Devel] [PATCH] ar71xx: fix spi ath79 fast read (for 3.10 kernel)

2014-10-14 Thread John Crispin
can someone who knows m25p80 better than me figure out if this is correct please ? On 26/07/2014 04:52, Zhao, Gang wrote: Fast read adds a dummy byte in tx buffer if the transfer type is SPI_TRANSFER_FLASH_READ_CMD. The dummy byte should be ignored when calculating read address. This is

[OpenWrt-Devel] [PATCH] ar71xx: fix spi ath79 fast read (for 3.10 kernel)

2014-07-25 Thread Zhao, Gang
Fast read adds a dummy byte in tx buffer if the transfer type is SPI_TRANSFER_FLASH_READ_CMD. The dummy byte should be ignored when calculating read address. This is done by adding a bool variable dummy in struct spi_transfer to indicate whether this transfer includes the dummy byte.