Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: mxs: add tracing to custom .transfer_one_message callback

Driver specific implementations for .transfer_one_message need to call
the tracing stuff themself. This is necessary to make spi tracing
actually useful.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Uwe Kleine-König and committed by
Mark Brown
f3fdea3a c55d0e8c

+5
+5
drivers/spi/spi-mxs.c
··· 39 39 #include <linux/stmp_device.h> 40 40 #include <linux/spi/spi.h> 41 41 #include <linux/spi/mxs-spi.h> 42 + #include <trace/events/spi.h> 42 43 43 44 #define DRIVER_NAME "mxs-spi" 44 45 ··· 375 374 376 375 list_for_each_entry(t, &m->transfers, transfer_list) { 377 376 377 + trace_spi_transfer_start(m, t); 378 + 378 379 status = mxs_spi_setup_transfer(m->spi, t); 379 380 if (status) 380 381 break; ··· 421 418 t->rx_buf, t->len, 422 419 flag); 423 420 } 421 + 422 + trace_spi_transfer_stop(m, t); 424 423 425 424 if (status) { 426 425 stmp_reset_block(ssp->base);