Clear ch->devices, if hard-reset failed.
This makes hot-plug work nicely. HW donated by: James R. Van Artsdalen
This commit is contained in:
parent
16e135f2d0
commit
ebe037cfd5
@ -821,7 +821,8 @@ ata_promise_mio_reset(device_t dev)
|
||||
device_printf(dev, "promise_mio_reset devices=%08x\n",
|
||||
ch->devices);
|
||||
|
||||
}
|
||||
} else
|
||||
ch->devices = 0;
|
||||
|
||||
/* reset and enable plug/unplug intr */
|
||||
ATA_OUTL(ctlr->r_res2, 0x060, (0x00000011 << ch->unit));
|
||||
|
Loading…
x
Reference in New Issue
Block a user