Skip to content

gpiolib: cdev: allow edge event timestamps to be configured as REALTIME

Kent Gibson linux-gpio lkml 2 versions – Applied

Status from this message: I applied the v2 patch set for v5.11 now, it seems to work fine!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 11 repliesApplied
  2. v13 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- change line_event_timestamp() return to u64 to avoid clipping to 32bits on 32bit platforms.
- fix the line spacing after line_event_timestamp()

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3gpiolib: cdev: allow edge event timestamps to be configured as REALTIMEdrivers/gpio/gpiolib-cdev.c drivers/gpio/gpiolib.h include/uapi/linux/gpio.h+28 -62 replies
2/3tools: gpio: add support for reporting realtime event clock to lsgpiotools/gpio/lsgpio.c+4 -00 replies
3/3tools: gpio: add option to report wall-clock time to gpio-event-montools/gpio/gpio-event-mon.c+5 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] gpiolib: cdev: allow edge event timestamps to be configured as REALTIME

This patch set adds the option to select CLOCK_REALTIME as the source clock for line events.

The first patch is the core of the change, while the remaining two update the GPIO tools to make use of the new option.

Changes for v2:
- change line_event_timestamp() return to u64 to avoid clipping to 32bits on 32bit platforms.
- fix the line spacing after line_event_timestamp()

Kent Gibson (3):
gpiolib: cdev: allow edge event timestamps to be configured as
REALTIME
tools: gpio: add support for reporting realtime event clock to lsgpio
tools: gpio: add option to report wall-clock time to gpio-event-mon

 drivers/gpio/gpiolib-cdev.c | 21 ++++++++++++++++++---
 drivers/gpio/gpiolib.h      |  1 +
 include/uapi/linux/gpio.h   | 12 +++++++++---
 tools/gpio/gpio-event-mon.c |  6 +++++-
 tools/gpio/lsgpio.c         |  4 ++++
 5 files changed, 37 insertions(+), 7 deletions(-)
Signature · 1 line
2.28.0