Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 May 2009 21:28:42 +0000 (UTC)
From:      Stanislav Sedov <stas@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r192028 - head/sys/arm/at91
Message-ID:  <200905122128.n4CLSge8033511@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: stas
Date: Tue May 12 21:28:41 2009
New Revision: 192028
URL: http://svn.freebsd.org/changeset/base/192028

Log:
  - Resurrect the debug printf message I accidentally dropped
    in the previous commit.
  - Use device_printf instead of printf.
  - Put all printfs in the interrupt handler under bootverbose.

Modified:
  head/sys/arm/at91/if_ate.c

Modified: head/sys/arm/at91/if_ate.c
==============================================================================
--- head/sys/arm/at91/if_ate.c	Tue May 12 21:14:36 2009	(r192027)
+++ head/sys/arm/at91/if_ate.c	Tue May 12 21:28:41 2009	(r192028)
@@ -734,7 +734,8 @@ ate_intr(void *xsc)
 			bp = sc->rx_buf[i];
 			rx_stat = sc->rx_descs[i].status;
 			if ((rx_stat & ETH_LEN_MASK) == 0) {
-				printf("ignoring bogus 0 len packet\n");
+				if (bootverbose)
+					device_printf(sc->dev, "ignoring bogus zero-length packet\n");
 				bus_dmamap_sync(sc->rx_desc_tag, sc->rx_desc_map,
 				    BUS_DMASYNC_PREWRITE);
 				sc->rx_descs[i].addr &= ~ETH_CPU_OWNER;
@@ -808,6 +809,8 @@ ate_intr(void *xsc)
 	}
 	if (status & ETH_ISR_RBNA) {
 		/* Workaround Errata #11 */
+		if (bootverbose)
+			device_printf(sc->dev, "RBNA workaround\n");
 		reg = RD4(sc, ETH_CTL);
 		WR4(sc, ETH_CTL, reg & ~ETH_CTL_RE);
 		BARRIER(sc, ETH_CTL, 4, BUS_SPACE_BARRIER_WRITE);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905122128.n4CLSge8033511>