OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:49:02 +0000 (07:49 +0200)
commitc0c5b3fbf9673e85c55f66e093df70a12d2f7ecd
tree6944ad110ca53a23efb2948f9834bf085bd2cb97
parent5f779884b601bb19ca2f20710cb3a5c8af7bb770
dmaengine: rcar-dmac: fix max_chunk_size for R-Car Gen3

[ Upstream commit d716d9b702bb759dd6fb50804f10a174bd156d71 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/sh/rcar-dmac.c