MGS-4061 gpu: imx: dpu-blit: fix kernel panic in pm test
authorXianzhong <xianzhong.li@nxp.com>
Tue, 10 Jul 2018 13:44:44 +0000 (21:44 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit6eada1d9e127b6a3e3728690beac2fd539be99c2
tree2c1b6f2d2f4411d2b41896b22d839f1fa51b8dfd
parentc911d63173a6eb5dfb35c96c1ae235af3d55db11
MGS-4061 gpu: imx: dpu-blit: fix kernel panic in pm test

resume will increase unlock counter, max allowed value is 15.
suspend need decrease unlock counter to avoid overflow panic.

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
(cherry picked from commit 0582cd50ed70f932158fe20d6caf2f4ad68eabf0)
drivers/gpu/imx/dpu-blit/dpu-blit-registers.h
drivers/gpu/imx/dpu-blit/dpu-blit.c