From patchwork Tue Jul 29 08:44:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 4639031 Return-Path: X-Original-To: patchwork-linux-mmc@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 C20C2C033A for ; Tue, 29 Jul 2014 08:45:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 18FF22018E for ; Tue, 29 Jul 2014 08:45:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 51A3E2018B for ; Tue, 29 Jul 2014 08:45:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752954AbaG2Io7 (ORCPT ); Tue, 29 Jul 2014 04:44:59 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:48586 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752960AbaG2Io4 (ORCPT ); Tue, 29 Jul 2014 04:44:56 -0400 Received: by mail-pa0-f42.google.com with SMTP id lf10so12104432pab.1 for ; Tue, 29 Jul 2014 01:44:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:sender:message-id:from:subject:user-agent:mime-version:to:cc :in-reply-to:references:content-type; bh=Z67DJIinNuYJBz5QsPMzlTi3uvC/1w8dsV0Sp+wVn68=; b=0hdwUXjbM/uXVGRftRvm17Nd0W8fnRg8tWyqrrM9Hgwz2ZAf/YlissSgMfE/G4PEqA OHlMsuFma5xQHkhmtM3SnWOIP6hwJ6kzkORz+PoQ5wlm+1JwXLA1QQvsQ/P7eDFfVMgz 4rXT/Nbrm6j7iSmigucrttJF2kC/HwOfhGer8QVWt5Ws2gHikBTeSElLqQtbk8XRpoFp DJDHCS8WHYM+K36AcDvWXnZyVKz3YM6bkrv7KKMv8iQucLJELZE0Fh4NRgkINU85lhHd cPqiiB4yEPObh3ysJn+OB5oAGOTY3CqWG8CSkZD6A7OdcEWmJ+/SuP7OCnjI3BGq+boX Mweg== X-Received: by 10.66.163.164 with SMTP id yj4mr488812pab.91.1406623496212; Tue, 29 Jul 2014 01:44:56 -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 v17sm27936600pdj.11.2014.07.29.01.44.53 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 29 Jul 2014 01:44:55 -0700 (PDT) Date: Tue, 29 Jul 2014 01:44:55 -0700 (PDT) Message-ID: <87iomgo8oq.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 03/10 v2] 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 Cc: Ian Molton , TOSHIAKI KOMATSU , NAOYA SHIIBA , Magnus , Linux-SH , (Renesas) goda , linux-mmc@vger.kernel.org, ryo.kataoka.wt@renesas.com, shinobu.uehara.xc@renesas.com, kouei.abe.cp@renesas.com, cm-hiep@jinso.co.jp, Kuninori Morimoto , Kuninori Morimoto In-Reply-To: <87mwbso8sp.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> <87mwbso8sp.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=-7.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,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 From: Shinobu Uehara Next card access will be always error if it didn't clear error status 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,