]> git.baikalelectronics.ru Git - kernel.git/commit
DRM: armada: fix corruption while loading cursors
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 7 Apr 2014 11:00:17 +0000 (12:00 +0100)
committerDave Airlie <airlied@redhat.com>
Tue, 8 Apr 2014 00:51:03 +0000 (10:51 +1000)
commit1c468fab5efe1dba41137450b4888bd03e2eca34
treef6433db17fd6e3197473b719076464a0a635efa5
parentb95ea6ea3e89a44721ab582096b1207a8ef1d2d0
DRM: armada: fix corruption while loading cursors

Loading cursors to the LCD controller's SRAM can be corrupted when the
configured pixel clock is relatively slow.  This seems to be caused
when we write back-to-back to the SRAM registers.

There doesn't appear to be any status register we can read to check
when an access has completed.

Inserting a dummy read between the writes appears to fix the problem.

Cc: <stable@vger.kernel.org> # 3.13
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/armada/armada_crtc.c