Skip to contentSkip to conversation

DRM: correct PCI domain setting for ALPHA

PATCH NAK Ivan Kokshaysky 2 participants 3 messages Apr 11, 2007 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 3/7 DRM: correct PCI domain setting for ALPHA

Files:

drivers/char/drm/drmP.h

The PCI domain is the hose's index, not the hose's root bus number. Note that this code only applies to ALPHA.

---

drivers/char/drm/drmP.h +1 -1
diff -Naurp a/drivers/char/drm/drmP.h b/drivers/char/drm/drmP.h
@@ -764,7 +764,7 @@ static __inline__ int drm_core_check_fea
 }
 
 #ifdef __alpha__
-#define drm_get_pci_domain(dev) dev->hose->bus->number
+#define drm_get_pci_domain(dev) dev->hose->index
 #else
 #define drm_get_pci_domain(dev) 0
 #endif
#1 lore raw

NAK

I already have this queued in the DRM git tree.. Ivan, Jay can you check an -mm kernel contains it? it'll go in the next merge window..

Dave.

Quoted 31 lines · Ivan Kokshaysky

Files:

drivers/char/drm/drmP.h

The PCI domain is the hose's index, not the hose's root bus number. Note that this code only applies to ALPHA.

---

diff -Naurp a/drivers/char/drm/drmP.h b/drivers/char/drm/drmP.h

drivers/char/drm/drmP.h 2007-04-02 13:49:38.000000000 -0400 renamed from drivers/char/drm/drmP.h 2007-04-02 13:03:24.000000000 -0400 +1 -2
@@ -764,7 +764,7 @@ static __inline__ int drm_core_check_fea
 }
 
 #ifdef __alpha__
-#define drm_get_pci_domain(dev) dev->hose->bus->number
+#define drm_get_pci_domain(dev) dev->hose->index
 #else
 #define drm_get_pci_domain(dev) 0
 #endif
-

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#2 lore raw
Quoted 2 lines · Dave Airlie

I already have this queued in the DRM git tree.. Ivan, Jay can you check an -mm kernel contains it? it'll go in the next merge window..

Indeed, it's already in -mm tree. Sorry...

Ivan.