summaryrefslogtreecommitdiff
path: root/sys/dev/ic/rt2560.c
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2007-11-17 14:29:12 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2007-11-17 14:29:12 +0000
commitea9202cff6eeec0983116231bd80f9a926b07e85 (patch)
treef8053a866a1ab6197d8ffb0bbf7049281ee1bae8 /sys/dev/ic/rt2560.c
parent270f556e47b47238f6e0bdcc855aa1b9d77d73c9 (diff)
RT2560+RT2661: update the physical address in the RX descriptor after
bus_dmamap_load() in the case where the same mbuf is reloaded. RT2661: remove a 2x prototype, fix an error message.
Diffstat (limited to 'sys/dev/ic/rt2560.c')
-rw-r--r--sys/dev/ic/rt2560.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/rt2560.c b/sys/dev/ic/rt2560.c
index 3c82860ceba..de3de628cb3 100644
--- a/sys/dev/ic/rt2560.c
+++ b/sys/dev/ic/rt2560.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rt2560.c,v 1.34 2007/10/15 01:37:49 fgsch Exp $ */
+/* $OpenBSD: rt2560.c,v 1.35 2007/11/17 14:29:11 damien Exp $ */
/*-
* Copyright (c) 2005, 2006
@@ -1140,6 +1140,8 @@ rt2560_decryption_intr(struct rt2560_softc *sc)
panic("%s: could not load old rx mbuf",
sc->sc_dev.dv_xname);
}
+ /* physical address may have changed */
+ desc->physaddr = htole32(data->map->dm_segs->ds_addr);
ifp->if_ierrors++;
goto skip;
}