possible bug in pd6729

John G. Heim jheim at math.wisc.edu
Sun Oct 18 19:03:27 EDT 2009


Sorry it has taken me so long to get back to you about the patch. I had a 
lot of trouble compiling a kernel. I found that the 2.6.30 kernl won't boot 
on my laptop.  I tried the stock debian 2.6.30-486 kernel and tried 
compiling one on my own. I was running a 2.6.26 kernel so I tried compiling 
a 2.6.26 kernel but I couldn't patch in the screen reader (speakup). That 
kernel booted but I wouldn't be able to tell if it had the pd6729 bug 
because I can't access the console.

So I am now compileing a 2.6.29 kernel. The only problem is I cannot apply 
the patch (rreproduced below). I cut it out of the email message and pasted 
it into a file named pd6729.patch. I tried to apply the patch like this:

hutson:/usr/src/linux# patch -p1 </tmp/pd6729.patch
patching file drivers/pcmcia/pd6729.c
Hunk #1 FAILED at 641.
1 out of 1 hunk FAILED -- saving rejects to file drivers/pcmcia/pd6729.c.rej

I am thinking this means applying the patch did not work.

--- a/drivers/pcmcia/pd6729.c.orig   2009-09-12 11:14:37.000000000 +0900
+++ b/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