]> git.baikalelectronics.ru Git - kernel.git/commit
drm: atmel-hlcdc: reset layer A2Q and UPDATE bits when disabling it
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 6 Feb 2015 15:04:08 +0000 (16:04 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 24 Feb 2015 10:45:11 +0000 (11:45 +0100)
commit813f32323d10eb1e89221befe2dc1df881603e6a
tree2dd81b368016abfdff0d93ce12184f33352d12d9
parente5bcdf42df763cea01a333b91972fd011b932235
drm: atmel-hlcdc: reset layer A2Q and UPDATE bits when disabling it

The A2Q (Add To Queue) and UPDATE bits are left in their previous state
when resetting the layer.
This lead to weird behavior when enabling the plane again: the framebuffer
previously queued is dequeued and we end up with access to an old memory
region.

Reset those bits when resetting the channel.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_layer.c