Thread (75 messages) 75 messages, 11 authors, 2021-09-26

Re: [RFC 09/11] tools: gpio: Add new hardware clock type

From: Linus Walleij <hidden>
Date: 2021-06-27 11:36:39
Also in: linux-doc, linux-gpio, linux-tegra, lkml

On Sat, Jun 26, 2021 at 1:48 AM Dipen Patel [off-list ref] wrote:
gpiolib-cdev is extended to support hardware clock type, this
patch reflects that fact.

Signed-off-by: Dipen Patel <dipenp@nvidia.com>
(...)
                case 'w':
                        config.flags |= GPIO_V2_LINE_FLAG_EVENT_CLOCK_REALTIME;
                        break;
+               case 't':
+                       config.flags |= GPIO_V2_LINE_FLAG_EVENT_CLOCK_HARDWARE;
+                       break;
After the checking of the command line options we need a small sanity
check so we don't try to enable both realtime and hardware clock
at the same time, we will only be able to request one of them.

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help