lkml.org 
[lkml]   [2017]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH AUTOSEL for 4.9 09/56] dmaengine: zx: set DMA_CYCLIC cap_mask bit
    Date
    From: Shawn Guo <shawn.guo@linaro.org>

    [ Upstream commit fc318d64f3d91e15babac00e08354b1beb650b57 ]

    The zx_dma driver supports cyclic transfer mode. Let's set DMA_CYCLIC
    cap_mask bit to make that clear, and avoid unnecessary failure when
    clients request channel via dma_request_chan_by_mask() with DMA_CYCLIC
    bit set in mask.

    Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
    Reviewed-by: Jun Nie <jun.nie@linaro.org>
    Signed-off-by: Vinod Koul <vinod.koul@intel.com>
    Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
    ---
    drivers/dma/zx296702_dma.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/dma/zx296702_dma.c b/drivers/dma/zx296702_dma.c
    index 245d759d5ffc..6059d81e701a 100644
    --- a/drivers/dma/zx296702_dma.c
    +++ b/drivers/dma/zx296702_dma.c
    @@ -813,6 +813,7 @@ static int zx_dma_probe(struct platform_device *op)
    INIT_LIST_HEAD(&d->slave.channels);
    dma_cap_set(DMA_SLAVE, d->slave.cap_mask);
    dma_cap_set(DMA_MEMCPY, d->slave.cap_mask);
    + dma_cap_set(DMA_CYCLIC, d->slave.cap_mask);
    dma_cap_set(DMA_PRIVATE, d->slave.cap_mask);
    d->slave.dev = &op->dev;
    d->slave.device_free_chan_resources = zx_dma_free_chan_resources;
    --
    2.11.0
    \
     
     \ /
      Last update: 2017-11-23 00:26    [W:3.237 / U:0.404 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site