All of lore.kernel.org
 help / color / mirror / Atom feed
* [parisc-linux] LBA PCI : avoid crash when pluging a pcmcia bridge
@ 2006-11-08 14:07 Guy Martin
  2006-11-09  6:40 ` Grant Grundler
  2006-11-15  8:00 ` Grant Grundler
  0 siblings, 2 replies; 11+ messages in thread
From: Guy Martin @ 2006-11-08 14:07 UTC (permalink / raw)
  To: parisc-linux

[-- Attachment #1: Type: text/plain, Size: 479 bytes --]

Hi All,

Referencing this thread about a crash when there is a pcmcia bridge plugged in a C3600 :
http://lists.parisc-linux.org/pipermail/parisc-linux/2006-October/030312.html

This small patch avoid a crash at boot time.

It's certainly not perfect as it would be better to fix pci_scan_bus_parented() which returns NULL but at least it makes the box booting.

Thanks for applying or fixing this in a better way :)


Cheers,
  Guy


-- 
Guy Martin
Gentoo Linux - HPPA port Lead

[-- Attachment #2: lba-pci-no-crash.diff --]
[-- Type: text/x-patch, Size: 448 bytes --]

diff -uNr linux-2.6.18.2-hppa.orig/drivers/parisc/lba_pci.c linux-2.6.18.2-hppa/drivers/parisc/lba_pci.c
--- linux-2.6.18.2-hppa.orig/drivers/parisc/lba_pci.c	2006-11-08 13:59:32.000000000 +0100
+++ linux-2.6.18.2-hppa/drivers/parisc/lba_pci.c	2006-11-08 14:13:14.000000000 +0100
@@ -1557,7 +1557,8 @@
 		lba_dump_res(&lba_dev->hba.lmmio_space, 2);
 #endif
 	}
-	pci_enable_bridges(lba_bus);
+	if (lba_bus)
+		pci_enable_bridges(lba_bus);
 
 
 	/*

[-- Attachment #3: Type: text/plain, Size: 169 bytes --]

_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-11-18 14:22 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-08 14:07 [parisc-linux] LBA PCI : avoid crash when pluging a pcmcia bridge Guy Martin
2006-11-09  6:40 ` Grant Grundler
2006-11-15  8:00 ` Grant Grundler
2006-11-15 11:25   ` Guy Martin
2006-11-15 12:23     ` Matthew Wilcox
2006-11-15 14:54       ` James Bottomley
2006-11-15 18:08       ` Guy Martin
2006-11-17 20:30         ` Matthew Wilcox
2006-11-18 11:21           ` Guy Martin
2006-11-18 13:56             ` Matthew Wilcox
2006-11-18 14:22               ` James Bottomley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.