]> git.baikalelectronics.ru Git - kernel.git/commit
gpu: ipu-v3: Implement use counter for ipu_dc_enable(), ipu_dc_disable()
authorSteve Longerbeam <steve_longerbeam@mentor.com>
Mon, 26 Aug 2013 18:42:09 +0000 (11:42 -0700)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 6 Jan 2015 16:36:14 +0000 (17:36 +0100)
commitd530b0d2b61c3c7edef68d8efe4f9c143112fb55
tree558b955d3db3d9eb89c64223080f54234012759f
parentddd43cfde38c2bc281b3fe9082cc9f23903edba1
gpu: ipu-v3: Implement use counter for ipu_dc_enable(), ipu_dc_disable()

The functions ipu_dc_enable() and ipu_dc_disable() enable/disable the DC
globally in the IPU_CONF register, but the DC is used by multiple clients
on different DC channels. So make sure to only disable/enable the DC
globally based on a use counter.

Signed-off-by: Steve Longerbeam <steve_longerbeam@mentor.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/ipu-v3/ipu-dc.c