[media] marvell-cam: Increase the DMA shutdown timeout
authorJonathan Corbet <corbet@lwn.net>
Fri, 16 Mar 2012 22:14:52 +0000 (19:14 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 20 Mar 2012 01:15:51 +0000 (22:15 -0300)
commit482d35c41f2efb0408624e222bbc9efc0b3518eb
tree2465380fce219dd1488008a5802fa4fbfde84605
parent0770d07f7b33081f68f8d7a291395005d7044c6b
[media] marvell-cam: Increase the DMA shutdown timeout

Experience shows that, on the Armada platform, it can take as much as 120ms
for the DMA engine to actually shut down after it has been told to.  So a
40ms timeout is not adequate; use 150ms instead.  Also make sure we don't
leave the DMA_ACTIVE flag set once things are down.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/marvell-ccic/mcam-core.c