All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Allow GPIO timestamps also via real-time clock
@ 2021-08-31  7:15 Jan Kiszka
  2021-08-31  7:15 ` [PATCH v2 1/3] drivers/gpio: Add support for selecting real-time clock timestamps Jan Kiszka
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jan Kiszka @ 2021-08-31  7:15 UTC (permalink / raw)
  To: xenomai

Changes in v2:
 - respect selected mode also in gpio_pin_interrupt
 - select timestamp mode explicitly in gpiobench

As discussed, we need to add a separate control to manage whether the
monotonic or the real-time clock should be used for GPIO timestamping.

Patch 1 adds this, keeping the default to monotonic. This can be added
to 3.1.x stable as well. Patch 3 aligns the default to the rest of
Xenomai, using real-time from now on. That's 3.2 material.

Jan

Jan Kiszka (3):
  drivers/gpio: Add support for selecting real-time clock timestamps
  testsuite/gpiobench: Explicitly request monotonic timestamps
  drivers/gpio: Flip default for GPIO_RTIOC_TS to real-time clock

 include/cobalt/kernel/rtdm/gpio.h |  1 +
 include/rtdm/uapi/gpio.h          |  4 +++-
 kernel/drivers/gpio/gpio-core.c   | 19 +++++++++++++++----
 testsuite/gpiobench/gpiobench.c   |  2 +-
 4 files changed, 20 insertions(+), 6 deletions(-)

-- 
2.31.1



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-08-31  7:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-31  7:15 [PATCH v2 0/3] Allow GPIO timestamps also via real-time clock Jan Kiszka
2021-08-31  7:15 ` [PATCH v2 1/3] drivers/gpio: Add support for selecting real-time clock timestamps Jan Kiszka
2021-08-31  7:15 ` [PATCH v2 2/3] testsuite/gpiobench: Explicitly request monotonic timestamps Jan Kiszka
2021-08-31  7:15 ` [PATCH v2 3/3] drivers/gpio: Flip default for GPIO_RTIOC_TS to real-time clock Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.