--- /dev/null
+From nobody Mon Sep 17 00:00:00 2001
+From: Pat Gefre <pfg@sgi.com>
+Date: Mon, 1 May 2006 12:16:08 -0700
+Subject: Altix: correct ioc3 port order
+
+Currently loading the ioc3 as a module will cause the ports to be numbered
+in reverse order. This mod maintains the proper order of cards for port
+numbering.
+
+Signed-off-by: Patrick Gefre <pfg@sgi.com>
+Signed-off-by: Andrew Morton <akpm@osdl.org>
+Signed-off-by: Linus Torvalds <torvalds@osdl.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
+
+---
+
+ drivers/sn/ioc3.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- linux-2.6.16.16.orig/drivers/sn/ioc3.c
++++ linux-2.6.16.16/drivers/sn/ioc3.c
+@@ -677,7 +677,7 @@ static int ioc3_probe(struct pci_dev *pd
+ /* Track PCI-device specific data */
+ pci_set_drvdata(pdev, idd);
+ down_write(&ioc3_devices_rwsem);
+- list_add(&idd->list, &ioc3_devices);
++ list_add_tail(&idd->list, &ioc3_devices);
+ idd->id = ioc3_counter++;
+ up_write(&ioc3_devices_rwsem);
+
--- /dev/null
+From nobody Mon Sep 17 00:00:00 2001
+From: Brent Casavant <bcasavan@sgi.com>
+Date: Wed, 3 May 2006 19:55:10 -0700
+Subject: Altix: correct ioc4 port order
+
+Currently loading the ioc4 as a module will cause the ports to be numbered
+in reverse order. This mod maintains the proper order of cards for port
+numbering.
+
+Signed-off-by: Brent Casavant <bcasavan@sgi.com>
+Cc: Pat Gefre <pfg@sgi.com>
+Signed-off-by: Andrew Morton <akpm@osdl.org>
+Signed-off-by: Linus Torvalds <torvalds@osdl.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
+
+---
+
+ drivers/sn/ioc4.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- linux-2.6.16.16.orig/drivers/sn/ioc4.c
++++ linux-2.6.16.16/drivers/sn/ioc4.c
+@@ -313,7 +313,7 @@ ioc4_probe(struct pci_dev *pdev, const s
+ idd->idd_serial_data = NULL;
+ pci_set_drvdata(idd->idd_pdev, idd);
+ down_write(&ioc4_devices_rwsem);
+- list_add(&idd->idd_list, &ioc4_devices);
++ list_add_tail(&idd->idd_list, &ioc4_devices);
+ up_write(&ioc4_devices_rwsem);
+
+ /* Add this IOC4 to all submodules */