]> git.karo-electronics.de Git - linux-beck.git/commit
gpu: ipu-v3: Fix IRT usage
authorSteve Longerbeam <slongerbeam@gmail.com>
Wed, 20 Jul 2016 01:11:08 +0000 (18:11 -0700)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 8 Aug 2016 09:44:20 +0000 (11:44 +0200)
commit58e366eb86e9d9e5ba4bc369daa04a8d8418d515
treedbcb29fe257675acd245bd9a71dd6e6c4f7cb738
parentea6bead7ebd99bab1fcc5728beb4c3a791886d77
gpu: ipu-v3: Fix IRT usage

There can be multiple IC tasks using the IRT, so the IRT needs
a separate use counter. Create a private ipu_irt_enable() to
enable the IRT module when any IC task requires rotation, and
ipu_irt_disable() when a task no longer needs the IRT.

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