Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116829
b: refs/heads/master
c: 570106d
h: refs/heads/master
i:
  116827: de0a851
v: v3
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Oct 23, 2008
1 parent b2113fd commit 819baee
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 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: f667fdbbbea8bcce6cf9f7acb51b7cb4c264cc61
refs/heads/master: 570106df6bdb4907ad7f70793079c762f34d561a
11 changes: 10 additions & 1 deletion trunk/drivers/ata/libata-sff.c
Original file line number Diff line number Diff line change
Expand Up @@ -2153,8 +2153,17 @@ void ata_sff_error_handler(struct ata_port *ap)
*/
void ata_sff_post_internal_cmd(struct ata_queued_cmd *qc)
{
if (qc->ap->ioaddr.bmdma_addr)
struct ata_port *ap = qc->ap;
unsigned long flags;

spin_lock_irqsave(ap->lock, flags);

ap->hsm_task_state = HSM_ST_IDLE;

if (ap->ioaddr.bmdma_addr)
ata_bmdma_stop(qc);

spin_unlock_irqrestore(ap->lock, flags);
}

/**
Expand Down

0 comments on commit 819baee

Please sign in to comment.