drm/malidp: Fix smart layer when doing pm_suspend/resume
authorAlexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com>
Fri, 21 Sep 2018 13:39:44 +0000 (14:39 +0100)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Tue, 2 Oct 2018 10:54:26 +0000 (11:54 +0100)
commit791d54fa054d304636fa783f6f082a9dd934ec6a
tree3e75088bd047ad7d04e4046a7b3364dd45b8c712
parentb11507815d1be0173e27990ffcae6da58eadbc10
drm/malidp: Fix smart layer when doing pm_suspend/resume

Smart layer enable rectangles is set to 1 when the driver is probed,
however when doing pm_suspend the value is lost and it's not set again
making the SMART_LAYER unusable, fix that by initializing the number
of rectangles everytime we do a plane update.

Signed-off-by: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
drivers/gpu/drm/arm/malidp_planes.c