summaryrefslogtreecommitdiffstats
path: root/sys/pccard/pcic_pci.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-06-16 23:26:18 +0000
committerimp <imp@FreeBSD.org>2001-06-16 23:26:18 +0000
commit59b4b8de49cd3b6f902e0b56d18e6b531a53d306 (patch)
treeacf3a48b8ba625d38d9ec3f7c274504e7c5d561c /sys/pccard/pcic_pci.c
parent268df752d0961f44b3d10fc10e676548b752cb17 (diff)
downloadFreeBSD-src-59b4b8de49cd3b6f902e0b56d18e6b531a53d306.zip
FreeBSD-src-59b4b8de49cd3b6f902e0b56d18e6b531a53d306.tar.gz
Some people are having problems with insert/eject. Add some debug
information until the problems can be tracked down. Right now these are unconditional, but later it will be hidden behind a boot verbose. Also, if there are no events listed in the event mask, return right away. Specifically avoid writing back interrupt acks in this case.
Diffstat (limited to 'sys/pccard/pcic_pci.c')
-rw-r--r--sys/pccard/pcic_pci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/pccard/pcic_pci.c b/sys/pccard/pcic_pci.c
index 132c838..cddb574 100644
--- a/sys/pccard/pcic_pci.c
+++ b/sys/pccard/pcic_pci.c
@@ -311,6 +311,7 @@ pcic_cd_event(void *arg)
u_int32_t stat;
stat = bus_space_read_4(sp->bst, sp->bsh, CB_SOCKET_STATE);
+ device_printf(sc->dev, "debounced state is 0x%x\n", stat);
if ((stat & CB_SS_16BIT) == 0) {
device_printf(sp->sc->dev, "Unsupported card type inserted\n");
} else {
@@ -330,6 +331,9 @@ pcic_pci_intr(void *arg)
u_int32_t event;
event = bus_space_read_4(sp->bst, sp->bsh, CB_SOCKET_EVENT);
+ if (event == 0)
+ return;
+ device_printf(sc->dev, "Event mask 0x%x\n", event);
if (event & CB_SE_CD) {
if (!sc->cd_pending) {
sc->cd_pending = 1;
OpenPOWER on IntegriCloud