diff options
| author | Alexander Motin <mav@FreeBSD.org> | 2013-04-24 19:33:37 +0000 |
|---|---|---|
| committer | Alexander Motin <mav@FreeBSD.org> | 2013-04-24 19:33:37 +0000 |
| commit | 7bed0ae072f91e20574c94e53fabc646df45ba33 (patch) | |
| tree | 957755828b103644bb8b8fc45efa9b55324f0e6e /sys/dev/ahci | |
| parent | 54286e923f68180c65b53056598054931f87d38d (diff) | |
Notes
Diffstat (limited to 'sys/dev/ahci')
| -rw-r--r-- | sys/dev/ahci/ahci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ahci/ahci.c b/sys/dev/ahci/ahci.c index 587d3119f3bc..b3989291a41b 100644 --- a/sys/dev/ahci/ahci.c +++ b/sys/dev/ahci/ahci.c @@ -1524,7 +1524,8 @@ ahci_ch_intr(void *data) if (ch->numrslots != ch->numtslots) cstatus |= ATA_INL(ch->r_mem, AHCI_P_CI); /* Read SNTF in one of possible ways. */ - if (istatus & AHCI_P_IX_SDB) { + if ((istatus & AHCI_P_IX_SDB) && + (ch->pm_present || ch->curr[0].atapi != 0)) { if (ch->caps & AHCI_CAP_SSNTF) sntf = ATA_INL(ch->r_mem, AHCI_P_SNTF); else if (ch->fbs_enabled) { |
