ar71xx: fix DDR write buffer flushing issues with 4.4
[openwrt/openwrt.git] / target / linux / ar71xx / patches-4.4 / 461-spi-add-type-field-to-spi_transfer.patch
1 --- a/include/linux/spi/spi.h
2 +++ b/include/linux/spi/spi.h
3 @@ -583,6 +583,12 @@ extern struct spi_master *spi_busnum_to_
4
5 /*---------------------------------------------------------------------------*/
6
7 +enum spi_transfer_type {
8 + SPI_TRANSFER_GENERIC = 0,
9 + SPI_TRANSFER_FLASH_READ_CMD,
10 + SPI_TRANSFER_FLASH_READ_DATA,
11 +};
12 +
13 /*
14 * I/O INTERFACE between SPI controller and protocol drivers
15 *
16 @@ -703,6 +709,7 @@ struct spi_transfer {
17 u8 bits_per_word;
18 u16 delay_usecs;
19 u32 speed_hz;
20 + enum spi_transfer_type type;
21
22 struct list_head transfer_list;
23 };