[PATCH] pcmcia: does not load the pd6729 driver, if io_base is 0

Komuro komurojun-mbn at nifty.com
Fri Oct 23 19:07:39 EDT 2009


The CL-PD6729 chip in some docking station is not initialized properly under Linux.
in that case, does not load the pd6729 driver.


Signed-off-by: Komuro <komurojun-mbn at nifty.com>

---

--- linux-2.6.31/drivers/pcmcia/pd6729.c.orig	2009-09-12 11:14:37.000000000 +0900
+++ linux-2.6.31/drivers/pcmcia/pd6729.c	2009-09-12 11:40:01.000000000 +0900
@@ -641,6 +641,12 @@
 	if ((ret = pci_enable_device(dev)))
 		goto err_out_free_mem;
 
+	if ((unsigned long long)pci_resource_start(dev, 0) == 0) {
+		printk(KERN_INFO "pd6729: failed to load the driver."
+				 "since the io_base is 0.\n");
+		goto err_out_free_mem;
+	}
+
 	printk(KERN_INFO "pd6729: Cirrus PD6729 PCI to PCMCIA Bridge "
 		"at 0x%llx on irq %d\n",
 		(unsigned long long)pci_resource_start(dev, 0), dev->irq);



More information about the linux-pcmcia mailing list