Skip to contentSkip to conversation

Fix SAL 3.2 detection

PATCH In review Matthew Wilcox 2 participants 2 messages Mar 24, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix SAL 3.2 detection

Hi David. This important fix checks the SAl *revision* rather than the *version*. I carefully documented which was which, then used the wrong one.

Index: arch/ia64/pci/pci.c
=================================RCS file: /var/cvs/linux-2.6/arch/ia64/pci/pci.c,v retrieving revision 1.8

arch/ia64/pci/pci.c +2 -1
diff -u -p -r1.8 pci.c
@@ -128,7 +128,8 @@ struct pci_raw_ops *raw_pci_ops = &pci_s
 static int __init
 pci_set_sal_ops (void)
 {
-	if (sal_version >= SAL_VERSION_CODE(3, 2)) {
+	if (sal_revision >= SAL_VERSION_CODE(3, 2)) {
+		printk("Using SAL 3.2 to access PCI config space\n");
 		raw_pci_ops = &pci_sal_ext_ops;
 	}
 	return 0;
Signature · 6 lines
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain
#1 lore raw
Quoted 3 lines · Matthew Wilcox

Hi David. This important fix checks the SAl *revision* rather than the *version*. I carefully documented which was which, then used the wrong one.

Thanks a lot, this has fixed all my issues!

Andreas.

Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected]
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."