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:
mav 2010-01-26 16:05:49 +00:00
parent 16e135f2d0
commit ebe037cfd5

View File

@ -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));