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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 15 May 2014 07:55:57 +0000 (09:55 +0200)
commitee8ba7249c9faf721e0452839083feeb715969d4
treeeadf52da143a1fe529b94b5478a4ec68c389a036
parentd0579cf395bff32fbf409fc3d297f2b34f27c8fb
matroxfb: restore the registers M_ACCESS and M_PITCH

commit a772d4736641ec1b421ad965e13457c17379fc86 upstream.

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>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/video/matrox/matroxfb_accel.c
drivers/video/matrox/matroxfb_base.h