lkml.org 
[lkml]   [2010]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH v1 4/7] PCI: read bridge windows before filling in subtractive decode resources
    From
    Date

    No functional change; this fills in the bus subtractive decode resources
    after reading the bridge window information rather than before. Also,
    print out the subtractive decode resources as we already do for the
    positive decode windows.

    Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
    ---

    drivers/pci/probe.c | 15 ++++++++++-----
    1 files changed, 10 insertions(+), 5 deletions(-)


    diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
    index 1d498cd..fbff005 100644
    --- a/drivers/pci/probe.c
    +++ b/drivers/pci/probe.c
    @@ -391,14 +391,19 @@ void __devinit pci_read_bridge_bases(struct pci_bus *child)
    child->secondary, child->subordinate,
    dev->transparent ? " (subtractive decode)": "");

    - if (dev->transparent) {
    - for(i = 3; i < PCI_BUS_NUM_RESOURCES; i++)
    - child->resource[i] = child->parent->resource[i - 3];
    - }
    -
    pci_read_bridge_io(child);
    pci_read_bridge_mmio(child);
    pci_read_bridge_mmio_pref(child);
    +
    + if (dev->transparent) {
    + for (i = 3; i < PCI_BUS_NUM_RESOURCES; i++) {
    + child->resource[i] = child->parent->resource[i - 3];
    + if (child->resource[i])
    + dev_printk(KERN_DEBUG, &dev->dev,
    + " bridge window %pR (subtractive decode)\n",
    + child->resource[i]);
    + }
    + }
    }

    static struct pci_bus * pci_alloc_bus(void)


    \
     
     \ /
      Last update: 2010-02-04 00:41    [W:0.023 / U:30.300 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site