From 04a6a52217ab308220e97946befc2943eb93f68c Mon Sep 17 00:00:00 2001 From: imp Date: Mon, 7 May 2001 16:50:34 +0000 Subject: Disable the card after sending the removed event up to the pccard layer. This fixes an ordering problem that would cause the ISR for the device to run with now power applied to the device. Most cards failed to deal with this gracefully, and thus would hang on card eject. The power down event, for those keeping score, is what causes the interrupt for the card. Many folks in the Japanese nomads list have reported this, so I'll be MFCing quickly for their benefit. Submitted by: Masayuki FUKUI MFC after: 2 days --- sys/pccard/pcic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/pccard/pcic.c') diff --git a/sys/pccard/pcic.c b/sys/pccard/pcic.c index 5dff359..9bb7e01 100644 --- a/sys/pccard/pcic.c +++ b/sys/pccard/pcic.c @@ -853,9 +853,9 @@ pcicintr(void *arg) pccard_event(sp->slt, card_inserted); } else { - cinfo.disable(sp->slt); pccard_event(sp->slt, card_removed); + cinfo.disable(sp->slt); } } } -- cgit v1.1