From 59b4b8de49cd3b6f902e0b56d18e6b531a53d306 Mon Sep 17 00:00:00 2001 From: imp Date: Sat, 16 Jun 2001 23:26:18 +0000 Subject: 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. --- sys/pccard/pcic_pci.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/pccard/pcic_pci.c') 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; -- cgit v1.1