1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-22 15:47:37 +00:00

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:
Alexander Motin 2010-01-26 16:05:49 +00:00
parent 2e9f91310b
commit ad753ac2a7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=203033

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