Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/broadcom Cleanup debug messages



details:   https://anonhg.NetBSD.org/src/rev/04de1f6fbed1
branches:  trunk
changeset: 825793:04de1f6fbed1
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Jul 30 23:47:58 2017 +0000

description:
Cleanup debug messages

diffstat:

 sys/arch/arm/broadcom/bcm2835_sdhost.c |  35 ++-------------------------------
 1 files changed, 3 insertions(+), 32 deletions(-)

diffs (73 lines):

diff -r d97643a91375 -r 04de1f6fbed1 sys/arch/arm/broadcom/bcm2835_sdhost.c
--- a/sys/arch/arm/broadcom/bcm2835_sdhost.c    Sun Jul 30 23:13:24 2017 +0000
+++ b/sys/arch/arm/broadcom/bcm2835_sdhost.c    Sun Jul 30 23:47:58 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bcm2835_sdhost.c,v 1.1 2017/07/30 16:54:36 jmcneill Exp $ */
+/* $NetBSD: bcm2835_sdhost.c,v 1.2 2017/07/30 23:47:58 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm2835_sdhost.c,v 1.1 2017/07/30 16:54:36 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm2835_sdhost.c,v 1.2 2017/07/30 23:47:58 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -114,8 +114,6 @@
 static void    sdhost_card_enable_intr(sdmmc_chipset_handle_t, int);
 static void    sdhost_card_intr_ack(sdmmc_chipset_handle_t);
 
-void           sdhost_dump_regs(void);
-
 static struct sdmmc_chip_functions sdhost_chip_functions = {
        .host_reset = sdhost_host_reset,
        .host_ocr = sdhost_host_ocr,
@@ -203,15 +201,13 @@
        aprint_naive("\n");
        aprint_normal(": SD HOST controller\n");
 
-sdhost_dump_regs();
-
        prop_dictionary_get_uint32(dict, "frequency", &sc->sc_rate);
        if (sc->sc_rate == 0) {
                aprint_error_dev(self, "couldn't get clock frequency\n");
                return;
        }
 
-       aprint_normal_dev(self, "ref freq %u Hz\n", sc->sc_rate);
+       aprint_debug_dev(self, "ref freq %u Hz\n", sc->sc_rate);
 
        if (sdhost_dma_setup(sc) != 0) {
                aprint_error_dev(self, "failed to setup DMA\n");
@@ -705,28 +701,3 @@
 sdhost_card_intr_ack(sdmmc_chipset_handle_t sch)
 {
 }
-
-void
-sdhost_dump_regs(void)
-{
-       device_t dev = device_find_by_driver_unit("sdhost", 0);
-       if (dev == NULL)
-               return;
-       struct sdhost_softc * const sc = device_private(dev);
-
-       device_printf(dev, "SDCMD  = %08x\n", SDHOST_READ(sc, SDCMD));
-       device_printf(dev, "SDARG  = %08x\n", SDHOST_READ(sc, SDARG));
-       device_printf(dev, "SDTOUT = %08x\n", SDHOST_READ(sc, SDTOUT));
-       device_printf(dev, "SDCDIV = %08x\n", SDHOST_READ(sc, SDCDIV));
-       device_printf(dev, "SDRSP0 = %08x\n", SDHOST_READ(sc, SDRSP0));
-       device_printf(dev, "SDRSP1 = %08x\n", SDHOST_READ(sc, SDRSP1));
-       device_printf(dev, "SDRSP2 = %08x\n", SDHOST_READ(sc, SDRSP2));
-       device_printf(dev, "SDRSP3 = %08x\n", SDHOST_READ(sc, SDRSP3));
-       device_printf(dev, "SDHSTS = %08x\n", SDHOST_READ(sc, SDHSTS));
-       device_printf(dev, "SDVDD  = %08x\n", SDHOST_READ(sc, SDVDD));
-       device_printf(dev, "SDEDM  = %08x\n", SDHOST_READ(sc, SDEDM));
-       device_printf(dev, "SDHCFG = %08x\n", SDHOST_READ(sc, SDHCFG));
-       device_printf(dev, "SDHBCT = %08x\n", SDHOST_READ(sc, SDHBCT));
-       device_printf(dev, "SDDATA = ........\n");
-       device_printf(dev, "SDHBLC = %08x\n", SDHOST_READ(sc, SDHBLC));
-}



Home | Main Index | Thread Index | Old Index