From patchwork Mon Aug 25 02:59:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 4772191 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BFF699F3B4 for ; Mon, 25 Aug 2014 02:59:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EAA8B2012D for ; Mon, 25 Aug 2014 02:59:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 211C82012B for ; Mon, 25 Aug 2014 02:59:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753907AbaHYC7X (ORCPT ); Sun, 24 Aug 2014 22:59:23 -0400 Received: from mail-pd0-f180.google.com ([209.85.192.180]:44711 "EHLO mail-pd0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753826AbaHYC7X (ORCPT ); Sun, 24 Aug 2014 22:59:23 -0400 Received: by mail-pd0-f180.google.com with SMTP id v10so19337596pde.39 for ; Sun, 24 Aug 2014 19:59:22 -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:mime-version:to:cc :in-reply-to:references:content-type; bh=Jdq184gssKF1/t2uRBwSC2Q/66lwDUBNyT0swgLKFZs=; b=M7I6qSaUBG+aivop0AGhWev17KDa6yuJAumTYMA8w+ZWwFrkKs3qh+v9qcUSW5yo3Q 44aZQgjY4NNv5OCBYpd/4Xv12Oh0bkGI9Kt2i5ktDEBhbar3BjgKHjALevOy5bdhiVMG iimn7xYbH9wF9+wBNgYWBljJoiZsKurK+PqJxnyJUd1wBeyGo1GZYruz6urzkSU8n19x /9F7ID/tlgbx/HoIAaChzKqketJhizA4ffto/OPBJVkNsDYt/123PeZjBbxiWF8YKuvN e2U61gUXDt5xwPFtBr68l44tR4Oe8tK7BiUurBClaCuurmH2+IXojSF1OLPZxve55+ke MnJQ== X-Received: by 10.66.222.97 with SMTP id ql1mr7711420pac.119.1408935562813; Sun, 24 Aug 2014 19:59:22 -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 hi10sm35787651pbd.69.2014.08.24.19.59.20 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 24 Aug 2014 19:59:22 -0700 (PDT) Date: Sun, 24 Aug 2014 19:59:22 -0700 (PDT) Message-ID: <878umdtgu0.wl%kuninori.morimoto.gx@gmail.com> From: Kuninori Morimoto Subject: [PATCH 2/9 v3] mmc: tmio: clear error IRQ status User-Agent: Wanderlust/2.14.0 Emacs/23.3 Mule/6.0 MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") To: Simon , Chris Ball , Ulf Hansson Cc: Ian Molton , Morimoto , Magnus , Linux-SH , linux-mmc@vger.kernel.org In-Reply-To: <87bnr9tgwj.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> <87bnr9tgwj.wl%kuninori.morimoto.gx@gmail.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 --- v2 -> v3 - no change 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,