If last state was supended, remove the card. This is a kludge, there

is a race here that the old code didn't deal with, and I'm not
completely sure this is the right way to solve it, but it works here.

Should get rid of the dreaded "No free configuration for card" message.
This commit is contained in:
Warner Losh 1999-12-08 07:47:41 +00:00
parent 368a9f3acb
commit f077fb2703
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54290

View File

@ -149,6 +149,9 @@ slot_change(struct slot *sp)
card_removed(sp);
break;
case filled:
/* KLUDGE: if we were suspended, remove card */
if (state.laststate == suspend)
card_removed(sp);
card_inserted(sp);
break;
case suspend: