From patchwork Thu Oct 13 13:04:43 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 119499 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 61E00B6F86 for ; Fri, 14 Oct 2011 00:20:53 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755261Ab1JMNUu (ORCPT ); Thu, 13 Oct 2011 09:20:50 -0400 Received: from mail-ey0-f174.google.com ([209.85.215.174]:57043 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755252Ab1JMNUu (ORCPT ); Thu, 13 Oct 2011 09:20:50 -0400 Received: by eye27 with SMTP id 27so1825802eye.19 for ; Thu, 13 Oct 2011 06:20:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:mime-version:content-type :content-transfer-encoding:message-id; bh=zz2w+aV1ileyIldNCqQ2q+JlVGz8xCE/CwpG/DuHFjI=; b=sfXwg9VhqG9IlXtI8uZNO/stYwC7sO2oDCmSG/NLj8OHKUEilGdhqV8Q88BQ+Xx7zL VmQYYYct8khBZkHqrJDByWdDiJvKAt6JRX2IPQmrKuEHEl0SKSU4MTI5thDWeDVRLKYu OWVH0UdibqrX60qba6RgHaLH8/D+SMDhxjpqM= Received: by 10.223.7.18 with SMTP id b18mr6020784fab.31.1318512048699; Thu, 13 Oct 2011 06:20:48 -0700 (PDT) Received: from linux-mhg7.site (89-74-122-41.dynamic.chello.pl. [89.74.122.41]) by mx.google.com with ESMTPS id n1sm9908527fad.20.2011.10.13.06.20.47 (version=SSLv3 cipher=OTHER); Thu, 13 Oct 2011 06:20:47 -0700 (PDT) From: Bartlomiej Zolnierkiewicz To: Jeff Garzik Subject: [PATCH] libata: make ata_sff_data_xfer_noirq() work with 32-bit PIO Date: Thu, 13 Oct 2011 15:04:43 +0200 User-Agent: KMail/1.13.6 (Linux/2.6.37.6-0.7-desktop-dirty; KDE/4.6.0; x86_64; ; ) Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-Id: <201110131504.43311.bzolnier@gmail.com> Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org From: Bartlomiej Zolnierkiewicz Subject: [PATCH] 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 --- earlier references: https://lkml.org/lkml/2009/11/25/335 drivers/ata/libata-sff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: b/drivers/ata/libata-sff.c =================================================================== --- a/drivers/ata/libata-sff.c +++ b/drivers/ata/libata-sff.c @@ -838,7 +838,7 @@ unsigned int ata_sff_data_xfer_noirq(str 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;