From patchwork Fri Jan 21 10:27:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 494691 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0LARIVx011325 for ; Fri, 21 Jan 2011 10:27:18 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752272Ab1AUK1R (ORCPT ); Fri, 21 Jan 2011 05:27:17 -0500 Received: from mail-qy0-f174.google.com ([209.85.216.174]:62075 "EHLO mail-qy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751876Ab1AUK1R (ORCPT ); Fri, 21 Jan 2011 05:27:17 -0500 Received: by qyj19 with SMTP id 19so369685qyj.19 for ; Fri, 21 Jan 2011 02:27:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to:cc :content-type; bh=njqlqvqwG2CE5rxCD07mwiz1rZ/RDCylAA18PYvX7nU=; b=dLvXAWSidtBC2HhfcARahE+p/TZtvV4lbBsuN9+ufLFXAwTEmlSFYZURqVPGY1r8f+ i9o2qPx9/D/acKIRvLgt0bzSs7D7dJIlESXHS8x4vi7sJeh2EKNxyrKS//fEKDCYOdI5 bZ7+cW9MSnfKSkDfCMsF5KqhXNQD9MrEd0kMw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=aDW3hjkvDxKsy6Quks5auk6iZmhDSbbFM2p+Z9y5qGtbtiikUIEbEkpCUr8qVxTG84 nfzkiUncKlt2smhekVH/M3MGWcqZuSyID3V8k8etQFcqpMw98HFPWsaQqP3YVyTMqwHv 2SV0Yl+wypj3QaSqnJbt9Qcq7sCASqW8MHS5g= MIME-Version: 1.0 Received: by 10.229.213.13 with SMTP id gu13mr427062qcb.196.1295605636471; Fri, 21 Jan 2011 02:27:16 -0800 (PST) Received: by 10.229.28.79 with HTTP; Fri, 21 Jan 2011 02:27:16 -0800 (PST) Date: Fri, 21 Jan 2011 05:27:16 -0500 Message-ID: Subject: [PATCH] mmc: clear all interrupt in suspend before free_irq From: zhangfei gao To: linux-mmc@vger.kernel.org Cc: Nicolas Pitre , Ohad Ben-Cohen , Bing Zhao , Chris Ball Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 21 Jan 2011 10:27:19 +0000 (UTC) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index aacd78c..97074ae 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -1707,6 +1707,7 @@ int sdhci_suspend_host(struct sdhci_host *host, pm_message_t state) ret = mmc_suspend_host(host->mmc); if (ret) return ret; + sdhci_clear_set_irqs(host, SDHCI_INT_ALL_MASK, 0); free_irq(host->irq, host);