Patchwork [2/2] sparc32,leon: add support for PCI busn resource in GRPCI2 driver

login
register
mail settings
Submitter Daniel Hellstrom
Date Feb. 28, 2013, 2:30 p.m.
Message ID <1362061821-31584-2-git-send-email-daniel@gaisler.com>
Download mbox | patch
Permalink /patch/223968/
State Changes Requested
Delegated to: David Miller
Headers show

Comments

Daniel Hellstrom - Feb. 28, 2013, 2:30 p.m.
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
---
 arch/sparc/kernel/leon_pci_grpci2.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Patch

diff --git a/arch/sparc/kernel/leon_pci_grpci2.c b/arch/sparc/kernel/leon_pci_grpci2.c
index fc43208..40fdcbc 100644
--- a/arch/sparc/kernel/leon_pci_grpci2.c
+++ b/arch/sparc/kernel/leon_pci_grpci2.c
@@ -788,6 +788,11 @@  static int grpci2_of_probe(struct platform_device *ofdev)
 	if (request_resource(&ioport_resource, &priv->info.io_space) < 0)
 		goto err4;
 
+	/* setup maximum supported PCI buses */
+	priv->info.busn.name = "GRPCI2 busn";
+	priv->info.busn.start = 0;
+	priv->info.busn.end = 255;
+
 	grpci2_hw_init(priv);
 
 	/*