matroxfb: restore the registers M_ACCESS and M_PITCH
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 23 Jan 2014 19:39:04 +0000 (14:39 -0500)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 11 Feb 2014 13:01:04 +0000 (15:01 +0200)
commita772d4736641ec1b421ad965e13457c17379fc86
treed68f2d7bafd2647f3c650d4d4604a1277c80d818
parenta2317e6a571bb089d71eab747959c245907bed15
matroxfb: restore the registers M_ACCESS and M_PITCH

When X11 is running and the user switches back to console, the card
modifies the content of registers M_MACCESS and M_PITCH in periodic
intervals.

This patch fixes it by restoring the content of these registers before
issuing any accelerator command.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/matrox/matroxfb_accel.c
drivers/video/matrox/matroxfb_base.h