summaryrefslogtreecommitdiff
path: root/include/trace
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2015-03-18 11:27:28 +0100
committerLuis Henriques <luis.henriques@canonical.com>2015-04-10 10:03:57 +0100
commitb4773b1d802a7f46cc0d1db1d80850fa6d9bf15f (patch)
tree54e67d6df705af6696498230448aba61468cc57f /include/trace
parent66c1d22bc170f9bfaa54a11e34ac7f0392e52100 (diff)
spi: trigger trace event for message-done before mesg->complete
commit 391949b6f02121371e3d7d9082c6d17fd9853034 upstream. With spidev the mesg->complete callback points to spidev_complete. Calling this unblocks spidev_sync and so spidev_sync_write finishes. As the struct spi_message just read is a local variable in spidev_sync_write and recording the trace event accesses this message the recording is better done first. The same can happen for spidev_sync_read. This fixes an oops observed on a 3.14-rt system with spidev activity after echo 1 > /sys/kernel/debug/tracing/events/spi/enable . Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'include/trace')
0 files changed, 0 insertions, 0 deletions