dmaengine: rcar-dmac: enable descriptor mode on 40bit
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 22 Mar 2017 04:22:36 +0000 (04:22 +0000)
committerVinod Koul <vinod.koul@intel.com>
Mon, 27 Mar 2017 04:36:37 +0000 (10:06 +0530)
commit1175f83cdb7a321b8b7b061d18846d58490b2654
tree49b67bd2dce057379888ea22c4b7cfe7d102ecae
parent6f3125ceb66120796f62e7797a1a313418a5911a
dmaengine: rcar-dmac: enable descriptor mode on 40bit

SYS-DMAC can use 40bit address transfer, and it supports Descriptor
Mode too. Current SYS-DMAC driver disables Descriptor Mode if it was
40bit address today. But it can use Descriptor Mode with 40bit if
transfer Source/Destination address are located in same 4GiB region
in the 40 bit address space.
This patch enables it if all condition was clear

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sh/rcar-dmac.c