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: 4774311 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A5FA7C0338 for ; Mon, 25 Aug 2014 12:30:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EF8782010B for ; Mon, 25 Aug 2014 12:30:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E194420148 for ; Mon, 25 Aug 2014 12:30:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932340AbaHYM3S (ORCPT ); Mon, 25 Aug 2014 08:29:18 -0400 Received: from mail-we0-f175.google.com ([74.125.82.175]:41277 "EHLO mail-we0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932339AbaHYM0g (ORCPT ); Mon, 25 Aug 2014 08:26:36 -0400 Received: by mail-we0-f175.google.com with SMTP id t60so13002207wes.6 for ; Mon, 25 Aug 2014 05:26:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=c0D6af/KrNzYAxRONxA7g27I9Ci4RhnxuI1j3dU2xq0=; b=k29SVylozxrKCpM6oLlEMbQc9/xEl1Qm8eq9+gCebvBzg0bgQRWvlgSwK73zS/o35y 0ehzNCn6gbM0kRTMf08tIA02z4JQidXPhSpbPWr9XausqlkjvJYeryKEdE2h72Qm+q9f 5xqX+awkzqEFiGaLSMHk2oDKyJKgGOBvcLV1xslCGvPoF8nZ/6piqMd5f/hkWKc0d9WX u7PSf5mrU/vcinCOeDoXPhB4/nEYknGq10G2JdGcw5g+9l+G5s+3Q8WX07wkKDL6LQFw RHGsHLRaMJGR2McIIV2NUStG5O1gBsJBDjF53n6eoVWZ0VcM+YR34c6iDqUb7muRAn2/ TiEA== X-Gm-Message-State: ALoCoQntlWCz45GnVKim8U5qu3s8Bf9xkip1MljSLkjBq8bfEVelWfoFEzNcTI/lZBcq2sQeU6Ib 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> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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);