Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src-draft/trunk]: src/sys/dev/usb Add a bit more debug output
details: https://anonhg.NetBSD.org/src-all/rev/35fd2366719d
branches: trunk
changeset: 367177:35fd2366719d
user: Martin Husemann <martin%NetBSD.org@localhost>
date: Sat Nov 13 20:21:23 2021 +0100
description:
Add a bit more debug output
diffstat:
sys/dev/usb/if_run.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (41 lines):
diff -r b73e7f719bb8 -r 35fd2366719d sys/dev/usb/if_run.c
--- a/sys/dev/usb/if_run.c Sat Nov 13 17:27:25 2021 +0100
+++ b/sys/dev/usb/if_run.c Sat Nov 13 20:21:23 2021 +0100
@@ -2257,6 +2257,9 @@
int decrypted = 0;
#endif
+ DPRINTFN(5, ("%s: %s: buf %p dmalen %d\n",
+ device_xname(sc->sc_uw.uw_dev), __func__, buf, dmalen));
+
rxwi = (struct rt2860_rxwi *)buf;
rxwisize = sizeof(struct rt2860_rxwi);
if (sc->mac_ver == 0x5592)
@@ -2364,6 +2367,9 @@
uint32_t dmalen;
uint16_t rxwisize;
+ DPRINTFN(5, ("%s: %s: chain %p len %u\n",
+ device_xname(sc->sc_uw.uw_dev), __func__, c, len));
+
if (__predict_false(sc->sc_flags & RUN_DETACHING))
return;
@@ -2531,8 +2537,6 @@
{
struct run_softc *sc = arg;
struct ieee80211com *ic = &sc->sc_uw.uw_ic;
-
- DPRINTFN(5, ("%s: %s\n", device_xname(sc->sc_uw.uw_dev), __func__));
DPRINTFN(5, ("%s: %s\n", device_xname(sc->sc_uw.uw_dev), __func__));
@@ -4375,6 +4379,8 @@
uint32_t tmp;
int error, ntries;
+ DPRINTFN(5, ("%s: %s\n", device_xname(sc->sc_uw.uw_dev), __func__));
+
run_write(sc, RT2860_MAC_SYS_CTRL, RT2860_MAC_TX_EN);
for (ntries = 0; ntries < 200; ntries++) {
if ((error = run_read(sc, RT2860_WPDMA_GLO_CFG, &tmp)) != 0)
Home |
Main Index |
Thread Index |
Old Index