06 Mar, 2009

7 commits


24 Feb, 2009

7 commits

  • On MPC8377E-RDB and MPC8378E-RDB boards we have PCIe and mini-PCIe
    slots. Let's support them.

    Signed-off-by: Anton Vorontsov
    Signed-off-by: Kim Phillips

    Anton Vorontsov
     
  • We should use pci_last_busno() in pci_init_bus(), otherwise we'll
    erroneously re-use PCI0's first_busno for PCI1 hoses.

    NOTE: The patch is untested. All MPC83xx FSL boards I have have
    PCI1 in miniPCI form, for which I don't have any cards handy.

    But looking in cpu/mpc85xx/pci.c:
    ...
    #ifdef CONFIG_MPC85XX_PCI2
    hose = &pci_hose[1];

    hose->first_busno = pci_hose[0].last_busno + 1;

    And considering that we do the same for MPC83xx PCI-E support,
    I think this patch is correct.

    Signed-off-by: Anton Vorontsov
    Signed-off-by: Kim Phillips

    Anton Vorontsov
     
  • This patch fixes copy-paste issue: pci_hose[0]'s first and last
    busnos were used to fixup pci1's nodes.

    We don't see this bug triggering only because Linux reenumerate
    buses anyway.

    Signed-off-by: Anton Vorontsov
    Signed-off-by: Kim Phillips

    Anton Vorontsov
     
  • This patch fixes an issue in config space read accessors: we should
    fill-in the value even if we fail (e.g. skipping devices), otherwise
    CONFIG_PCI_SCAN_SHOW reports bogus values during boot up.

    Signed-off-by: Anton Vorontsov
    Signed-off-by: Kim Phillips

    Anton Vorontsov
     
  • Currently we assign first_busno = 0 for the first PCIe hose, but this
    scheme won't work if we have ordinary PCI hose already registered (its
    first_busno value is 0 too).

    The old code worked fine only because we have PCI disabled on
    MPC837XEMDS boards in stand-alone mode (see commit 00f7bbae92e3b13f2b3
    "mpc83xx: fix PCI scan hang on the standalone MPC837xE-MDS boards").
    But on MPC837XERDB boards we have PCI and PCIe, so the bug actually
    triggers.

    So, to fix the issue, we should use pci_last_busno() + 1 for the
    first_busno (i.e. last available busno).

    Reported-by: Huang Changming
    Signed-off-by: Anton Vorontsov
    Signed-off-by: Kim Phillips

    Anton Vorontsov
     
  • This is just a handy routine that reports last PCI busno: we walk
    down all the hoses and return last hose's last_busno.

    Will be used by PCI/PCIe initialization code.

    Signed-off-by: Anton Vorontsov
    Signed-off-by: Kim Phillips

    Anton Vorontsov
     
  • Kim Phillips
     

23 Feb, 2009

16 commits


22 Feb, 2009

10 commits