From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755968AbYLBPnq (ORCPT ); Tue, 2 Dec 2008 10:43:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753064AbYLBPk5 (ORCPT ); Tue, 2 Dec 2008 10:40:57 -0500 Received: from aeryn.fluff.org.uk ([87.194.8.8]:34928 "EHLO teyla.home.fluff.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751752AbYLBPky (ORCPT ); Tue, 2 Dec 2008 10:40:54 -0500 Message-Id: <20081202154112.156260170@fluff.org.uk> References: <20081202154018.906091477@fluff.org.uk> User-Agent: quilt/0.46-1 Date: Tue, 02 Dec 2008 15:40:20 +0000 From: Ben Dooks To: sdhci-devel@list.drzeus.cx, linux-kernel@vger.kernel.org, drzeus-sdhci@drzeus.cx Cc: Ben Dooks Subject: [patch 2/8] SDHCI: Print ADMA status and pointer on debug Content-Disposition: inline; filename=simtec/s3c64xx/sdhci-print-adma-status-if-enabled.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If using ADMA, then we should print the ADMA error and current pointer in sdhci_dumpregs() when any debug is requested. Signed-off-by: Ben Dooks --- linux.git.orig/drivers/mmc/host/sdhci.c 2008-10-27 08:17:43.000000000 +0000 +++ linux.git/drivers/mmc/host/sdhci.c 2008-10-27 11:01:20.000000000 +0000 @@ -73,6 +73,11 @@ static void sdhci_dumpregs(struct sdhci_ readl(host->ioaddr + SDHCI_CAPABILITIES), readl(host->ioaddr + SDHCI_MAX_CURRENT)); + if (host->flags & SDHCI_USE_ADMA) + printk(KERN_DEBUG DRIVER_NAME ": ADMA Err: 0x%08x | ADMA Ptr: 0x%08x\n", + readl(host->ioaddr + SDHCI_ADMA_ERROR), + readl(host->ioaddr + SDHCI_ADMA_ADDRESS)); + printk(KERN_DEBUG DRIVER_NAME ": ===========================================\n"); } -- Ben (ben@fluff.org, http://www.fluff.org/) 'a smiley only costs 4 bytes'