svn commit: r192028 - head/sys/arm/at91
Stanislav Sedov
stas at FreeBSD.org
Tue May 12 21:28:43 UTC 2009
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);
More information about the svn-src-all
mailing list