linux/drivers/media/video/marvell-ccic
Jonathan Corbet 121bbe254a [media] marvell-cam: fix the green screen of death
I had learned through hard experience that dinking around with the DMA
descriptors while the C1_DESC_ENA enable bit was set is a recipe for all
kinds of truly malicious behavior on the hardware's part, regardless of
whether the DMA engine is actually operating at the time.  That
notwithstanding, the driver did so dink, resulting in "green frame"
captures and the death of the system in random, spectacular ways.

Move the tweaking of C1_DESC_ENA to the same function that sets the
descriptor so we know that we'll never try to set a descriptor while that
bit is set.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-03-19 22:16:19 -03:00
..
cafe-driver.c [media] marvell-cam: implement contiguous DMA operation 2011-07-27 17:53:11 -03:00
Kconfig [media] marvell-cam: Allow selection of supported buffer modes 2011-07-27 17:55:54 -03:00
Makefile [media] marvell-cam: Basic working MMP camera driver 2011-07-27 17:53:01 -03:00
mcam-core.c [media] marvell-cam: fix the green screen of death 2012-03-19 22:16:19 -03:00
mcam-core.h [media] marvell-cam: Remove broken "owner" logic 2012-03-19 22:15:29 -03:00
mmp-driver.c [media] marvell-cam: Make suspend/resume work on MMP2 2012-01-06 11:39:38 -02:00