Return-Path: <linuxppc-dev-bounces+gary=mlbassoc.com@ozlabs.org>
X-Original-To: gary@mlbassoc.com
Delivered-To: gary@mlbassoc.com
Received: from localhost.localdomain [127.0.0.1]
	by hermes.chez-thomas.org with POP3 (fetchmail-6.3.8)
	for <gthomas@localhost> (single-drop); Tue, 07 Oct 2008 13:02:01 -0600 (MDT)
Received: by mail.chez-thomas.org (Postfix, from userid 999)
	id B4A9F3B5264B; Tue,  7 Oct 2008 13:01:30 -0600 (MDT)
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on
	hermes.chez-thomas.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=3.0 tests=BAYES_00 autolearn=ham
	version=3.2.5
Received: from ozlabs.org (ozlabs.org [203.10.76.45])
	by mail.chez-thomas.org (Postfix) with ESMTP id EFC1C3B52624
	for <gary@mlbassoc.com>; Tue,  7 Oct 2008 13:01:29 -0600 (MDT)
Received: from ozlabs.org (localhost [127.0.0.1])
	by ozlabs.org (Postfix) with ESMTP id 2F81FDE342
	for <gary@mlbassoc.com>; Wed,  8 Oct 2008 06:01:23 +1100 (EST)
X-Original-To: linuxppc-dev@ozlabs.org
Delivered-To: linuxppc-dev@ozlabs.org
Received: from de01egw01.freescale.net (de01egw01.freescale.net
	[192.88.165.102])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client did not present a certificate)
	by ozlabs.org (Postfix) with ESMTPS id B1139DE07C
	for <linuxppc-dev@ozlabs.org>; Wed,  8 Oct 2008 06:01:08 +1100 (EST)
Received: from az33smr01.freescale.net (az33smr01.freescale.net [10.64.34.199])
	by de01egw01.freescale.net (8.12.11/az33egw01) with ESMTP id
	m97J0cRZ004505
	for <linuxppc-dev@ozlabs.org>; Tue, 7 Oct 2008 12:00:41 -0700 (MST)
Received: from localhost.localdomain (mvp-10-214-72-244.am.freescale.net
	[10.214.72.244])
	by az33smr01.freescale.net (8.13.1/8.13.0) with ESMTP id m97J0Lci020784;
	Tue, 7 Oct 2008 14:00:23 -0500 (CDT)
From: John Rigby <jrigby@freescale.com>
To: linuxppc-dev@ozlabs.org
Subject: [PATCH 3/3] powerpc: pci: 5121: Hide pci bridge.
Date: Tue,  7 Oct 2008 13:00:20 -0600
Message-Id: <1223406020-12278-4-git-send-email-jrigby@freescale.com>
X-Mailer: git-send-email 1.5.6.2.255.gbed62
In-Reply-To: <1223406020-12278-3-git-send-email-jrigby@freescale.com>
References: <1223406020-12278-1-git-send-email-jrigby@freescale.com>
	<1223406020-12278-2-git-send-email-jrigby@freescale.com>
	<1223406020-12278-3-git-send-email-jrigby@freescale.com>
Cc: John Rigby <jrigby@freescale.com>
X-BeenThere: linuxppc-dev@ozlabs.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: Linux on PowerPC Developers Mail List <linuxppc-dev.ozlabs.org>
List-Unsubscribe: <https://ozlabs.org/mailman/options/linuxppc-dev>,
	<mailto:linuxppc-dev-request@ozlabs.org?subject=unsubscribe>
List-Archive: <http://ozlabs.org/pipermail/linuxppc-dev>
List-Post: <mailto:linuxppc-dev@ozlabs.org>
List-Help: <mailto:linuxppc-dev-request@ozlabs.org?subject=help>
List-Subscribe: <https://ozlabs.org/mailman/listinfo/linuxppc-dev>,
	<mailto:linuxppc-dev-request@ozlabs.org?subject=subscribe>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: linuxppc-dev-bounces+gary=mlbassoc.com@ozlabs.org
Errors-To: linuxppc-dev-bounces+gary=mlbassoc.com@ozlabs.org

The class of the MPC5121 pci host bridge is PCI_CLASS_BRIDGE_OTHER
while other freescale host bridges have class set to
PCI_CLASS_PROCESSOR_POWERPC.

This patch makes fixup_hide_host_resource_fsl match
PCI_CLASS_BRIDGE_OTHER in addition to PCI_CLASS_PROCESSOR_POWERPC.

Signed-off-by: John Rigby <jrigby@freescale.com>
---
 arch/powerpc/kernel/pci_32.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/kernel/pci_32.c b/arch/powerpc/kernel/pci_32.c
index 174b77e..a848c63 100644
--- a/arch/powerpc/kernel/pci_32.c
+++ b/arch/powerpc/kernel/pci_32.c
@@ -54,11 +54,12 @@ LIST_HEAD(hose_list);
 static int pci_bus_count;
 
 static void
-fixup_hide_host_resource_fsl(struct pci_dev* dev)
+fixup_hide_host_resource_fsl(struct pci_dev *dev)
 {
 	int i, class = dev->class >> 8;
 
-	if ((class == PCI_CLASS_PROCESSOR_POWERPC) &&
+	if ((class == PCI_CLASS_PROCESSOR_POWERPC ||
+	     class == PCI_CLASS_BRIDGE_OTHER) &&
 		(dev->hdr_type == PCI_HEADER_TYPE_NORMAL) &&
 		(dev->bus->parent == NULL)) {
 		for (i = 0; i < DEVICE_COUNT_RESOURCE; i++) {
-- 
1.5.6.2.255.gbed62

_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev
