From patchwork Tue Apr 18 23:17:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Cvek X-Patchwork-Id: 9686655 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 CA1AB601C2 for ; Tue, 18 Apr 2017 23:18:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BBAC820265 for ; Tue, 18 Apr 2017 23:18:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B06E02839C; Tue, 18 Apr 2017 23:18:39 +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 4FBBB20265 for ; Tue, 18 Apr 2017 23:18:39 +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=wihgJY3iCkMDiT40zuhsiGOUzTCeci3nZvnM7pGsve0=; b=d7saLpsSwTwuIM pva2RprSYsWdv3aJUlPzeRzw+24dkOE3xDm3MEACtc6vF/xdrl/cfEysYIV8r9gU1JyvHONbLd8qa 9LaR5bUDuyzTzLqAOfAmjMK+KocShWVWskN6895Pis5UOttcgO2W6sOYIYBxKXyNBWS5rQpfKmJVb 99Rvwr1lv0fwLqoSl7UKumhfV+J311DSaoYgMlPnYvobm2LJZsiRMzrcgdk/6I44qHIYwQSILPSka H4ll4FX+2420JJ4MmO1iqU+chZAcrwoY8m32aARqQI/VFVbKCKiTzSby6nnBR0gt2zpP5DyW+1a3L zMnEenJVK8uQ2uytrZ9w==; 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 1d0cOL-0001pn-0p; Tue, 18 Apr 2017 23:18:37 +0000 Received: from bubo.tul.cz ([147.230.16.1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d0cND-0000O7-7Z for linux-arm-kernel@lists.infradead.org; Tue, 18 Apr 2017 23:17:30 +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 36F4E18050A0B; Wed, 19 Apr 2017 01:17:02 +0200 (CEST) From: Petr Cvek Subject: [PATCH 3/4] mmc: pxamci: Disable DATA_TRAN_DONE interrupt sooner To: ulf.hansson@linaro.org, robert.jarzmik@free.fr References: Message-ID: <04139c1a-cee8-f64c-4b0e-2e3c472169a3@tul.cz> Date: Wed, 19 Apr 2017 01:17:33 +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_161727_659648_8016A972 X-CRM114-Status: UNSURE ( 9.41 ) X-CRM114-Notice: Please train this message. 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 Disable the DATA_TRAN_DONE interrupt as soon as possible in the handler. Signed-off-by: Petr Cvek --- drivers/mmc/host/pxamci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/pxamci.c b/drivers/mmc/host/pxamci.c index 48c26d848e9f..570735a10127 100644 --- a/drivers/mmc/host/pxamci.c +++ b/drivers/mmc/host/pxamci.c @@ -354,6 +354,8 @@ static int pxamci_data_done(struct pxamci_host *host, unsigned int stat) struct mmc_data *data = host->data; struct dma_chan *chan; + pxamci_disable_irq(host, DATA_TRAN_DONE); + if (!data) { pr_err("%s: Missing data structure\n", mmc_hostname(host->mmc)); @@ -389,8 +391,6 @@ static int pxamci_data_done(struct pxamci_host *host, unsigned int stat) else data->bytes_xfered = 0; - pxamci_disable_irq(host, DATA_TRAN_DONE); - host->data = NULL; if (host->mrq->stop) { pxamci_stop_clock(host);