Re: [PATCH v4 5/6] spi: slave: Add SPI slave handler reporting uptime at previous message

2017-05-22 Thread Andy Shevchenko
On Mon, May 22, 2017 at 1:13 PM, Geert Uytterhoeven wrote: > On Thu, May 18, 2017 at 6:01 PM, Andy Shevchenko > wrote: >> On Wed, May 17, 2017 at 3:47 PM, Geert Uytterhoeven >> wrote: >>> + rem_ns = do_div(ts,

Re: [PATCH v4 5/6] spi: slave: Add SPI slave handler reporting uptime at previous message

2017-05-22 Thread Geert Uytterhoeven
Hi Andy, On Thu, May 18, 2017 at 6:01 PM, Andy Shevchenko wrote: > On Wed, May 17, 2017 at 3:47 PM, Geert Uytterhoeven > wrote: >> Add an example SPI slave handler responding with the uptime at the time >> of reception of the last SPI message.

Re: [PATCH v4 5/6] spi: slave: Add SPI slave handler reporting uptime at previous message

2017-05-18 Thread Andy Shevchenko
On Wed, May 17, 2017 at 3:47 PM, Geert Uytterhoeven wrote: > 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. > +static int

[PATCH v4 5/6] spi: slave: Add SPI slave handler reporting uptime at previous message

2017-05-17 Thread Geert Uytterhoeven
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 --- v4: - No changes, v3: - Add #include , v2: