Message ID | 87ioww187v.wl%kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Hello. On 17-10-2013 14:51, Kuninori Morimoto wrote: > shdma_chan_probe() can set max transfer size, > but it will be PAGE_SIZE with out this patch. > Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> > --- > drivers/dma/sh/rcar-hpbdma.c | 2 ++ > 1 file changed, 2 insertions(+) > diff --git a/drivers/dma/sh/rcar-hpbdma.c b/drivers/dma/sh/rcar-hpbdma.c > index ebad845..b1ae8dc 100644 > --- a/drivers/dma/sh/rcar-hpbdma.c > +++ b/drivers/dma/sh/rcar-hpbdma.c > @@ -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 + 1; > + +1 is not correct here, HPB_DMA_TCR_MAX is #define'd as 16 MiB, not 16 MiB - 1. WBR, Sergei -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/dma/sh/rcar-hpbdma.c b/drivers/dma/sh/rcar-hpbdma.c index ebad845..b1ae8dc 100644 --- a/drivers/dma/sh/rcar-hpbdma.c +++ b/drivers/dma/sh/rcar-hpbdma.c @@ -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 + 1; + shdma_chan_probe(sdev, schan, id); if (pdev->id >= 0)
shdma_chan_probe() can set max transfer size, but it will be PAGE_SIZE with out this patch. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> --- drivers/dma/sh/rcar-hpbdma.c | 2 ++ 1 file changed, 2 insertions(+)