From patchwork Sun Jun 25 14:21:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Farber, Eliav" X-Patchwork-Id: 112601 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp6943949vqr; Sun, 25 Jun 2023 07:29:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7UsOqieKUPywmR47aGUnjw5T3mp5yZuxfDRMswI+T7e2ZYf56R8W/HGxLUbmD7VSza5syE X-Received: by 2002:a05:6a20:244a:b0:10e:440:6d36 with SMTP id t10-20020a056a20244a00b0010e04406d36mr32443790pzc.1.1687703361189; Sun, 25 Jun 2023 07:29:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687703361; cv=none; d=google.com; s=arc-20160816; b=Ni/IaETB71CoF9SJmtseL+Zy/kR0RJycdXLYwFwJyL4eq65m4bb1TzVNtm2NYKVvof jAhCl0FysKZVhUkSxV7+yVN9na7rU3ScJ8A2Xz+aOdZkU/S9225EDKD0GOUh3p45gyJ+ +HliZurUJvOo4LcCH9Wv3TETyfeigOB7FMCdac95aoZImUemJDkqSHTbhpgEljm0a8jA AUDIJZf0wABAzWpfkVDoxK44SkChb136Mv3ySlowUm//4msoKKCOTGQ+zhbPOxbIT8y7 tG434jN89jJZqplfNjBEYMWWhOnzF/BDerSvacilUwnxQUMPM1Xmr0yIVACGLD2w12g2 syrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hzkmriAJdrDXAPOXkzYgl+u0BMBeF3csMzsxYQTdpVE=; fh=/9rTqK0zswNCgLim86exJ2HNVgKWrjH8Cr/T0xC8qdo=; b=re0EZbrc2deNpoV+TAZBCjpDRQKkN1a3NA61WG24tzy7iQDZ/6YyqOnd1Eois80IdS oa80IvskVUw7sN8G6CbjSVbqGtOXRx/dK2rWJIA3dyPDb5qPeJGnmQyBlE6RgE6fO7xz yY9g4IoqpstIV6o5LUTgMfXJ/QnWeqj7eZAXAi26l+TyQQLq38o5NKBQ2KONcl3PKxiz q+JKy5IRTj8bEh0ElBa5lDfQBKAKxN+0M6/Ypifrx185+1zBsT1YNdY7cG3agNyIokYn LGD9KfhxswEyfkuP0ZWTfjko4l+uMnjWz+q1oWtyFtXqPytFBtX5/r8kwtig6XwAc/BI VELw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=v+j4JMfZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 201-20020a6301d2000000b005537d2a84f9si3504942pgb.400.2023.06.25.07.28.57; Sun, 25 Jun 2023 07:29:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=v+j4JMfZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230329AbjFYOVr (ORCPT + 99 others); Sun, 25 Jun 2023 10:21:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230179AbjFYOVl (ORCPT ); Sun, 25 Jun 2023 10:21:41 -0400 Received: from smtp-fw-2101.amazon.com (smtp-fw-2101.amazon.com [72.21.196.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FACDE4C; Sun, 25 Jun 2023 07:21:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1687702900; x=1719238900; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hzkmriAJdrDXAPOXkzYgl+u0BMBeF3csMzsxYQTdpVE=; b=v+j4JMfZ7mgF092SNpNm3yrnhkLLXRlEk5L62XHeiEMLTiawXfi6av28 yhX3SXnnZvQo0dj7zx77YGSxrcAAuLaVXyjFDmezGXQjxcPbNswqM7B4r zbejXwDy1uSMCR8gOpkVkvmeCWqBodmRpVGriD/V+15aQsj6bsjKeGg0s o=; X-IronPort-AV: E=Sophos;i="6.01,157,1684800000"; d="scan'208";a="336051270" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-pdx-2c-m6i4x-5eae960a.us-west-2.amazon.com) ([10.43.8.6]) by smtp-border-fw-2101.iad2.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2023 14:21:37 +0000 Received: from EX19D005EUA004.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-pdx-2c-m6i4x-5eae960a.us-west-2.amazon.com (Postfix) with ESMTPS id EEDCB40AEB; Sun, 25 Jun 2023 14:21:35 +0000 (UTC) Received: from EX19MTAUEA001.ant.amazon.com (10.252.134.203) by EX19D005EUA004.ant.amazon.com (10.252.50.241) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Sun, 25 Jun 2023 14:21:34 +0000 Received: from dev-dsk-farbere-1a-46ecabed.eu-west-1.amazon.com (172.19.116.181) by mail-relay.amazon.com (10.252.134.102) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Sun, 25 Jun 2023 14:21:34 +0000 Received: by dev-dsk-farbere-1a-46ecabed.eu-west-1.amazon.com (Postfix, from userid 14301484) id 18A034F0D; Sun, 25 Jun 2023 14:21:34 +0000 (UTC) From: Eliav Farber To: , , , , , , CC: , , , , , , , Subject: [PATCH 3/5] pps: clients: gpio: add option to set capture-clear from device-tree Date: Sun, 25 Jun 2023 14:21:32 +0000 Message-ID: <20230625142134.33690-4-farbere@amazon.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230625142134.33690-1-farbere@amazon.com> References: <20230625142134.33690-1-farbere@amazon.com> MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769685239572353567?= X-GMAIL-MSGID: =?utf-8?q?1769685239572353567?= Enable capture clear events if "capture-clear" boolean property exists in device-tree. Signed-off-by: Eliav Farber --- 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"); data->echo_pin = devm_gpiod_get_optional(dev, "echo", GPIOD_OUT_LOW); if (IS_ERR(data->echo_pin))