drm/mgag200: Don't change unrelated registers during modeset
authorChristopher Harvey <charvey@matrox.com>
Fri, 12 Apr 2013 20:42:19 +0000 (20:42 +0000)
committerDave Airlie <airlied@redhat.com>
Mon, 13 May 2013 02:16:36 +0000 (12:16 +1000)
commit9d8aa55ff6bd21f573581a29da32ad746f2edcfb
treeb1029d39308794bd4cd26d74c9019561df785ffd
parentb2dfcae3cc6802e897556e09541080309cfdec60
drm/mgag200: Don't change unrelated registers during modeset

Registers in indices below 0x18 are totally unrelated to modesetting,
so don't write 0's, or anything else into them on modeset. Most of
these registers are hardware cursor related, so this existing code
interferes with hardware cursor development.

Signed-off-by: Christopher Harvey <charvey@matrox.com>
Tested-by: Julia Lemire <jlemire@matrox.com>
Acked-by: Julia Lemire <jlemire@matrox.com>
Acked-by: Mathieu Larouche <mathieu.larouche@matrox.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/mgag200/mgag200_mode.c