mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Dont poll for ATA_IDLE on a detached channel in suspend.
This commit is contained in:
parent
bc971e44ed
commit
3559734cee
1 changed files with 2 additions and 2 deletions
|
|
@ -277,8 +277,8 @@ ata_suspend(device_t dev)
|
|||
if (!dev || !(ch = device_get_softc(dev)))
|
||||
return ENXIO;
|
||||
|
||||
/* wait for the channel to be IDLE before entering suspend mode */
|
||||
while (1) {
|
||||
/* wait for the channel to be IDLE or detached before suspending */
|
||||
while (ch->r_irq) {
|
||||
mtx_lock(&ch->state_mtx);
|
||||
if (ch->state == ATA_IDLE) {
|
||||
ch->state = ATA_ACTIVE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue