From patchwork Tue Oct 19 18:27:22 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip Rakity X-Patchwork-Id: 266271 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o9JITK3r005818 for ; Tue, 19 Oct 2010 18:29:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755289Ab0JSS27 (ORCPT ); Tue, 19 Oct 2010 14:28:59 -0400 Received: from na3sys009aog104.obsmtp.com ([74.125.149.73]:41857 "HELO na3sys009aog104.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1755238Ab0JSS26 convert rfc822-to-8bit (ORCPT ); Tue, 19 Oct 2010 14:28:58 -0400 Received: from source ([65.219.4.129]) (using TLSv1) by na3sys009aob104.postini.com ([74.125.148.12]) with SMTP ID DSNKTL3jas7sE2bi44a+Lk1JnPLbSbpUWzDx@postini.com; Tue, 19 Oct 2010 11:28:58 PDT Received: from SC-vEXCH3.marvell.com ([10.93.76.133]) by SC-OWA01.marvell.com ([10.93.76.21]) with mapi; Tue, 19 Oct 2010 11:27:31 -0700 From: Philip Rakity To: "linux-mmc@vger.kernel.org" Date: Tue, 19 Oct 2010 11:27:22 -0700 Subject: [PATCH] sdhci: sdhci_dumpregs: allow private information to be dumped on error Thread-Topic: [PATCH] sdhci: sdhci_dumpregs: allow private information to be dumped on error Thread-Index: Actvu0r28/PBQXSPR+a9I73KqKmSxQ== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 19 Oct 2010 18:29:21 +0000 (UTC) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 782c0ee..fba6e28 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -85,6 +85,8 @@ static void sdhci_dumpregs(struct sdhci_host *host) 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)); + if (host->ops->print_private_info) + host->ops->print_private_info(host); printk(KERN_DEBUG DRIVER_NAME ": ===========================================\n"); } diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h index b7b8a3b..2e11ff9 100644 --- a/drivers/mmc/host/sdhci.h +++ b/drivers/mmc/host/sdhci.h @@ -215,6 +215,7 @@ struct sdhci_ops { void (*platform_send_init_74_clocks)(struct sdhci_host *host, u8 power_mode); unsigned int (*get_ro)(struct sdhci_host *host); + void (*print_private_info)(struct sdhci_host *host); }; #ifdef CONFIG_MMC_SDHCI_IO_ACCESSORS