Blackfin: fix suspend/resume failure with some on-chip ROMs
authorMichael Hennerich <michael.hennerich@analog.com>
Tue, 20 Oct 2009 13:38:04 +0000 (13:38 +0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 25 Nov 2009 07:35:33 +0000 (02:35 -0500)
commit865bddfbf70d9ba04638c15ef49f17b599d9bbf3
tree32390bee517934693940b5c502f3d241bbb3b770
parenta8a8a669ea13d792296737505adc43ccacf3a648
Blackfin: fix suspend/resume failure with some on-chip ROMs

Some Blackfin on-chip ROMs utilize some MDMA channels during the suspend
and resume process, but don't clean up after themselves.  So manually
clear all DMA channels when resuming since no DMA could have been running
at this point in time.  Now Linux should be able to work regardless of any
laziness on the part of the on-chip ROM or boot loader.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/kernel/bfin_dma_5xx.c