findfamily: revert UWB build to deferred logging
- Commit
4ef4310208c16e4d971fea88a88bf555723a723e- Author
- vayun-mathur <[email protected]>
- When
- 2026-08-22 00:51 UTC (3 months ago)
- Parents
98f593b
Diff
firmware/findfamily-tracker/src/tracker_uwb.c
diff --git a/firmware/findfamily-tracker/src/tracker_uwb.c b/firmware/findfamily-tracker/src/tracker_uwb.cindex 0505e391ea..fc92ea3e0f 100644--- a/firmware/findfamily-tracker/src/tracker_uwb.c+++ b/firmware/findfamily-tracker/src/tracker_uwb.c@@ -140,14 +140,6 @@ int ff_uwb_init(void) return 0; } - /*- * Read the device id before handing the bus to Qorvo's driver: it tells a wiring- * or SPI-mode problem apart from the driver rejecting what it read, which- * qplatform_init's return code alone cannot.- */- LOG_INF("DW3110 DEV_ID read over SPI: 0x%08x (expect 0xdeca0302)",- ff_qorvo_read_dev_id());- /* * Order matters and is not obvious. qplatform_init() brings up SPI/GPIO and probes * the DW3110, which has to happen first: l1_config_init()'s reset_to_default hook@@ -158,11 +150,14 @@ int ff_uwb_init(void) if (r != QERR_SUCCESS) { LOG_ERR("qplatform_init: %d", r); /*- * Re-read the id on the raw bus. It worked before qplatform_init, so if it- * reads back zero now, the transceiver is being held in reset rather than- * failing to talk — which points at the rstn pin handling, not the SPI.+ * Read the id straight off the bus to tell a wiring or SPI-mode problem+ * apart from the driver rejecting what it read, which qplatform_init's+ * return code alone cannot. Only on the failure path: qplatform_init resets+ * and wakes the transceiver, so before it runs the part is still asleep and+ * this reads zero even when everything is fine. */- LOG_ERR("DEV_ID after failed init: 0x%08x", ff_qorvo_read_dev_id());+ LOG_ERR("DEV_ID read directly: 0x%08x (expect 0xdeca0302)",+ ff_qorvo_read_dev_id()); return -EIO; }
firmware/findfamily-tracker/uwb.conf
diff --git a/firmware/findfamily-tracker/uwb.conf b/firmware/findfamily-tracker/uwb.confindex 8f68ca0eaa..a33ba6c1d3 100644--- a/firmware/findfamily-tracker/uwb.conf+++ b/firmware/findfamily-tracker/uwb.conf@@ -14,12 +14,6 @@ CONFIG_FF_TRACKER_UWB=y # warning — distinct from CONFIG_QORVO_UWB_QLOG_LEVEL, which is Qorvo's. CONFIG_QORVO_UWB_LOG_LEVEL_INF=y -# Immediate rather than deferred logging for this build. Deferred output is flushed by a-# log thread, so an early crash loses everything queued — which presents as the boot banner-# (a direct printk) followed by silence, and hides the actual failure.-CONFIG_LOG_MODE_DEFERRED=n-CONFIG_LOG_MODE_IMMEDIATE=y- # qosal allocates session state and frame buffers; firmware/qorvo-uwb routes those to # k_malloc, so this pool has to cover them as well as normal kernel use — and now the MAC # thread stacks too, since those are allocated from it.
firmware/qorvo-uwb/src/qspi_zephyr.c
diff --git a/firmware/qorvo-uwb/src/qspi_zephyr.c b/firmware/qorvo-uwb/src/qspi_zephyr.cindex 2e9d8f3433..1a3709b8f3 100644--- a/firmware/qorvo-uwb/src/qspi_zephyr.c+++ b/firmware/qorvo-uwb/src/qspi_zephyr.c@@ -148,14 +148,16 @@ enum qerr qspi_transceive(struct qspi *spi, const struct qspi_transfer *xfer) } /*- * The first few transfers are the driver probing the device id. Logging them makes- * a probe failure diagnosable: dwt_probe() only reports DWT_ERROR, which cannot- * distinguish "the bus returned nothing" from "the id matched no known driver".+ * The first few transfers are the driver probing the device id. Logged at debug+ * level: it was what made a probe failure diagnosable, since dwt_probe() only+ * reports DWT_ERROR and cannot distinguish "the bus returned nothing" from "the id+ * matched no known driver". Left in for the next bring-up, but off by default —+ * hexdumps on the init path are slow enough to matter. */ if (traced < TRACE_XFERS) { traced++;- LOG_HEXDUMP_INF(xfer->tx_buf, MIN(xfer->tx_size, 8U), "spi tx");- LOG_HEXDUMP_INF(xfer->rx_buf, MIN(xfer->rx_size, 8U), "spi rx");+ LOG_HEXDUMP_DBG(xfer->tx_buf, MIN(xfer->tx_size, 8U), "spi tx");+ LOG_HEXDUMP_DBG(xfer->rx_buf, MIN(xfer->rx_size, 8U), "spi rx"); } if (spi->done_cb) {