]> Pileus Git - ~andy/linux/commitdiff
rcar-hpbdma: add max transfer size
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 29 Oct 2013 06:52:01 +0000 (23:52 -0700)
committerVinod Koul <vinod.koul@intel.com>
Thu, 28 Nov 2013 08:15:59 +0000 (13:45 +0530)
shdma_chan_probe() can set max transfer size,
but it will be PAGE_SIZE with out this patch.

Reviewed-by: Max Filippov <max.filippov@cogentembedded.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sh/rcar-hpbdma.c

index ebad84591a6e22bd1f28866c3f0b1946eba3dff0..496180a6a5e57369bf1a5522c5001831208e0098 100644 (file)
@@ -510,6 +510,8 @@ static int hpb_dmae_chan_probe(struct hpb_dmae_device *hpbdev, int id)
        }
 
        schan = &new_hpb_chan->shdma_chan;
+       schan->max_xfer_len = HPB_DMA_TCR_MAX;
+
        shdma_chan_probe(sdev, schan, id);
 
        if (pdev->id >= 0)