Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29322
b: refs/heads/master
c: c56b14d
h: refs/heads/master
v: v3
  • Loading branch information
Albert Lee authored and Jeff Garzik committed Sep 30, 2005
1 parent 7bad1d1 commit 5241ca2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 22 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: e50362eccd8809a224cda5f71714a088ba37b2ab
refs/heads/master: c56b14d2a3e32695e13cd49b417da889da744d1c
12 changes: 0 additions & 12 deletions trunk/drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3430,18 +3430,6 @@ int ata_qc_issue_prot(struct ata_queued_cmd *qc)
break;

case ATA_PROT_ATAPI:
if (qc->tf.flags & ATA_TFLAG_POLLING)
ata_qc_set_polling(qc);

ata_tf_to_host_nolock(ap, &qc->tf);
ap->hsm_task_state = HSM_ST_FIRST;

/* send cdb by polling if no cdb interrupt */
if ((!(qc->dev->flags & ATA_DFLAG_CDB_INTR)) ||
(qc->tf.flags & ATA_TFLAG_POLLING))
queue_work(ata_wq, &ap->packet_task);
break;

case ATA_PROT_ATAPI_NODATA:
if (qc->tf.flags & ATA_TFLAG_POLLING)
ata_qc_set_polling(qc);
Expand Down
19 changes: 10 additions & 9 deletions trunk/include/linux/libata.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,16 @@ enum {
};

enum hsm_task_states {
HSM_ST_UNKNOWN,
HSM_ST_IDLE,
HSM_ST_POLL,
HSM_ST_TMOUT,
HSM_ST,
HSM_ST_LAST,
HSM_ST_LAST_POLL,
HSM_ST_ERR,
HSM_ST_FIRST,
HSM_ST_UNKNOWN, /* state unknown */
HSM_ST_IDLE, /* no command on going */
HSM_ST_POLL, /* same as HSM_ST, waits longer */
HSM_ST_TMOUT, /* timeout */
HSM_ST, /* (waiting the device to) transfer data */
HSM_ST_LAST, /* (waiting the device to) complete command */
HSM_ST_LAST_POLL, /* same as HSM_ST_LAST, waits longer */
HSM_ST_ERR, /* error */
HSM_ST_FIRST, /* (waiting the device to)
write CDB or first data block */
};

/* forward declarations */
Expand Down

0 comments on commit 5241ca2

Please sign in to comment.