From patchwork Tue Apr 18 23:16:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Cvek X-Patchwork-Id: 9686639 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C9007601C2 for ; Tue, 18 Apr 2017 23:16:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB36C27D4D for ; Tue, 18 Apr 2017 23:16:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AFC432838E; Tue, 18 Apr 2017 23:16:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4C83527D4D for ; Tue, 18 Apr 2017 23:16:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:References:To:Subject:From:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=V9Hlpgu7K9HdbyECUswyYartNkIxGrreD9VXkY2J5Yk=; b=Zx9qn29gRj81Ef l5zC0Mm0+XMW0tl3jBIeAvWVAPuDBEsmmD+2rjSqQ2yYoWShDkXzOtrR83L92H6nfWJjSO87ZwJmX syG5vKGuqW/voUcapLhTrJ+dVvhtPThBLD/mzTv6Hr8Wo/1GcES8kGaT5d2B/tjev9KOcwkfDqjth Pz2Cg/ZjGn0gQK5TKLujZZ5NQD4v9z9kBDENcbuTwg2JZYZq/PD+/oBwmYs3x55VjXS0EE8AgXDtr xyV8ehYN0KXirkU+n9wOrYrUzBlcwDBNBir9ojln8/TlppSbMeCLE+YsAFsgAhb7DMjlU4B5b3mYC 8rasN38c97+EBop6NdHg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d0cMC-0008Q9-Vh; Tue, 18 Apr 2017 23:16:24 +0000 Received: from bubo.tul.cz ([147.230.16.1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d0cMA-000882-0U for linux-arm-kernel@lists.infradead.org; Tue, 18 Apr 2017 23:16:23 +0000 X-Virus-Scanned: amavisd-new at tul.cz Received: from [IPv6:2001:1ae9:ff1:f191:60c5:33b1:380e:2367] (unknown [IPv6:2001:1ae9:ff1:f191:60c5:33b1:380e:2367]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by bubo.tul.cz (Postfix) with ESMTPSA id 4A29218050A0B; Wed, 19 Apr 2017 01:15:56 +0200 (CEST) From: Petr Cvek Subject: [PATCH 1/4] mmc: pxamci: Use the right flags for DMA callback init To: ulf.hansson@linaro.org, robert.jarzmik@free.fr References: Message-ID: Date: Wed, 19 Apr 2017 01:16:26 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170418_161622_233598_C1E091D1 X-CRM114-Status: GOOD ( 10.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The MMC_DATA_READ and the MMC_DATA_WRITE flags for the mmc request are not mutually exclusive (two different bits). Change the callback initialization code to use the proper one. Signed-off-by: Petr Cvek --- drivers/mmc/host/pxamci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/pxamci.c b/drivers/mmc/host/pxamci.c index c763b404510f..80bc8065b50f 100644 --- a/drivers/mmc/host/pxamci.c +++ b/drivers/mmc/host/pxamci.c @@ -235,7 +235,7 @@ static void pxamci_setup_data(struct pxamci_host *host, struct mmc_data *data) return; } - if (!(data->flags & MMC_DATA_READ)) { + if (data->flags & MMC_DATA_WRITE) { tx->callback = pxamci_dma_irq; tx->callback_param = host; }