1. 26 2月, 2015 1 次提交
    • T
      spi: atmel: Fix interrupt setup for PDC transfers · 76e1d14b
      Torsten Fleischer 提交于
      Additionally to the current DMA transfer the PDC allows to set up a next DMA
      transfer. This is useful for larger SPI transfers.
      
      The driver currently waits for ENDRX as end of the transfer. But ENDRX is set
      when the current DMA transfer is done (RCR = 0), i.e. it doesn't include the
      next DMA transfer.
      Thus a subsequent SPI transfer could be started although there is currently a
      transfer in progress. This can cause invalid accesses to the SPI slave devices
      and to SPI transfer errors.
      
      This issue has been observed on a hardware with a M25P128 SPI NOR flash.
      
      So instead of ENDRX we should wait for RXBUFF. This flag is set if there is
      no more DMA transfer in progress (RCR = RNCR = 0).
      Signed-off-by: NTorsten Fleischer <torfl6749@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      Cc: stable@vger.kernel.org
      76e1d14b
  2. 04 2月, 2015 1 次提交
  3. 25 11月, 2014 2 次提交
  4. 22 10月, 2014 1 次提交
  5. 20 10月, 2014 4 次提交
  6. 02 8月, 2014 1 次提交
  7. 17 7月, 2014 1 次提交
  8. 08 5月, 2014 1 次提交
  9. 18 4月, 2014 1 次提交
  10. 15 4月, 2014 1 次提交
  11. 22 3月, 2014 1 次提交
  12. 05 3月, 2014 2 次提交
  13. 03 3月, 2014 2 次提交
  14. 13 2月, 2014 1 次提交
  15. 03 2月, 2014 1 次提交
  16. 10 1月, 2014 1 次提交
  17. 08 1月, 2014 1 次提交
  18. 04 12月, 2013 1 次提交
  19. 23 10月, 2013 1 次提交
  20. 17 10月, 2013 2 次提交
  21. 15 10月, 2013 1 次提交
  22. 07 10月, 2013 1 次提交
  23. 17 9月, 2013 2 次提交
  24. 11 9月, 2013 1 次提交
  25. 01 8月, 2013 1 次提交
    • E
      spi/atmel: Fix format specifier warnings · 2de024b7
      Emil Goode 提交于
      This patch fixes the following sparse warnings.
      dma_addr_t can be either u32 or u64 so we should cast to the
      largest type and use the format specifier %llx.
      
      drivers/spi/spi-atmel.c: In function ‘atmel_spi_next_xfer_dma_submit’:
      drivers/spi/spi-atmel.c:631:2: warning:
      	format ‘%x’ expects argument of type ‘unsigned int’,
      	but argument 7 has type ‘dma_addr_t’ [-Wformat]
      drivers/spi/spi-atmel.c:631:2: warning:
      	format ‘%x’ expects argument of type ‘unsigned int’,
      	but argument 9 has type ‘dma_addr_t’ [-Wformat]
      drivers/spi/spi-atmel.c: In function ‘atmel_spi_pdc_next_xfer’:
      drivers/spi/spi-atmel.c:734:3: warning:
      	format ‘%x’ expects argument of type ‘unsigned int’,
      	but argument 7 has type ‘dma_addr_t’ [-Wformat]
      drivers/spi/spi-atmel.c:734:3: warning:
      	format ‘%x’ expects argument of type ‘unsigned int’,
      	but argument 9 has type ‘dma_addr_t’ [-Wformat]
      drivers/spi/spi-atmel.c:773:3: warning:
      	format ‘%x’ expects argument of type ‘unsigned int’,
      	but argument 7 has type ‘dma_addr_t’ [-Wformat]
      drivers/spi/spi-atmel.c:773:3: warning:
      	format ‘%x’ expects argument of type ‘unsigned int’,
      	but argument 9 has type ‘dma_addr_t’ [-Wformat]
      Signed-off-by: NEmil Goode <emilgoode@gmail.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      2de024b7
  26. 29 7月, 2013 1 次提交
  27. 17 7月, 2013 1 次提交
  28. 03 6月, 2013 1 次提交
  29. 30 5月, 2013 1 次提交
  30. 02 5月, 2013 1 次提交
  31. 24 4月, 2013 2 次提交