From patchwork Thu Nov 14 10:24:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 3181561 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 C95B49F3A0 for ; Thu, 14 Nov 2013 10:24:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B294520114 for ; Thu, 14 Nov 2013 10:24:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 96CEA20974 for ; Thu, 14 Nov 2013 10:24:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752801Ab3KNKYk (ORCPT ); Thu, 14 Nov 2013 05:24:40 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:64872 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752505Ab3KNKYj (ORCPT ); Thu, 14 Nov 2013 05:24:39 -0500 Received: by mail-pa0-f41.google.com with SMTP id rd3so1894145pab.0 for ; Thu, 14 Nov 2013 02:24:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:sender:message-id:to:cc:in-reply-to:references:from:subject :mime-version:content-type; bh=VQWCoN0YPVmijZn5482Vx8cAaP/SLtDYPziIrTlDjfM=; b=EkBxPoEdpOq7SljL6/uixtvlhWYR4q6PH+oGVr2QZZx2qTjo4JMr6upjfANwlHMTIK YVR3HCe6VjTYNRQucSJzT98ISTjqiJg1SGoSEQompVNjRBbT/4mw1ZfKb3CrVBjZeqnW 0vXqr0s9CugTXwxi5wwO97widmHi5V4+PDO7d0ksaTJg/PrtUc4U5zLv/04/63wLXoUd 50sfiZy4gQKIRdHxzrHVJgKmxWPXZ2RFz7z7kynPJpMm1NeZsnHSua0VFazCis0IIJWh 0eeDoonn3SifCQv/YdDUh68Sc+26wLWinzayA114jq81gis+Sp7BpWCO77jICDiD8SOD 5wHQ== X-Received: by 10.68.189.229 with SMTP id gl5mr539294pbc.195.1384424678817; Thu, 14 Nov 2013 02:24:38 -0800 (PST) Received: from morimoto-Dell-XPS420.gmail.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPSA id xs1sm58172053pac.7.2013.11.14.02.24.36 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 14 Nov 2013 02:24:37 -0800 (PST) Date: Thu, 14 Nov 2013 02:24:37 -0800 (PST) Message-ID: <87eh6jz3fi.wl%kuninori.morimoto.gx@renesas.com> To: Chris Ball Cc: Simon , Laurent , Magnus , Linux-SH , Kuninori Morimoto , linux-mmc@vger.kernel.org In-Reply-To: <87habfz3kd.wl%kuninori.morimoto.gx@renesas.com> References: <87li0rz3to.wl%kuninori.morimoto.gx@renesas.com> <87habfz3kd.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 04/17] mmc: tmio: Add error IRQ status clear MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") 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_SIGNED, 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 After a card is ejected during card access, the re-inserted card does not identified. It can be identified by clearing error IRQ status. Signed-off-by: Shinobu Uehara Signed-off-by: Ryo Kataoka 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 05ae15c..99f6d29 100644 --- a/drivers/mmc/host/tmio_mmc_pio.c +++ b/drivers/mmc/host/tmio_mmc_pio.c @@ -565,6 +565,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,