drm/arm/malidp: Preserve LAYER_FORMAT contents when setting format
authorAyan Kumar Halder <ayan.halder@arm.com>
Tue, 10 Apr 2018 18:25:03 +0000 (19:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:09:00 +0000 (13:09 +0200)
commit6bcd5cdf3a36e3adf211c0f90fc83a5f0b4d83d2
treeb5bd8926f20567dfebcf31a4215bb3c089659ad9
parent0a43cd3ea76ad9b438089c7c9fab4ea98a94ef39
drm/arm/malidp: Preserve LAYER_FORMAT contents when setting format

[ Upstream commit ad7fda2e378f4356df621a39655f7c200b495d81 ]

On some Mali-DP processors, the LAYER_FORMAT register contains fields
other than the format. These bits were unconditionally cleared when
setting the pixel format, whereas they should be preserved at their
reset values.

Reported-by: Brian Starkey <brian.starkey@arm.com>
Reported-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Ayan Kumar halder <ayan.halder@arm.com>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/arm/malidp_planes.c