dmaengine: rcar-dmac: fix max_chunk_size for R-Car Gen3
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Wed, 14 Feb 2018 09:40:12 +0000 (18:40 +0900)
committerVinod Koul <vinod.koul@intel.com>
Tue, 27 Feb 2018 15:04:38 +0000 (20:34 +0530)
commitd716d9b702bb759dd6fb50804f10a174bd156d71
treeb43a03870b1e9aa9adb0e1e217f34fee23a26394
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2
dmaengine: rcar-dmac: fix max_chunk_size for R-Car Gen3

According to R-Car Gen3 Rev.0.80 manual, the DMATCR can be set to
16,777,215 as maximum. So, this patch fixes the max_chunk_size for
safety on all of SoCs. Otherwise, a system may hang if the DMATCR
is set to 0 on R-Car Gen3.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sh/rcar-dmac.c