mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
drm/mgag200: Set PCI option register in G200SE models
The initial value of the PCI option register got lost while refactoring
the driver init code. Restore the setting.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reported-by: kernel test robot <lkp@intel.com>
Fixes: 2021708e0d ("drm/mgag200: Initialize PCI registers early during device setup")
Cc: Lyude Paul <lyude@redhat.com>
Cc: Dave Airlie <airlied@redhat.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Emil Velikov <emil.velikov@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200804065158.21049-1-tzimmermann@suse.de
This commit is contained in:
parent
ad04fae0de
commit
d3dc135187
|
|
@ -74,6 +74,7 @@ static int mgag200_regs_init(struct mga_device *mdev)
|
|||
break;
|
||||
case G200_SE_A:
|
||||
case G200_SE_B:
|
||||
option = 0x40049120;
|
||||
if (mgag200_has_sgram(mdev))
|
||||
option |= PCI_MGA_OPTION_HARDPWMSK;
|
||||
option2 = 0x00008000;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user