[IA64-SGI] fix prom revision checks in SN kernel
authorAaron Young <ayoung@google.engr.sgi.com>
Wed, 28 Jun 2006 15:34:55 +0000 (08:34 -0700)
committerTony Luck <tony.luck@intel.com>
Wed, 28 Jun 2006 17:02:42 +0000 (10:02 -0700)
The following patch fixes two spots in the SN kernel
that check a fixed prom revision number to determine prom
feature support. These checks are only valid on shub1 systems.
They are invalid on shub2 systems which have a different prom
with different revision numbers.

Signed-off-by: Aaron Young <ayoung@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/sn/kernel/setup.c
arch/ia64/sn/pci/tioca_provider.c

index 97579348a54968dbc23665368dc84035dc086934..3bfccf354343740e3fd811b3ff13d5c1a43a2376 100644 (file)
@@ -458,7 +458,7 @@ void __init sn_setup(char **cmdline_p)
         * support here so we don't have to listen to failed keyboard probe
         * messages.
         */
-       if (version <= 0x0209 && acpi_kbd_controller_present) {
+       if (is_shub1() && version <= 0x0209 && acpi_kbd_controller_present) {
                printk(KERN_INFO "Disabling legacy keyboard support as prom "
                       "is too old and doesn't provide FADT\n");
                acpi_kbd_controller_present = 0;
index 20de72791b979d64791fe119f86153b9d2a93a23..e4aa839d0189f57eaa99d673793b0de1ca3a621e 100644 (file)
@@ -595,7 +595,7 @@ tioca_bus_fixup(struct pcibus_bussoft *prom_bussoft, struct pci_controller *cont
 
        /* sanity check prom rev */
 
-       if (sn_sal_rev() < 0x0406) {
+       if (is_shub1() && sn_sal_rev() < 0x0406) {
                printk
                    (KERN_ERR "%s:  SGI prom rev 4.06 or greater required "
                     "for tioca support\n", __FUNCTION__);