Skip to contentSkip to conversation

drm/i915: only match on PCI_BASE_CLASS_DISPLAY

PATCH In review Daniel Vetter 3 participants 3 messages Oct 11, 2011 – Oct 23, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: only match on PCI_BASE_CLASS_DISPLAY

... not DISPLAY_VGA, because we ignore the VGA subclass with our class_mask.

It confused me until Chris Wilson clued me up.

---
 drivers/gpu/drm/i915/i915_drv.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/i915/i915_drv.c +1 -1
index ad85c13..d4f0a58 100644
@@ -106,7 +106,7 @@ static struct drm_driver driver;
 extern int intel_agp_enabled;
 
 #define INTEL_VGA_DEVICE(id, info) {		\
-	.class = PCI_CLASS_DISPLAY_VGA << 8,	\
+	.class = PCI_BASE_CLASS_DISPLAY << 16,	\
 	.class_mask = 0xff0000,			\
 	.vendor = 0x8086,			\
 	.device = id,				\
Signature · 1 line
1.7.6.3
#2 lore raw

Hi Keith

This patch isn't in your -next pull request. Please consider merging for 3.2.

Yours, Daniel

Quoted 12 lines · Adam Jackson
Quoted 6 lines · Daniel Vetter

... not DISPLAY_VGA, because we ignore the VGA subclass with our class_mask.

It confused me until Chris Wilson clued me up.

- ajax

Signature · 3 lines
Daniel Vetter
Mail: [email protected]
Mobile: +41 (0)79 365 57 48