From patchwork Sat Sep 18 18:58:13 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 192722 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 o8IJsSkO030773 for ; Sat, 18 Sep 2010 19:54:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755244Ab0IRTxK (ORCPT ); Sat, 18 Sep 2010 15:53:10 -0400 Received: from kroah.org ([198.145.64.141]:51382 "EHLO coco.kroah.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754305Ab0IRTBl (ORCPT ); Sat, 18 Sep 2010 15:01:41 -0400 Received: from localhost (c-24-16-163-131.hsd1.wa.comcast.net [24.16.163.131]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by coco.kroah.org (Postfix) with ESMTPSA id 5ACFF489D9; Sat, 18 Sep 2010 12:01:41 -0700 (PDT) X-Mailbox-Line: From gregkh@clark.site Sat Sep 18 11:59:57 2010 Message-Id: <20100918185957.010472560@clark.site> User-Agent: quilt/0.48-11.2 Date: Sat, 18 Sep 2010 11:58:13 -0700 From: Greg KH To: linux-kernel@vger.kernel.org, stable@kernel.org Cc: stable-review@kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, Yusuke Goda , Magnus Damm , Ian Molton , Matt Fleming , Samuel Ortiz , Paul Mundt , Subject: [049/123] tmio_mmc: dont clear unhandled pending interrupts References: <20100918185724.290702750@clark.site> Content-Disposition: inline; filename=tmio_mmc-don-t-clear-unhandled-pending-interrupts.patch In-Reply-To: <20100918190024.GA14388@kroah.com> 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.3 (demeter1.kernel.org [140.211.167.41]); Sat, 18 Sep 2010 19:54:28 +0000 (UTC) --- a/drivers/mmc/host/tmio_mmc.h +++ b/drivers/mmc/host/tmio_mmc.h @@ -102,10 +102,7 @@ #define ack_mmc_irqs(host, i) \ do { \ - u32 mask;\ - mask = sd_ctrl_read32((host), CTL_STATUS); \ - mask &= ~((i) & TMIO_MASK_IRQ); \ - sd_ctrl_write32((host), CTL_STATUS, mask); \ + sd_ctrl_write32((host), CTL_STATUS, ~(i)); \ } while (0)