gpiolib: Add HTE support
authorDipen Patel <dipenp@nvidia.com>
Fri, 22 Apr 2022 20:52:16 +0000 (13:52 -0700)
committerThierry Reding <treding@nvidia.com>
Wed, 4 May 2022 09:06:13 +0000 (11:06 +0200)
commit42112dd77b74220e6a1f4a71bb51ca3f583d3842
treef186d4d8142a785199f546cd16974de097e2f0f2
parente6a3a65be8e4dc6fc74fdb28483ba5b997aab6aa
gpiolib: Add HTE support

Some GPIO chip can provide hardware timestamp support on its GPIO lines
, in order to support that, additional API needs to be added which
can talk to both GPIO chip and HTE (hardware timestamping engine)
providers if there is any dependencies. This patch introduces optional
hooks to enable and disable hardware timestamping related features
in the GPIO controller chip.

Signed-off-by: Dipen Patel <dipenp@nvidia.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpio/gpiolib.c
drivers/gpio/gpiolib.h
include/linux/gpio/consumer.h
include/linux/gpio/driver.h