Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29373
b: refs/heads/master
c: 555a896
h: refs/heads/master
i:
  29371: 1d344b5
v: v3
  • Loading branch information
Albert Lee authored and Jeff Garzik committed Feb 9, 2006
1 parent 8941ddf commit fe4f783
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 20ea079e5883ab2b82fa5e576957f52e4e5c252c
refs/heads/master: 555a8965069b8e34292cbccc3ad8f619b96815fe
12 changes: 6 additions & 6 deletions trunk/drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3315,7 +3315,7 @@ static int ata_pio_first_block(struct ata_port *ap)
/* sleep-wait for BSY to clear */
DPRINTK("busy wait\n");
if (ata_busy_sleep(ap, ATA_TMOUT_DATAOUT_QUICK, ATA_TMOUT_DATAOUT)) {
qc->err_mask |= AC_ERR_ATA_BUS;
qc->err_mask |= AC_ERR_TIMEOUT;
ap->hsm_task_state = HSM_ST_TMOUT;
goto err_out;
}
Expand All @@ -3324,7 +3324,7 @@ static int ata_pio_first_block(struct ata_port *ap)
status = ata_chk_status(ap);
if ((status & (ATA_BUSY | ATA_DRQ)) != ATA_DRQ) {
/* device status error */
qc->err_mask |= AC_ERR_ATA_BUS;
qc->err_mask |= AC_ERR_HSM;
ap->hsm_task_state = HSM_ST_ERR;
goto err_out;
}
Expand Down Expand Up @@ -3684,7 +3684,7 @@ static void ata_qc_timeout(struct ata_queued_cmd *qc)
ap->hsm_task_state = HSM_ST_IDLE;

/* complete taskfile transaction */
qc->err_mask |= ac_err_mask(drv_stat);
qc->err_mask |= AC_ERR_TIMEOUT;
break;
}

Expand Down Expand Up @@ -4365,7 +4365,7 @@ inline unsigned int ata_host_intr (struct ata_port *ap,
/* check device status */
if (unlikely((status & (ATA_BUSY | ATA_DRQ)) != ATA_DRQ)) {
/* Wrong status. Let EH handle this */
qc->err_mask |= AC_ERR_ATA_BUS;
qc->err_mask |= AC_ERR_HSM;
ap->hsm_task_state = HSM_ST_ERR;
goto fsm_start;
}
Expand Down Expand Up @@ -4394,7 +4394,7 @@ inline unsigned int ata_host_intr (struct ata_port *ap,
/* ATA PIO protocol */
if (unlikely((status & ATA_DRQ) == 0)) {
/* handle BSY=0, DRQ=0 as error */
qc->err_mask |= AC_ERR_ATA_BUS;
qc->err_mask |= AC_ERR_HSM;
ap->hsm_task_state = HSM_ST_ERR;
goto fsm_start;
}
Expand All @@ -4416,7 +4416,7 @@ inline unsigned int ata_host_intr (struct ata_port *ap,
case HSM_ST_LAST:
if (unlikely(status & ATA_DRQ)) {
/* handle DRQ=1 as error */
qc->err_mask |= AC_ERR_ATA_BUS;
qc->err_mask |= AC_ERR_HSM;
ap->hsm_task_state = HSM_ST_ERR;
goto fsm_start;
}
Expand Down

0 comments on commit fe4f783

Please sign in to comment.