Stop the recurring feeling of deja vu
Stop the recurring feeling of deja vu Stop the recurring feeling of deja vu Stop the recurring feeling of deja vu and debounce the eject messages. We now mark the socket empty in the interrupt handler, rather than after we've disabled the socket which happens "much later".
This commit is contained in:
parent
724efc44ec
commit
ff95378bb1
@ -189,8 +189,8 @@ disable_slot_to(void *argp)
|
||||
{
|
||||
struct slot *slt = (struct slot *) argp;
|
||||
|
||||
disable_slot(slt);
|
||||
slt->state = empty;
|
||||
disable_slot(slt);
|
||||
printf("pccard: card removed, slot %d\n", slt->slotnum);
|
||||
pccard_remove_beep();
|
||||
selwakeup(&slt->selp);
|
||||
@ -335,6 +335,7 @@ pccard_event(struct slot *slt, enum card_event event)
|
||||
* data structures are not unlinked.
|
||||
*/
|
||||
if (slt->state == filled) {
|
||||
slt->state = empty;
|
||||
disable_slot_spl0(slt);
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user