diff options
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/libata-sff.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c index 2a4c516894f0..4b4739486327 100644 --- a/drivers/ata/libata-sff.c +++ b/drivers/ata/libata-sff.c | |||
@@ -2153,8 +2153,17 @@ void ata_sff_error_handler(struct ata_port *ap) | |||
2153 | */ | 2153 | */ |
2154 | void ata_sff_post_internal_cmd(struct ata_queued_cmd *qc) | 2154 | void ata_sff_post_internal_cmd(struct ata_queued_cmd *qc) |
2155 | { | 2155 | { |
2156 | if (qc->ap->ioaddr.bmdma_addr) | 2156 | struct ata_port *ap = qc->ap; |
2157 | unsigned long flags; | ||
2158 | |||
2159 | spin_lock_irqsave(ap->lock, flags); | ||
2160 | |||
2161 | ap->hsm_task_state = HSM_ST_IDLE; | ||
2162 | |||
2163 | if (ap->ioaddr.bmdma_addr) | ||
2157 | ata_bmdma_stop(qc); | 2164 | ata_bmdma_stop(qc); |
2165 | |||
2166 | spin_unlock_irqrestore(ap->lock, flags); | ||
2158 | } | 2167 | } |
2159 | 2168 | ||
2160 | /** | 2169 | /** |