OSDN Git Service

drm: mali-dp: Clear CVAL when leaving config mode
authorBrian Starkey <brian.starkey@arm.com>
Tue, 8 Nov 2016 11:36:14 +0000 (11:36 +0000)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Tue, 8 Nov 2016 11:40:02 +0000 (11:40 +0000)
commite64053f05eb924db45f90a1556a200d1acb4b01e
treee2c81d2396738319539cf9f66a0bcf98452dd4df
parented8b0c0f93fd91447770ced4a7ecac1a1f39eae2
drm: mali-dp: Clear CVAL when leaving config mode

It's possible for CVAL to get set whilst we are in config mode. If this
happens, afer we leave config mode the HW will latch whatever
configuration is in the registers at the next vsync. Most likely this
will be a partial configuration, as we'll be racing against the ongoing
atomic_commit.

To avoid this, clear CVAL before leaving config mode.

Signed-off-by: Brian Starkey <brian.starkey@arm.com>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
drivers/gpu/drm/arm/malidp_hw.c