spi: slave: Add SPI slave handler reporting uptime at previous message
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 22 May 2017 13:11:44 +0000 (15:11 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 26 May 2017 12:12:04 +0000 (13:12 +0100)
commit29f9ffa0e1f9a17c866c04a01acfc9976d78f29a
tree93a0373ecab30962f97a0e42e274d38e3c2d1447
parentaa2ea9115bc3f0735aa65b833076cc5fe3da1489
spi: slave: Add SPI slave handler reporting uptime at previous message

Add an example SPI slave handler responding with the uptime at the time
of reception of the last SPI message.

This can be used by an external microcontroller as a dead man's switch.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/Kconfig
drivers/spi/Makefile
drivers/spi/spi-slave-time.c [new file with mode: 0644]