From patchwork Mon Aug 25 12:25:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 35905 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f70.google.com (mail-pa0-f70.google.com [209.85.220.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B81C0203C0 for ; Mon, 25 Aug 2014 12:26:40 +0000 (UTC) Received: by mail-pa0-f70.google.com with SMTP id lf10sf116230582pab.1 for ; Mon, 25 Aug 2014 05:26:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=c0D6af/KrNzYAxRONxA7g27I9Ci4RhnxuI1j3dU2xq0=; b=QblZ42gxHus7ESyMZAwvFOgy7cq5uZp+isTwi/gau8/5/lJisEtqESUkXXlxreWoR7 lmitMDwa49ZFkRacV+fIsawasqvXnBR1evdbB+TEHpF/iWsUPZiXdUDLEHisx2g9B+Et MM8sO1mlwCmHvnhViRYbshMvlOQ42aZ7lITcnuHah53/yJpAI/iQdXASAYbUWZg2hl1F 9NMmQAh4F0VcyAY0npIfWcYzl7mQRCp7c7pb+2UXL9902dSetmkJOr10ZP1NWzPTExp6 BFNQXxHj89mtXeuQEvR1s1dpuRbx/C1RkRXiyQqeVGG1lZ32uPSdc46FWSvj1hqxwDBO 6aLw== X-Gm-Message-State: ALoCoQk751BygVpdvsA58d8knhJz1MPD7SRI+mh/Hn4W3pmX1yVEGVC1GZEwggUrnphsnLyKQ1Sg X-Received: by 10.70.34.195 with SMTP id b3mr7079659pdj.7.1408969597290; Mon, 25 Aug 2014 05:26:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.27.242 with SMTP id 105ls630908qgx.17.gmail; Mon, 25 Aug 2014 05:26:37 -0700 (PDT) X-Received: by 10.221.38.4 with SMTP id tg4mr5374448vcb.44.1408969597163; Mon, 25 Aug 2014 05:26:37 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id rd6si16304233vcb.39.2014.08.25.05.26.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Aug 2014 05:26:37 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id lf12so15233366vcb.1 for ; Mon, 25 Aug 2014 05:26:37 -0700 (PDT) X-Received: by 10.52.73.202 with SMTP id n10mr524778vdv.86.1408969597099; Mon, 25 Aug 2014 05:26:37 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp113262vcb; Mon, 25 Aug 2014 05:26:36 -0700 (PDT) X-Received: by 10.180.75.14 with SMTP id y14mr15323367wiv.79.1408969595809; Mon, 25 Aug 2014 05:26:35 -0700 (PDT) Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) by mx.google.com with ESMTPS id p4si10000758wic.75.2014.08.25.05.26.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Aug 2014 05:26:35 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.212.173 as permitted sender) client-ip=209.85.212.173; Received: by mail-wi0-f173.google.com with SMTP id f8so2450713wiw.0 for ; Mon, 25 Aug 2014 05:26:35 -0700 (PDT) X-Received: by 10.180.92.134 with SMTP id cm6mr15416240wib.72.1408969595316; Mon, 25 Aug 2014 05:26:35 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id u5sm145337wia.17.2014.08.25.05.26.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Aug 2014 05:26:34 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ian Molton , Chris Ball Cc: Geert Uytterhoeven , Linux-sh list , linux-kernel@vger.kernel.org, Ulf Hansson Subject: [PATCH 06/12] mmc: tmio: Mask all IRQs when inactive Date: Mon, 25 Aug 2014 14:25:58 +0200 Message-Id: <1408969564-6335-7-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1408969564-6335-1-git-send-email-ulf.hansson@linaro.org> References: <1408969564-6335-1-git-send-email-ulf.hansson@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ulf.hansson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , To make sure we don't receive any spurious IRQs while we are inactive, mask the IRQs from within the ->runtime_suspend() callback. Signed-off-by: Ulf Hansson --- drivers/mmc/host/tmio_mmc_pio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/host/tmio_mmc_pio.c b/drivers/mmc/host/tmio_mmc_pio.c index 2345177..d52280d 100644 --- a/drivers/mmc/host/tmio_mmc_pio.c +++ b/drivers/mmc/host/tmio_mmc_pio.c @@ -1168,6 +1168,8 @@ int tmio_mmc_host_runtime_suspend(struct device *dev) struct mmc_host *mmc = dev_get_drvdata(dev); struct tmio_mmc_host *host = mmc_priv(mmc); + tmio_mmc_disable_mmc_irqs(host, TMIO_MASK_ALL); + if (host->clk_cache) tmio_mmc_clk_stop(host);