Yenta CardBus disables IRQ on insert

Dominik Brodowski linux at dominikbrodowski.net
Sun Feb 20 05:08:30 EST 2005


Hi,

Could both of you try out this patch by Daniel Ritz -- both he and I spent
last night debugging a tricky issue which might also be triggered on your
systems, as (at least) Mike Cumings' reports unsupported PM caps as well.

Thanks,
	Dominik


# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2005/02/19 17:16:24-08:00 daniel.ritz at gmx.ch 
#   [PATCH] PCI: support PCI_PM_CAP version 1
#   
#   A check for the PM_CAP version was recently added but i breaks devices
#   with version 1.  if they're in power-save mode they never get out of it.
#   
#   Change it to also support v1. 
#   
#   Signed-off-by: Daniel Ritz <daniel.ritz at gmx.ch>
#   Signed-off-by: Linus Torvalds <torvalds at osdl.org>
# 
# drivers/pci/pci.c
#   2005/02/19 16:44:39-08:00 daniel.ritz at gmx.ch +1 -1
#   PCI: support PCI_PM_CAP version 1
# 
diff -Nru a/drivers/pci/pci.c b/drivers/pci/pci.c
--- a/drivers/pci/pci.c	2005-02-20 02:07:04 -08:00
+++ b/drivers/pci/pci.c	2005-02-20 02:07:04 -08:00
@@ -268,7 +268,7 @@
 		return -EIO; 
 
 	pci_read_config_word(dev,pm + PCI_PM_PMC,&pmc);
-	if ((pmc & PCI_PM_CAP_VER_MASK) != 2) {
+	if ((pmc & PCI_PM_CAP_VER_MASK) > 2) {
 		printk(KERN_DEBUG
 		       "PCI: %s has unsupported PM cap regs version (%u)\n",
 		       dev->slot_name, pmc & PCI_PM_CAP_VER_MASK);





More information about the linux-pcmcia mailing list