[PATCH] Re : [BUG] cardbus/hotplugging still broken in 2.5.56

From: Yaacov Akiba Slama (ya@slamail.org)
Date: Tue Jan 14 2003 - 13:39:22 EST


Hello all !

I have a xircom (RBEM56G-100) lan+modem, and it seems that the following
patch solves the problem of ressources collisions.
Now, I can use 2.5.58mm1 in my laptop and I am happy.

Yaacov Akiba Slama


--- a/drivers/pcmcia/cardbus.c 2003-01-14 19:38:49.000000000 +0200
+++ b/drivers/pcmcia/cardbus.c 2003-01-14 19:57:13.000000000 +0200
@@ -285,18 +285,19 @@
                 dev->dev.dma_mask = &dev->dma_mask;
 
                 pci_setup_device(dev);
- if (pci_enable_device(dev))
- continue;
 
                 strcpy(dev->dev.bus_id, dev->slot_name);
 
                 /* FIXME: Do we need to enable the expansion ROM? */
                 for (r = 0; r < 7; r++) {
                         struct resource *res = dev->resource + r;
- if (res->flags)
+ if (!res->start && res->end)
                                 pci_assign_resource(dev, r);
                 }
 
+ if (pci_enable_device(dev))
+ continue;
+
                 /* Does this function have an interrupt at all? */
                 pci_readb(dev, PCI_INTERRUPT_PIN, &irq_pin);
                 if (irq_pin) {

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jan 15 2003 - 22:00:51 EST