From owner-freebsd-mobile Tue Jun 4 08:09:25 1996 Return-Path: owner-mobile Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA20260 for mobile-outgoing; Tue, 4 Jun 1996 08:09:25 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id IAA20254 for ; Tue, 4 Jun 1996 08:09:20 -0700 (PDT) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id BAA07857 for mobile@freebsd.org; Wed, 5 Jun 1996 01:01:55 +0930 From: Michael Smith Message-Id: <199606041531.BAA07857@genesis.atrad.adelaide.edu.au> Subject: Solved suspend hang with if_ed driver To: mobile@freebsd.org Date: Wed, 5 Jun 1996 01:01:54 +0930 (CST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I hope the Right People are subscribed to this list 8) I've found the 'suspend wedge' I was getting with the Accton 2216 (ed) PC-Card and my Sharp notebook; when the slot is shut down, the card generates a spurious interrupt which is never cleared (obviously because the card is gone 8) Part of the fix is simple; change edsuspend to read : static void edsuspend(struct pccard_dev *dp) { struct ed_softc *sc = &ed_softc[dp->isahd.id_unit]; printf("ed%d: suspending\n", dp->isahd.id_unit); sc->gone = 1; /* avoid interrupt spin on suspend */ } Not so simple is how to clear it again, or whether the card should be fully unloaded and then reloaded again on resume. Any ideas? I don't have a network here to test on at the moment, so I can't actually tell if the card has come back to life despite sc->gone being set, or whether it's deaf to interrupts (I suspect this...) If the card's been powered down is it likely to need reconfiguring, or do PC-Cards tend to retain their configuration across suspends? (Yes, I'll be investigating this when I get the time, but I'm sure someone else knows 8) -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] Collector of old Unix hardware. "Where are your PEZ?" The Tick [[