Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15856
b: refs/heads/master
c: d8fe452
h: refs/heads/master
v: v3
  • Loading branch information
Albert Lee authored and Jeff Garzik committed Dec 6, 2005
1 parent e3e6309 commit 5a2229c
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 1c8489840e6b080e810e588423c1b6dd5913cf18
refs/heads/master: d8fe452b3e8e9ea6d62a3d116a092999fabae407
13 changes: 7 additions & 6 deletions trunk/drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -4083,13 +4083,17 @@ static void atapi_packet_task(void *_data)

/* sleep-wait for BSY to clear */
DPRINTK("busy wait\n");
if (ata_busy_sleep(ap, ATA_TMOUT_CDB_QUICK, ATA_TMOUT_CDB))
goto err_out_status;
if (ata_busy_sleep(ap, ATA_TMOUT_CDB_QUICK, ATA_TMOUT_CDB)) {
qc->err_mask |= AC_ERR_ATA_BUS;
goto err_out;
}

/* make sure DRQ is set */
status = ata_chk_status(ap);
if ((status & (ATA_BUSY | ATA_DRQ)) != ATA_DRQ)
if ((status & (ATA_BUSY | ATA_DRQ)) != ATA_DRQ) {
qc->err_mask |= AC_ERR_ATA_BUS;
goto err_out;
}

/* send SCSI cdb */
DPRINTK("send cdb\n");
Expand Down Expand Up @@ -4121,10 +4125,7 @@ static void atapi_packet_task(void *_data)

return;

err_out_status:
status = ata_chk_status(ap);
err_out:
qc->err_mask |= __ac_err_mask(status);
ata_poll_qc_complete(qc);
}

Expand Down

0 comments on commit 5a2229c

Please sign in to comment.