Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 May 1998 10:34:13 -0600
From:      Nate Williams <nate@mt.sri.com>
To:        "Larry S. Marso" <larry@marso.com>
Cc:        freebsd-mobile@FreeBSD.ORG
Subject:   Re: hot swapping fails in current
Message-ID:  <199805261634.KAA05627@mt.sri.com>
In-Reply-To: <19980526112046.A3058@marso.com>
References:  <19980526112046.A3058@marso.com>

next in thread | previous in thread | raw e-mail | index | archive | help
[ Removed -current ]

> Any reason why current as of three days ago would fail to notice the
> addition or removal of PCMCIA cards, but properly configure them upon
> boot-up?

Yep, but that change was done *weeks* ago.

revision 1.59
date: 1998/04/20 15:15:20;  author: nate;  state: Exp;  lines: +4 -3
- Only poll the PCIC controller for insertion/removal events if the
  controller hasn't been assigned an IRQ.

So, this means your PCIC controller is busted, and is 'wasting' an IRQ
that doesn't work.

The correct solution is to figure out why the IRQ isn't working, but the
'quick-n-dirty' fix is to re-enable the polling feature.

Index: pcic.c
===================================================================
RCS file: /data/FreeBSD/CVS/src/sys/pccard/pcic.c,v
retrieving revision 1.59
retrieving revision 1.58
diff -u -r1.59 -r1.58
--- pcic.c      1998/04/20 15:15:20     1.59
+++ pcic.c      1998/04/15 17:46:55     1.58
@@ -795,7 +795,7 @@
        pcic98_probe_end:
        }
 #endif /* PC98 */
-       if (validslots && pcic_irq <= 0)
+       if (validslots)
                pcictimeout_ch = timeout(pcictimeout, 0, hz/2);
        return(validslots);
 }

(White-space is hosed due to cut-n-paste.)



Nate

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805261634.KAA05627>