Skip to contentSkip to conversation

sparc32,leon: add support for PCI busn resource in GRPCI2 driver

PATCH Superseded Daniel Hellstrom 1 participant 1 message Feb 28, 2013 SPARC + UltraSPARC (sparc/sparc64)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 sparc32,leon: add support for PCI busn resource in GRPCI2 driver

---
 arch/sparc/kernel/leon_pci_grpci2.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
arch/sparc/kernel/leon_pci_grpci2.c +5 -0
index fc43208..40fdcbc 100644
@@ -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);
 
 	/*
Signature · 1 line
1.7.0.4