lkml.org 
[lkml]   [2010]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] dmaengine: at_hdmac: use dma_address to program DMA hardware
    Date
    In atc_prep_slave_sg() function we use dma_address field of scatterlist with
    sg_dma_address() macro instead of sg_phys(). DMA address is already computed
    by dma_map_sg() or another mapping function in calling driver.

    Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
    ---
    drivers/dma/at_hdmac.c | 4 ++--
    1 files changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/dma/at_hdmac.c b/drivers/dma/at_hdmac.c
    index ea0ee81..ee7dacd 100644
    --- a/drivers/dma/at_hdmac.c
    +++ b/drivers/dma/at_hdmac.c
    @@ -670,7 +670,7 @@ atc_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl,
    if (!desc)
    goto err_desc_get;

    - mem = sg_phys(sg);
    + mem = sg_dma_address(sg);
    len = sg_dma_len(sg);
    mem_width = 2;
    if (unlikely(mem & 3 || len & 3))
    @@ -712,7 +712,7 @@ atc_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl,
    if (!desc)
    goto err_desc_get;

    - mem = sg_phys(sg);
    + mem = sg_dma_address(sg);
    len = sg_dma_len(sg);
    mem_width = 2;
    if (unlikely(mem & 3 || len & 3))
    --
    1.7.3


    \
     
     \ /
      Last update: 2010-12-15 17:43    [W:0.018 / U:30.776 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site