From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e35.co.us.ibm.com (e35.co.us.ibm.com [32.97.110.153]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "e35.co.us.ibm.com", Issuer "Equifax" (verified OK)) by ozlabs.org (Postfix) with ESMTP id 09714679EA for ; Sat, 1 Apr 2006 09:12:44 +1100 (EST) Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11]) by e35.co.us.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k2VMCfMW030734 for ; Fri, 31 Mar 2006 17:12:41 -0500 Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by westrelay02.boulder.ibm.com (8.12.10/NCO/VER6.8) with ESMTP id k2VM9Rku247514 for ; Fri, 31 Mar 2006 15:09:27 -0700 Received: from d03av03.boulder.ibm.com (loopback [127.0.0.1]) by d03av03.boulder.ibm.com (8.12.11/8.13.3) with ESMTP id k2VMCfvt015388 for ; Fri, 31 Mar 2006 15:12:41 -0700 Date: Fri, 31 Mar 2006 16:05:45 -0600 From: Jake Moilanen To: linuxppc-dev@ozlabs.org Subject: [PATCH 1/2] Base pSeries PCIe support Message-Id: <20060331160545.db3fa210.moilanen@austin.ibm.com> In-Reply-To: <20060331160203.f2bf8b53.moilanen@austin.ibm.com> References: <20060331160203.f2bf8b53.moilanen@austin.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: paulus@samba.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Added recognition of device_type: "pciex" and made PCIe portdrv buildable on PPC64. Signed-off-by: Jake Moilanen --- Index: 2.6.16/arch/powerpc/Kconfig =================================================================== --- 2.6.16.orig/arch/powerpc/Kconfig 2006-03-31 15:11:20.000000000 -0600 +++ 2.6.16/arch/powerpc/Kconfig 2006-03-31 15:15:35.000000000 -0600 @@ -808,6 +808,8 @@ endchoice +source "drivers/pci/pcie/Kconfig" + source "drivers/pci/Kconfig" source "drivers/pcmcia/Kconfig" Index: 2.6.16/arch/powerpc/kernel/pci_64.c =================================================================== --- 2.6.16.orig/arch/powerpc/kernel/pci_64.c 2006-03-31 15:11:20.000000000 -0600 +++ 2.6.16/arch/powerpc/kernel/pci_64.c 2006-03-31 15:15:35.000000000 -0600 @@ -395,7 +395,7 @@ dev->current_state = 4; /* unknown power state */ - if (!strcmp(type, "pci")) { + if (!strcmp(type, "pci") || !strcmp(type, "pciex")) { /* a PCI-PCI bridge */ dev->hdr_type = PCI_HEADER_TYPE_BRIDGE; dev->rom_base_reg = PCI_ROM_ADDRESS1; Index: 2.6.16/arch/powerpc/kernel/rtas_pci.c =================================================================== --- 2.6.16.orig/arch/powerpc/kernel/rtas_pci.c 2006-03-31 15:11:20.000000000 -0600 +++ 2.6.16/arch/powerpc/kernel/rtas_pci.c 2006-03-31 15:15:35.000000000 -0600 @@ -315,7 +315,8 @@ for (node = of_get_next_child(root, NULL); node != NULL; node = of_get_next_child(root, node)) { - if (node->type == NULL || strcmp(node->type, "pci") != 0) + + if (node->type == NULL || ((strcmp(node->type, "pci") != 0) && (strcmp(node->type, "pciex") != 0))) continue; phb = pcibios_alloc_controller(node);