From: Bartlomiej Zolnierkiewicz Date: Thu, 13 Oct 2011 13:04:43 +0000 (+0200) Subject: libata: make ata_sff_data_xfer_noirq() work with 32-bit PIO X-Git-Tag: upstream/snapshot3+hdmi~8911^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=418fae2751b0d1a362ad9e0b45d446dc92e9157f;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git libata: make ata_sff_data_xfer_noirq() work with 32-bit PIO Always use ata_sff_data_xfer32() in ata_sff_data_xfer_noirq() so the latter can be also used for host controllers supporting 32-bit PIO operations. It is a completely safe thing to do because if 32-bit PIO is not supported or enabled ata_sff_data_xfer32() will fallback to a standard method. Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c index 1c79a95..239bfa6 100644 --- a/drivers/ata/libata-sff.c +++ b/drivers/ata/libata-sff.c @@ -678,7 +678,7 @@ unsigned int ata_sff_data_xfer_noirq(struct ata_device *dev, unsigned char *buf, unsigned int consumed; local_irq_save(flags); - consumed = ata_sff_data_xfer(dev, buf, buflen, rw); + consumed = ata_sff_data_xfer32(dev, buf, buflen, rw); local_irq_restore(flags); return consumed;