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:
parent
2e9f91310b
commit
ad753ac2a7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=203033
@ -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…
Reference in New Issue
Block a user