1. 18 Aug, 2015 14 commits
  2. 17 Aug, 2015 20 commits
  3. 06 Aug, 2015 4 commits
  4. 05 Aug, 2015 2 commits
    • Maxime Ripard's avatar
      dmaengine: Add an enum for the dmaengine alignment constraints · 77a68e56
      Maxime Ripard authored
      Most drivers need to set constraints on the buffer alignment for async tx
      operations. However, even though it is documented, some drivers either use
      a defined constant that is not matching what the alignment variable expects
      (like DMA_BUSWIDTH_* constants) or fill the alignment in bytes instead of
      power of two.
      
      Add a new enum for these alignments that matches what the framework
      expects, and convert the drivers to it.
      Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
      Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
      77a68e56
    • Geert Uytterhoeven's avatar
      dmaengine: shdma: Make dummy shdma_chan_filter() always return false · 056f6c87
      Geert Uytterhoeven authored
      If CONFIG_SH_DMAE_BASE (which is required for DMA engine support for
      legacy SH, SH/R-Mobile, and R-Car Gen1, but not for R-Car Gen2) is not
      enabled, but CONFIG_RCAR_DMAC (for R-Car Gen2 DMA engine support) is,
      and the DTS doesn't provide a "dmas" property for a device,
      dma_request_slave_channel_compat() incorrectly succeeds, and returns a
      DMA channel.
      
      However, when trying to use that DMA channel later, it fails with:
      
          rcar-dmac e6700000.dma-controller: rcar_dmac_prep_slave_sg: bad parameter: len=1, id=-22
      
      (Fortunately most drivers can handle this failure, and fall back to
      PIO)
      
      The reason for this is that a NULL legacy filter function is used, which
      actually means "all channels are OK", not "do not match".
      If CONFIG_SH_DMAE_BASE is enabled (like in shmobile_defconfig, which
      supports other SoCs besides R-Car Gen2), shdma_chan_filter() correctly
      returns false, as no available channel on R-Car Gen2 matches a
      shdma-base channel.
      If the DTS does provide a "dmas" property, dma_request_slave_channel()
      succeeds, and legacy filter-based matching is not used.
      
      To fix this, change shdma_chan_filter from being NULL to a dummy
      function that always returns false, like is done on other platforms.
      Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
      056f6c87