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 12:11:30 +0000 (14:11 +0200)
commit7ea30442913175c11e9e142c45c11bd88570bbad
treee57f755c6df0da4e122ba98ad00dcf761e205931
parent8b26a7a7b4abd06f3eca2772317bc7840f6e834a
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