From: Benjamin Herrenschmidt Date: Tue, 1 Dec 2009 14:36:28 +0000 (+0000) Subject: libata/sff: Use ops->bmdma_stop instead of ata_bmdma_stop() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f0353813afe784330622596ff141e7525ccd99de;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git libata/sff: Use ops->bmdma_stop instead of ata_bmdma_stop() In libata-sff, ata_sff_post_internal_cmd() directly calls ata_bmdma_stop() instead of ap->ops->bmdma_stop(). This can be a problem for controllers that use their own bmdma_stop for which the generic sff one isn't suitable Signed-off-by: Benjamin Herrenschmidt Acked-by: Jeff Garzik --- diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c index bbbb1fab1755..51eb1e298601 100644 --- a/drivers/ata/libata-sff.c +++ b/drivers/ata/libata-sff.c @@ -2384,7 +2384,7 @@ void ata_sff_post_internal_cmd(struct ata_queued_cmd *qc) ap->hsm_task_state = HSM_ST_IDLE; if (ap->ioaddr.bmdma_addr) - ata_bmdma_stop(qc); + ap->ops->bmdma_stop(qc); spin_unlock_irqrestore(ap->lock, flags); }