drm/arm/hdlcd: Reject atomic commits that disable only the plane
authorLiviu Dudau <Liviu.Dudau@arm.com>
Mon, 23 Jul 2018 11:05:53 +0000 (12:05 +0100)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Tue, 31 Jul 2018 15:31:50 +0000 (16:31 +0100)
commitd664b851eb2bcdf84a3c063cf59457bb15bc6120
treeaf8a44c9ef7edb2205f7d9d51aef14ff2fce456a
parent9fd466f54f89fc3a2dc6f86fce2ea0b993ff83bd
drm/arm/hdlcd: Reject atomic commits that disable only the plane

The HDLCD engine needs an active plane while the CRTC is active, as
it will start scanning out data from HDLCD_REG_FB_BASE once it gets
enabled. Make sure that the only available plane doesn't get disabled
while the CRTC remains active, as this will scanout invalid data.

Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
drivers/gpu/drm/arm/hdlcd_crtc.c
drivers/gpu/drm/arm/hdlcd_drv.c