Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
  1. Nov 18, 2022
  2. Oct 28, 2022
  3. Oct 27, 2022
  4. Oct 25, 2022
  5. Oct 21, 2022
  6. Oct 18, 2022
  7. Oct 14, 2022
    • Vaishnav Achath's avatar
      spi: spi-omap2-mcspi: Use EOW interrupt for completion when DMA enabled · 907e39b5
      Vaishnav Achath authored and Vignesh Raghavendra's avatar Vignesh Raghavendra committed
      
      In MCSPI controller EOW interrupt is triggered when the channel has
      transmitted the set number of bytes in MCSPI_XFERLEVEL[31-16] WCNT,
      this can be used to signal the completion of a TX/RX when the internal
      FIFO is enabled, when DMA is enabled the internal FIFO is always enabled.
      Waiting for the DMA completion adds unpredictable delays due to the
      non-realtime completion calculation mechanism.
      
      This commit removes the dma_tx_completion and dma_rx_completion
      and relies on the MCSPI controller EOW interrupt to signal transaction
      completion.This fixes the real-time performance issues in master and
      slave mode when DMA was enabled which resulted from the DMA completion
      calculation delays.
      
      Since the MCSPI driver now uses internal mechanism to identify a transfer
      completion we disable the TX and RX DMA completion callback and remove
      DMA_PREP_INTERRUPT.
      
      Signed-off-by: default avatarVaishnav Achath <vaishnav.a@ti.com>
      Signed-off-by: default avatarVignesh Raghavendra <vigneshr@ti.com>
      907e39b5