1. 12 1月, 2013 6 次提交
  2. 09 1月, 2013 5 次提交
  3. 08 1月, 2013 6 次提交
  4. 29 11月, 2012 2 次提交
  5. 02 10月, 2012 1 次提交
  6. 27 9月, 2012 5 次提交
  7. 14 9月, 2012 1 次提交
  8. 26 7月, 2012 1 次提交
  9. 16 7月, 2012 2 次提交
  10. 21 6月, 2012 10 次提交
  11. 11 5月, 2012 1 次提交
    • L
      dmaengine: Use sg_dma_address instead of sg_phys · cbb796cc
      Lars-Peter Clausen 提交于
      dmaengine drivers should always use sg_dma_address instead of sg_phys to get the
      addresses for the transfer from a sg element.
      
      To quote Russel King:
      	sg_phys(sg) of course has nothing to do with DMA addresses. It's the
      	physical address _to the CPU_ of the memory associated with the scatterlist
      	entry. That may, or may not have the same value for the DMA engine,
      	particularly if IOMMUs are involved.
      
      	And if these drivers are used on ARM, they must be fixed, sooner rather
      	than later.  There's patches in the works which will mean we will end up
      	with IOMMU support in the DMA mapping later, which means everything I've
      	said above will become reality.
      
      The patch has been generated using the following coccinelle patch:
      <smpl>
      @@
      struct scatterlist *sg;
      @@
      -sg_phys(sg)
      +sg_dma_address(sg)
      </smpl>
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Acked-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NVinod Koul <vinod.koul@linux.intel.com>
      cbb796cc