drm: claim PCI device when running in modesetting mode.
Under kernel modesetting, we manage the device at all times, regardless of VT switching and X servers, so the only decent thing to do is to claim the PCI device. In that case, we call the suspend/resume hooks directly from the pci driver hooks instead of the current class device detour. Signed-off-by:Kristian Høgsberg <krh@redhat.com> Signed-off-by:
Dave Airlie <airlied@linux.ie>
Showing
- drivers/gpu/drm/drm_drv.c 12 additions, 59 deletionsdrivers/gpu/drm/drm_drv.c
- drivers/gpu/drm/drm_stub.c 66 additions, 23 deletionsdrivers/gpu/drm/drm_stub.c
- drivers/gpu/drm/drm_sysfs.c 6 additions, 2 deletionsdrivers/gpu/drm/drm_sysfs.c
- drivers/gpu/drm/i915/i915_drv.c 38 additions, 0 deletionsdrivers/gpu/drm/i915/i915_drv.c
- include/drm/drmP.h 1 addition, 1 deletioninclude/drm/drmP.h
Loading
Please register or sign in to comment