lkml.org 
[lkml]   [2012]   [Feb]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 27/39] PCI, sparc: Register busn_res for root buses
    Date
    Signed-off-by: Yinghai Lu <yinghai@kernel.org>
    Cc: "David S. Miller" <davem@davemloft.net>
    Cc: sparclinux@vger.kernel.org
    ---
    arch/sparc/kernel/pci.c | 4 ++++
    arch/sparc/kernel/pci_impl.h | 1 +
    2 files changed, 5 insertions(+), 0 deletions(-)

    diff --git a/arch/sparc/kernel/pci.c b/arch/sparc/kernel/pci.c
    index 253e8ac..1687fed 100644
    --- a/arch/sparc/kernel/pci.c
    +++ b/arch/sparc/kernel/pci.c
    @@ -695,6 +695,10 @@ struct pci_bus * __devinit pci_scan_one_pbm(struct pci_pbm_info *pbm,
    pbm->io_space.start);
    pci_add_resource_offset(&resources, &pbm->mem_space,
    pbm->mem_space.start);
    + pbm->busn.start = pbm->pci_first_busno;
    + pbm->busn.end = pbm->pci_last_busn;
    + pbm->busn.flags = IORESOURCE_BUS;
    + pci_add_resource(&resources, &pbm->busn);
    bus = pci_create_root_bus(parent, pbm->pci_first_busno, pbm->pci_ops,
    pbm, &resources);
    if (!bus) {
    diff --git a/arch/sparc/kernel/pci_impl.h b/arch/sparc/kernel/pci_impl.h
    index 6beb60d..918a203 100644
    --- a/arch/sparc/kernel/pci_impl.h
    +++ b/arch/sparc/kernel/pci_impl.h
    @@ -97,6 +97,7 @@ struct pci_pbm_info {
    /* PBM I/O and Memory space resources. */
    struct resource io_space;
    struct resource mem_space;
    + struct resource busn;

    /* Base of PCI Config space, can be per-PBM or shared. */
    unsigned long config_space;
    --
    1.7.7


    \
     
     \ /
      Last update: 2012-03-01 00:15    [W:3.150 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site