Skip to contentSkip to conversation

linux: arch/i386/pci/irq-xen.c state

PATCH Jan Beulich 2 participants 2 messages Feb 28, 2008

lore
Share & tools
lore
#0 lore raw

Is there any reason other than it being an oversight that these two hunks (from patch-2.6.18.8)

arch/i386/pci/irq.c +2 -2
index 4a8995c..65a2ce8 100644
@@ -255,13 +255,13 @@ static int pirq_via_set(struct pci_dev *router, struct pci_dev *dev, int pirq, i
  */
 static int pirq_via586_get(struct pci_dev *router, struct pci_dev *dev, int pirq)
 {
-	static const unsigned int pirqmap[4] = { 3, 2, 5, 1 };
+	static const unsigned int pirqmap[5] = { 3, 2, 5, 1, 1 };
 	return read_config_nybble(router, 0x55, pirqmap[pirq-1]);
 }
 
 static int pirq_via586_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq)
 {
-	static const unsigned int pirqmap[4] = { 3, 2, 5, 1 };
+	static const unsigned int pirqmap[5] = { 3, 2, 5, 1, 1 };
 	write_config_nybble(router, 0x55, pirqmap[pirq-1], irq);
 	return 1;
 }

is not mirrored to the Xen version of the file?

Thanks, Jan

#1 lore raw

I rather doubt it! Please send a patch to fix it up.

-- Keir

Quoted 36 lines · Jan Beulich

Is there any reason other than it being an oversight that these two hunks (from patch-2.6.18.8)

arch/i386/pci/irq.c +0 -0
index 4a8995c..65a2ce8 100644
@@ -255,13 +255,13 @@ static int pirq_via_set(struct pci_dev *router, struct

pci_dev *dev, int pirq, i
*/
static int pirq_via586_get(struct pci_dev *router, struct pci_dev *dev, int
pirq)
{
- static const unsigned int pirqmap[4] = { 3, 2, 5, 1 };
+ static const unsigned int pirqmap[5] = { 3, 2, 5, 1, 1 }; return read_config_nybble(router, 0x55, pirqmap[pirq-1]);
}

static int pirq_via586_set(struct pci_dev *router, struct pci_dev *dev, int
pirq, int irq)
{
- static const unsigned int pirqmap[4] = { 3, 2, 5, 1 };
+ static const unsigned int pirqmap[5] = { 3, 2, 5, 1, 1 }; write_config_nybble(router, 0x55, pirqmap[pirq-1], irq);
return 1;
}

is not mirrored to the Xen version of the file?

Thanks, Jan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel