Re: [PATCH v2 2/2] spi: qcom-geni: add GENI SE registers trace event on error paths
From: Praveen Talari
Date: Tue Jul 14 2026 - 11:39:34 EST
Hi Mark,
On 11-07-2026 02:56, Mark Brown wrote:
On Sat, Jul 11, 2026 at 12:18:42AM +0530, Praveen Talari wrote:
The GENI SPI driver reports various transfer failures such as commandShould this be in rivers/soc/qcom/qcom-geni-se.c (and the first patch?)
timeouts, DMA reset timeouts, DMA transaction errors, and unexpected
interrupt conditions. However, diagnosing the root cause of these
failures is difficult as the hardware state is not captured when the
error occurs.
+#include <trace/events/qcom_geni_se.h>
- that way if another driver starts using them we won't multiply define
the tracepoints.
@@ -986,10 +997,13 @@ static irqreturn_t geni_spi_isr(int irq, void *data)SE_GENI_TX_WATERMARK_REG is one of the registers in the tracepoint,
writel(0, se->base + SE_GENI_TX_WATERMARK_REG);
dev_err(mas->dev, "Premature done. tx_rem = %d bpw%d\n",
mas->tx_rem_bytes, mas->cur_bits_per_word);
+ trace_geni_se_regs(se);
perhaps trace before we write to clear it?
I got you now.
Yes you are correct, its better trace before clearing it.
Will update in next patch.
Thanks,
Praveen Talari