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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 May 2014 11:32:50 +0000 (13:32 +0200)
commitb9cbf85d5109b992c931b1b4ef16bf4a0b3aeca7
treeba5e03b46b11bf576c6f45f0c8101f7708b99ce5
parent0d432a0e90380aac5c7d703dc2829e3db73acb35
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/video/matrox/matroxfb_accel.c
drivers/video/matrox/matroxfb_base.h