Skip to content

Commit

Permalink
powerpc/fsl: Hide MPC5121 pci bridge.
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
John Rigby authored and Kumar Gala committed Oct 13, 2008
1 parent 6266682 commit 4a015c3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/powerpc/kernel/pci_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 4a015c3

Please sign in to comment.