public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [RESENT PATCH] drm/i915: use #defines for qemu subsystem ids
@ 2016-06-13 12:38 Gerd Hoffmann
  2016-06-13 13:05 ` ✗ Ro.CI.BAT: warning for drm/i915: use #defines for qemu subsystem ids (rev2) Patchwork
  2016-06-13 13:19 ` [RESENT PATCH] drm/i915: use #defines for qemu subsystem ids Jani Nikula
  0 siblings, 2 replies; 4+ messages in thread
From: Gerd Hoffmann @ 2016-06-13 12:38 UTC (permalink / raw)
  To: dri-devel
  Cc: Daniel Vetter,
	open list:INTEL DRM DRIVERS excluding Poulsbo, Moorestow..., linux-kernel@vger.kernel.org open list,
	Gerd Hoffmann

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 drivers/gpu/drm/i915/i915_drv.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index f313b4d..3099390 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -515,8 +515,10 @@ void intel_detect_pch(struct drm_device *dev)
 			} else if ((id == INTEL_PCH_P2X_DEVICE_ID_TYPE) ||
 				   (id == INTEL_PCH_P3X_DEVICE_ID_TYPE) ||
 				   ((id == INTEL_PCH_QEMU_DEVICE_ID_TYPE) &&
-				    pch->subsystem_vendor == 0x1af4 &&
-				    pch->subsystem_device == 0x1100)) {
+				    pch->subsystem_vendor ==
+					    PCI_SUBVENDOR_ID_REDHAT_QUMRANET &&
+				    pch->subsystem_device ==
+					    PCI_SUBDEVICE_ID_QEMU)) {
 				dev_priv->pch_type = intel_virt_detect_pch(dev);
 			} else
 				continue;
-- 
1.8.3.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-06-13 14:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-13 12:38 [RESENT PATCH] drm/i915: use #defines for qemu subsystem ids Gerd Hoffmann
2016-06-13 13:05 ` ✗ Ro.CI.BAT: warning for drm/i915: use #defines for qemu subsystem ids (rev2) Patchwork
2016-06-13 13:19 ` [RESENT PATCH] drm/i915: use #defines for qemu subsystem ids Jani Nikula
2016-06-13 14:45   ` Jani Nikula

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox