OSDN Git Service

dma: shdma: fix runtime PM: clear channel buffers on reset
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 4 Jan 2012 14:34:17 +0000 (15:34 +0100)
committerVinod Koul <vinod.koul@linux.intel.com>
Fri, 6 Jan 2012 06:10:11 +0000 (11:40 +0530)
commitc11b46c32c8a9bf05fdb76d70d8dc74fcbfd02d1
tree970a85e6a577d878c5ee57f31a1ee3df0fb8ad00
parentf69f2e264f6388df6d3cae45dd67ddfd52aaa14b
dma: shdma: fix runtime PM: clear channel buffers on reset

On platforms, supporting power domains, if the domain, containing a DMAC
instance is powered down, the driver fails to resume correctly. On those
platforms DMAC channels have an additional CHCLR register for clearing
channel buffers. Using this register during runtime resume fixes the
problem.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/shdma.c
include/linux/sh_dma.h