From patchwork Fri Aug 22 08:38:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 4762181 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 90887C0338 for ; Fri, 22 Aug 2014 08:38:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9226020122 for ; Fri, 22 Aug 2014 08:38:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9165E200F3 for ; Fri, 22 Aug 2014 08:38:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755226AbaHVIiC (ORCPT ); Fri, 22 Aug 2014 04:38:02 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:48522 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752413AbaHVIiB (ORCPT ); Fri, 22 Aug 2014 04:38:01 -0400 Received: by mail-pa0-f44.google.com with SMTP id eu11so16141227pac.31 for ; Fri, 22 Aug 2014 01:38:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:from:subject:user-agent:to:cc:in-reply-to :references:mime-version:content-type; bh=H+eYjseRnqbQVOL1Qs0S1j1XnlnbFV/6b6ep0h7W/lA=; b=k+KZeAdSTe72KhDaEPU6UQ2yGtpNj4ykUqlQl8HZFKeaVULzqB+zIXCwEOc9EQQM2i 57hDIFQM5gyyczza6/WZttq1CSBdYioxjD3fdHGTZwvn63Qw3KbS2mptNDwn18FKWTQ+ vD6DfKxhbMJWb8vrNwASysJ6yFQoulDxPaTGA2duoOIOS/pomJlx7sJqD3QujeZuBFSf x9Bu5pw0UglfmWmZurvlql/FTzmErL+qvcsL0DD7/cmKnCHSmOBQuXaTZ4WInbfBsNjf BQFqoAUjKm7Q5kW+AGteF0PnylVCsx2ZD4UQrXJzTSBgO19je9aBmi/NKcmD3KJ2scwd m7Og== X-Received: by 10.66.235.1 with SMTP id ui1mr4811968pac.28.1408696680963; Fri, 22 Aug 2014 01:38:00 -0700 (PDT) Received: from remon.gmail.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPSA id gu4sm27889191pbb.54.2014.08.22.01.37.59 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 22 Aug 2014 01:38:00 -0700 (PDT) Date: Fri, 22 Aug 2014 01:38:00 -0700 (PDT) Message-ID: <871ts87wd5.wl%kuninori.morimoto.gx@gmail.com> From: Kuninori Morimoto Subject: [PATCH 03/10 v2 resend] mmc: tmio: clear error IRQ status User-Agent: Wanderlust/2.14.0 Emacs/23.3 Mule/6.0 To: Simon , Chris Ball Cc: Ian Molton , Morimoto , Magnus , Linux-SH , linux-mmc@vger.kernel.org In-Reply-To: <8761hk7wgy.wl%kuninori.morimoto.gx@gmail.com> References: <87simtenpi.wl%kuninori.morimoto.gx@renesas.com> <87pphxe2q0.wl%kuninori.morimoto.gx@renesas.com> <53AD638C.5060907@renesas.com> <87egxehsec.wl%kuninori.morimoto.gx@gmail.com> <8761hk7wgy.wl%kuninori.morimoto.gx@gmail.com> MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 From: Shinobu Uehara Next card access will be always error if it didn't clear error status Tested-by: Nguyen Xuan Nui Tested-by: Hiep Cao Minh Signed-off-by: Shinobu Uehara Signed-off-by: Kuninori Morimoto --- drivers/mmc/host/tmio_mmc_pio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/host/tmio_mmc_pio.c b/drivers/mmc/host/tmio_mmc_pio.c index faf0924..c3b1b4e 100644 --- a/drivers/mmc/host/tmio_mmc_pio.c +++ b/drivers/mmc/host/tmio_mmc_pio.c @@ -557,6 +557,9 @@ static void tmio_mmc_card_irq_status(struct tmio_mmc_host *host, pr_debug_status(*status); pr_debug_status(*ireg); + + /* Clear the status except the interrupt status */ + sd_ctrl_write32(host, CTL_STATUS, TMIO_MASK_IRQ); } static bool __tmio_mmc_card_detect_irq(struct tmio_mmc_host *host,