pxa2xx_spi: restore DRCMR on resume
authorDaniel Ribeiro <drwyrm@gmail.com>
Tue, 21 Apr 2009 19:24:43 +0000 (12:24 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 21 Apr 2009 20:41:49 +0000 (13:41 -0700)
commit148da331200a0df8195e10eb8a38fd77bd7003af
tree73c24340fe39aa12fa9a31997ace8ce95448bc68
parentaa0b8f3687f06ac0e5a2b24547fdf431e923c475
pxa2xx_spi: restore DRCMR on resume

If DMA is enabled, any spi_sync call after suspend/resume would block
forever, because DRCMR is lost on suspend.  This patch restores DRCMR to
the same values set by probe.

Signed-off-by: Daniel Ribeiro <drwyrm@gmail.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/spi/pxa2xx_spi.c