[libata pdc_adma] fix for new irq-driven PIO code
This commit is contained in:
parent
fce45c1c8a
commit
94ec1ef1cf
1 changed files with 2 additions and 2 deletions
|
@ -457,13 +457,13 @@ static inline unsigned int adma_intr_pkt(struct ata_host_set *host_set)
|
||||||
continue;
|
continue;
|
||||||
handled = 1;
|
handled = 1;
|
||||||
adma_enter_reg_mode(ap);
|
adma_enter_reg_mode(ap);
|
||||||
if (ap->flags & (ATA_FLAG_PORT_DISABLED | ATA_FLAG_NOINTR))
|
if (ap->flags & ATA_FLAG_PORT_DISABLED)
|
||||||
continue;
|
continue;
|
||||||
pp = ap->private_data;
|
pp = ap->private_data;
|
||||||
if (!pp || pp->state != adma_state_pkt)
|
if (!pp || pp->state != adma_state_pkt)
|
||||||
continue;
|
continue;
|
||||||
qc = ata_qc_from_tag(ap, ap->active_tag);
|
qc = ata_qc_from_tag(ap, ap->active_tag);
|
||||||
if (qc && (!(qc->tf.ctl & ATA_NIEN))) {
|
if (qc && (!(qc->tf.flags & ATA_TFLAG_POLLING))) {
|
||||||
if ((status & (aPERR | aPSD | aUIRQ)))
|
if ((status & (aPERR | aPSD | aUIRQ)))
|
||||||
drv_stat = ATA_ERR;
|
drv_stat = ATA_ERR;
|
||||||
else if (pp->pkt[0] != cDONE)
|
else if (pp->pkt[0] != cDONE)
|
||||||
|
|
Loading…
Add table
Reference in a new issue