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/c3424e66c0df
branches: trunk
changeset: 375713:c3424e66c0df
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 1812aea0efb8 -r c3424e66c0df 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 @@ run_rx_frame(struct run_softc *sc, uint8
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 @@ run_rx_loop(struct usbwifi *uw, struct u
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 @@ run_watchdog(void *arg)
{
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 @@ run_txrx_enable(struct run_softc *sc)
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