1. 09 Dec, 2014 2 commits
  2. 08 Dec, 2014 2 commits
  3. 04 Dec, 2014 1 commit
  4. 24 Nov, 2014 3 commits
  5. 20 Nov, 2014 4 commits
  6. 18 Nov, 2014 4 commits
  7. 30 Oct, 2014 2 commits
  8. 29 Oct, 2014 1 commit
  9. 23 Oct, 2014 2 commits
  10. 22 Oct, 2014 2 commits
  11. 21 Oct, 2014 3 commits
  12. 20 Oct, 2014 2 commits
    • Nicolas Ferre's avatar
      Merge branch 'at91-3.10-trunk/sama5d4_integration+usart' into linux-3.10-at91 · 88185d9f
      Nicolas Ferre authored
      Conflicts:
      	drivers/tty/serial/atmel_serial.c
      88185d9f
    • Cyrille Pitchen's avatar
      tty/serial: at91: fix rx ring buffer management · d5c1c999
      Cyrille Pitchen authored
      
      
      This patch swaps the use "tail" and "head" to fit the semantic of the linux
      circular buffer documentation:
      - head: the point at which the producer (the DMA controller) inserts items.
      - tail: the point at which the consumer (the serial framework) finds the next
              item.
      
      Besides the former code of the rx ring buffer didn't manage the case where
      head < tail, which might lead to loss of data. To fix this bug the data are now
      sent from the DMA buffer to the serial framework in two steps:
      1 - First, we test if head < tail. If so, we copy the data from tail to the end
          of the DMA buffer then reset tail to zero.
      2 - Finally, we copy data from tail to head then set tail to head.
      
      In addition, since tty_insert_flip_string() may now be called twice,
      atmel_flip_buffer_rx_dma() becomes less efficient than moving the calls
      dma_sync_sg_for_cpu(), dma_sync_sg_for_device(), tty_insert_flip_string() and
      tty_flip_buffer_push() directly into atmel_rx_from_dma().
      Signed-off-by: default avatarCyrille Pitchen <cyrille.pitchen@atmel.com>
      Acked-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
      d5c1c999
  13. 17 Oct, 2014 10 commits
  14. 16 Oct, 2014 2 commits