Linus Walleij f8850206e1 gpio: Switch timestamps to ktime_get_ns()
The existing use of ktime_get_real_ns() in the timestamps from
the GPIO events is dubious.

We have had several discussions about this timestamp, and it is
unclear whether userspace has ever taken into account that a
timestamp from ktime_get_real_ns() can actually move backwards
in time relative the previous timetamp, and userspace is more
likely to expect a monotonic counter.

Background:
https://lore.kernel.org/linux-gpio/CAK8P3a1Skvm48sje8FNDPLYqyz9Lf8q0qX1QETWtyZTxuX4k1g@mail.gmail.com/
https://marc.info/?l=linux-gpio&m=151661955709074&w=2

The change is ABI incompatible, but incompatible in a way that
is IMO more likely to fix future bugs rather than break current
userspace. To the best of my knowledge all userspace expects
a monotonic timestamp and users are just lucky that they very
seldom move backwards in time.

Cc: Arnd Bergmann <arnd@arndb.de>
Acked-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2020-02-21 16:29:38 +01:00
..
2020-01-23 16:16:05 +01:00
2019-11-07 09:27:48 +01:00
2019-11-07 09:27:48 +01:00
2018-05-16 14:35:24 +02:00
2020-01-15 11:24:19 +01:00
2019-11-07 09:27:48 +01:00
2019-09-03 16:04:19 +02:00
2020-02-20 15:41:05 +01:00
2020-01-17 08:59:29 +01:00
2019-11-07 09:27:48 +01:00
2019-11-07 09:27:48 +01:00
2020-01-17 08:59:29 +01:00
2019-07-23 18:59:05 +03:00
2019-11-07 09:27:48 +01:00
2020-02-20 09:18:54 +01:00
2019-11-07 09:27:48 +01:00
2019-11-07 09:27:48 +01:00
2019-11-07 09:27:48 +01:00
2020-01-15 13:45:01 +01:00
2019-11-07 09:27:48 +01:00
2018-01-09 14:51:00 +01:00
2019-11-07 09:27:48 +01:00
2019-12-09 10:40:18 +01:00
2020-02-03 14:51:57 +00:00
2020-02-03 14:51:57 +00:00
2020-01-09 03:01:33 +01:00