sparc32,leon: add support for PCI busn resource for LEON
PATCH 1/2 sparc32,leon: add support for PCI busn resource for LEON
Signed-off-by Daniel Hellstrom <[email protected]>
--- arch/sparc/include/asm/leon_pci.h | 1 + arch/sparc/kernel/leon_pci.c | 2 ++ 2 files changed, 3 insertions(+), 0 deletions(-)
arch/sparc/include/asm/leon_pci.h +1 -0
@@ -12,6 +12,7 @@ struct leon_pci_info {struct pci_ops *ops;struct resource io_space;struct resource mem_space; +struct resource busn;int (*map_irq)(const struct pci_dev *dev,u8 slot,u8 pin); };
arch/sparc/kernel/leon_pci.c +2 -0
@@ -29,6 +29,8 @@ void leon_pci_init(struct platform_device *ofdev, struct leon_pci_info *info)pci_add_resource_offset (&resources, &info->io_space, info->io_space.start -0x1000 );pci_add_resource (&resources, &info->mem_space); + info->busn.flags =IORESOURCE_BUS ; +pci_add_resource (&resources, &info->busn); root_bus =pci_scan_root_bus (&ofdev->dev,0 , info->ops, info, &resources);
Signature · 1 line
1.7.0.4
David Miller
maintainerFrom: Daniel Hellstrom <[email protected]>
Date: Thu, 28 Feb 2013 15:30:20 +0100
Quoted 1 line
Signed-off-by Daniel Hellstrom <[email protected]>
This and the next patch should be combined into one. You're now registering &info->busn but callers aren't setting it up properly.
Quoted 6 lines · David Miller
From: Daniel Hellstrom <[email protected]>
Date: Thu, 28 Feb 2013 15:30:20 +0100Quoted 1 line
Signed-off-by Daniel Hellstrom <[email protected]>This and the next patch should be combined into one. You're now registering
&info->busnbut callers aren't setting it up properly.
Ok, good point. I will resend.
Thanks,
Daniel