linux/drivers/gpu/drm/mgag200
Christopher Harvey fb70a66908 drm/mgag200: Fix writes into MGA1064_PIX_CLK_CTL register
The original line,
  WREG_DAC(MGA1064_PIX_CLK_CTL_CLK_DIS, tmp);
wrote tmp into MGA1064_PIX_CLK_CTL_CLK_DIS, where
MGA1064_PIX_CLK_CTL_CLK_DIS is an offset into
MGA1064_PIX_CLK_CTL. Change the line to write properly into
MGA1064_PIX_CLK_CTL. There were other chunks of code nearby that use
the same pattern (but work correctly), so this patch updates them all
to use this new (slightly more efficient) write pattern. The WREG_DAC
macro was causing the DAC_INDEX register to be set to the same value
twice. WREG8(DAC_DATA, foo) takes advantage of the fact that DAC_INDEX
is already at the value we want.

Signed-off-by: Christopher Harvey <charvey@matrox.com>
Acked-by: Julia Lemire <jlemire@matrox.com>
Tested-by: Julia Lemire <jlemire@matrox.com>
Acked-by: Mathieu Larouche <mathieu.larouche@matrox.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
2013-05-13 12:17:22 +10:00
..
Kconfig drivers/gpu/drm/mgag200: remove depends on CONFIG_EXPERIMENTAL 2013-01-21 14:52:43 -08:00
Makefile mgag200: initial g200se driver (v2) 2012-05-17 10:53:41 +01:00
mgag200_drv.c Drivers: gpu: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
mgag200_drv.h drm/mgag200: deal with bo reserve fail in dirty update path 2013-05-02 12:46:39 +10:00
mgag200_fb.c drm/mgag200: deal with bo reserve fail in dirty update path 2013-05-02 12:46:39 +10:00
mgag200_i2c.c drm/mgag200: Bug fix: Renesas board now selects native resolution. 2013-03-08 08:31:49 +10:00
mgag200_main.c drm/mgag200: Remove extra variable assigns 2013-04-30 09:57:23 +10:00
mgag200_mode.c drm/mgag200: Fix writes into MGA1064_PIX_CLK_CTL register 2013-05-13 12:17:22 +10:00
mgag200_reg.h mgag200: initial g200se driver (v2) 2012-05-17 10:53:41 +01:00
mgag200_ttm.c drm/mgag200: deal with bo reserve fail in dirty update path 2013-05-02 12:46:39 +10:00