diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2012-01-04 09:34:17 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@linux.intel.com> | 2012-01-06 01:10:11 -0500 |
commit | c11b46c32c8a9bf05fdb76d70d8dc74fcbfd02d1 (patch) | |
tree | 970a85e6a577d878c5ee57f31a1ee3df0fb8ad00 /include/linux/sh_dma.h | |
parent | f69f2e264f6388df6d3cae45dd67ddfd52aaa14b (diff) |
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>
Diffstat (limited to 'include/linux/sh_dma.h')
-rw-r--r-- | include/linux/sh_dma.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sh_dma.h b/include/linux/sh_dma.h index 62ef6938da10..8cd7fe59cf1a 100644 --- a/include/linux/sh_dma.h +++ b/include/linux/sh_dma.h | |||
@@ -48,6 +48,7 @@ struct sh_dmae_channel { | |||
48 | unsigned int offset; | 48 | unsigned int offset; |
49 | unsigned int dmars; | 49 | unsigned int dmars; |
50 | unsigned int dmars_bit; | 50 | unsigned int dmars_bit; |
51 | unsigned int chclr_offset; | ||
51 | }; | 52 | }; |
52 | 53 | ||
53 | struct sh_dmae_pdata { | 54 | struct sh_dmae_pdata { |
@@ -68,6 +69,7 @@ struct sh_dmae_pdata { | |||
68 | unsigned int dmaor_is_32bit:1; | 69 | unsigned int dmaor_is_32bit:1; |
69 | unsigned int needs_tend_set:1; | 70 | unsigned int needs_tend_set:1; |
70 | unsigned int no_dmars:1; | 71 | unsigned int no_dmars:1; |
72 | unsigned int chclr_present:1; | ||
71 | }; | 73 | }; |
72 | 74 | ||
73 | /* DMA register */ | 75 | /* DMA register */ |