431-spi-add-various-flags.patch 629 B

12345678910111213141516171819
  1. --- a/include/linux/spi/spi.h
  2. +++ b/include/linux/spi/spi.h
  3. @@ -618,6 +618,8 @@ struct spi_transfer {
  4. unsigned cs_change:1;
  5. unsigned tx_nbits:3;
  6. unsigned rx_nbits:3;
  7. + unsigned verify:1;
  8. + unsigned fast_write:1;
  9. #define SPI_NBITS_SINGLE 0x01 /* 1bit transfer */
  10. #define SPI_NBITS_DUAL 0x02 /* 2bits transfer */
  11. #define SPI_NBITS_QUAD 0x04 /* 4bits transfer */
  12. @@ -663,6 +665,7 @@ struct spi_message {
  13. struct spi_device *spi;
  14. unsigned is_dma_mapped:1;
  15. + unsigned fast_read:1;
  16. /* REVISIT: we might want a flag affecting the behavior of the
  17. * last transfer ... allowing things like "read 16 bit length L"