On 6/25/2023 5:21 PM, Eliav Farber wrote:
Enable capture clear events if "capture-clear" boolean property exists
in device-tree.
Signed-off-by: Eliav Farber <farbere@xxxxxxxxxx>
---
drivers/pps/clients/pps-gpio.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/pps/clients/pps-gpio.c b/drivers/pps/clients/pps-gpio.c
index 2f4b11b4dfcd..a61dc1299ce9 100644
--- a/drivers/pps/clients/pps-gpio.c
+++ b/drivers/pps/clients/pps-gpio.c
@@ -112,6 +112,7 @@ static int pps_gpio_setup(struct device *dev)
data->assert_falling_edge =
device_property_read_bool(dev, "assert-falling-edge");
+ data->capture_clear = device_property_read_bool(dev, "capture-clear");
Rodolfo, currently data->capture_clear is false by default, and there
is no way of setting it in the pps-gpio driver.
How would you suggest setting it?
Will it be OK to setting PPS_WIDTHASSERT by default?