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: 9686637 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 D4D8F601C2 for ; Tue, 18 Apr 2017 23:16:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C62B527D4D for ; Tue, 18 Apr 2017 23:16:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B8FC12838E; Tue, 18 Apr 2017 23:16:00 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 63E1727D4D for ; Tue, 18 Apr 2017 23:16:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752545AbdDRXP7 (ORCPT ); Tue, 18 Apr 2017 19:15:59 -0400 Received: from bubo.tul.cz ([147.230.16.1]:32922 "EHLO bubo.tul.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752196AbdDRXP7 (ORCPT ); Tue, 18 Apr 2017 19:15:59 -0400 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: Cc: linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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: Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.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; }