spi: axi-spi-engine: Emit trace events for spi transfers
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Thu, 31 Oct 2024 11:16:45 +0000 (12:16 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 31 Oct 2024 18:51:26 +0000 (18:51 +0000)
commite36eba413b8e841e9e36e93188d82674ec7c79d1
tree1c80d98ec80e0c976df7cc6396daa0ffceda1b25
parent8a9c132389bbd162336fcbe6725692455151bd7e
spi: axi-spi-engine: Emit trace events for spi transfers

As this spi host controller driver implements the
.transfer_one_message() callback, it has to care about these traces
it-self. With the transfers being compiled it's difficult to determine
where handling of one transfer ends and the next begins, so just
generate the start events in batch before the hardware fifo is fed and
the end events when their completion triggered.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20241031111646.747692-2-u.kleine-koenig@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-axi-spi-engine.c