Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15853
b: refs/heads/master
c: c14b833
h: refs/heads/master
i:
  15851: e9966bc
v: v3
  • Loading branch information
Albert Lee authored and Jeff Garzik committed Dec 6, 2005
1 parent 3c9bc05 commit db19154
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: f38f2a2c6f32bb29bacb95acd8f8a0d6b7270fa9
refs/heads/master: c14b8331ec4843e4f2b67a4d847a0d812a50e43c
10 changes: 7 additions & 3 deletions trunk/drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2802,10 +2802,14 @@ void ata_poll_qc_complete(struct ata_queued_cmd *qc, unsigned int err_mask)

static unsigned long ata_pio_poll(struct ata_port *ap)
{
struct ata_queued_cmd *qc;
u8 status;
unsigned int poll_state = HSM_ST_UNKNOWN;
unsigned int reg_state = HSM_ST_UNKNOWN;

qc = ata_qc_from_tag(ap, ap->active_tag);
assert(qc != NULL);

switch (ap->hsm_task_state) {
case HSM_ST:
case HSM_ST_POLL:
Expand Down Expand Up @@ -2870,15 +2874,15 @@ static int ata_pio_complete (struct ata_port *ap)
}
}

qc = ata_qc_from_tag(ap, ap->active_tag);
assert(qc != NULL);

drv_stat = ata_wait_idle(ap);
if (!ata_ok(drv_stat)) {
ap->hsm_task_state = HSM_ST_ERR;
return 0;
}

qc = ata_qc_from_tag(ap, ap->active_tag);
assert(qc != NULL);

ap->hsm_task_state = HSM_ST_IDLE;

ata_poll_qc_complete(qc, 0);
Expand Down

0 comments on commit db19154

Please sign in to comment.