From patchwork Wed Feb 14 14:38:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Suchanek X-Patchwork-Id: 10219155 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 92090601D7 for ; Wed, 14 Feb 2018 14:40:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 83492290A9 for ; Wed, 14 Feb 2018 14:40:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5FDAE29061; Wed, 14 Feb 2018 14:40:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9E36D29030 for ; Wed, 14 Feb 2018 14:40:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hycO01l/a8e8BrDnclCaVxKppEz+fPBxWWy5geuxNSM=; b=RjQMOg7cfZodrF bkBPQ2YJYYWlI1S/OdW5hDHlC/h5dd8rPKewDd78OEc3exW2+WMtZ4xzKHh0myMnDAWmom51s/fpk LQw0l9m2AztL50Gd/nyRKCXP18d0wIp2IcQSp5Itq3TFQeGyKiP+pM7yZWSn1aiuh2AlASquoGiEI Tu+2hFqU7oEYgKOfciE5ANofWGt3616g1fkYl7a+b6pLhIRcSSZuam4D1j4DlRX5BjC7nhNW5UnRE U46jQoLJV2eeHKqhmGazlW7Bym7meY2bm/W85GkutLjNkJGRJuYJnaGqKBKeyQFINqcigM1c9wtHi HpOrWNxvrsWsrSYpNYWw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1elyEC-0004lK-Ph; Wed, 14 Feb 2018 14:40:08 +0000 Received: from mx2.suse.de ([195.135.220.15]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1elyDO-00042H-1n; Wed, 14 Feb 2018 14:39:20 +0000 X-Virus-Scanned: by amavisd-new at test-mx.suse.de X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 4CB95ADD5; Wed, 14 Feb 2018 14:39:03 +0000 (UTC) From: Michal Suchanek To: Ulf Hansson , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Eric Anholt , Stefan Wahren , Michal Suchanek , Gerd Hoffmann , "Gustavo A. R. Silva" , Julia Lawall , linux-mmc@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] mmc: bcm2835: print some informational messages during reset Date: Wed, 14 Feb 2018 15:38:58 +0100 Message-Id: <57ff1e429a7fc12300a3cca0c5e9a637beed0d3a.1518619058.git.msuchanek@suse.de> X-Mailer: git-send-email 2.13.6 In-Reply-To: <97593d6e1a41af1baff61f7d9e6e68a450fc9da6.1518619058.git.msuchanek@suse.de> References: <97593d6e1a41af1baff61f7d9e6e68a450fc9da6.1518619058.git.msuchanek@suse.de> In-Reply-To: <97593d6e1a41af1baff61f7d9e6e68a450fc9da6.1518619058.git.msuchanek@suse.de> References: <97593d6e1a41af1baff61f7d9e6e68a450fc9da6.1518619058.git.msuchanek@suse.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180214_063918_281516_E762929C X-CRM114-Status: UNSURE ( 6.84 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The previous patch does reset during hardware error so make the reset progress more visible. Signed-off-by: Michal Suchanek --- drivers/mmc/host/bcm2835.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/bcm2835.c b/drivers/mmc/host/bcm2835.c index ce05fe72f865..4dde8b2b62a9 100644 --- a/drivers/mmc/host/bcm2835.c +++ b/drivers/mmc/host/bcm2835.c @@ -283,10 +283,14 @@ static void bcm2835_reset_internal(struct bcm2835_host *host) static void bcm2835_reset(struct mmc_host *mmc) { struct bcm2835_host *host = mmc_priv(mmc); + struct device *dev = &host->pdev->dev; - if (host->dma_chan) + if (host->dma_chan) { + dev_info(dev, "tearing down dma"); dmaengine_terminate_sync(host->dma_chan); + } host->dma_chan = NULL; + dev_info(dev, "resetting"); bcm2835_reset_internal(host); }