All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@kernel.org>
To: Rodolfo Giometti <giometti@enneenne.com>,
	Rob Herring <robh+dt@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	devicetree@vger.kernel.org
Subject: [PATCH 2/2] pps-gpio.c: Add capture-clear
Date: Mon, 11 Mar 2019 16:59:51 +0200	[thread overview]
Message-ID: <20190311145951.847-2-bunk@kernel.org> (raw)
In-Reply-To: <20190311145951.847-1-bunk@kernel.org>

The code was already there but the device tree wiring was missing,
resulting in out-of-tree patches enabling it in various places.

This is safe to backport since it only has an effect if enabled
in the device tree.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Cc: stable@vger.kernel.org
---
 drivers/pps/clients/pps-gpio.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/pps/clients/pps-gpio.c b/drivers/pps/clients/pps-gpio.c
index dd5d1103e02b..f6549c4c9c81 100644
--- a/drivers/pps/clients/pps-gpio.c
+++ b/drivers/pps/clients/pps-gpio.c
@@ -119,6 +119,8 @@ static int pps_gpio_probe(struct platform_device *pdev)
 
 		if (of_get_property(np, "assert-falling-edge", NULL))
 			data->assert_falling_edge = true;
+		if (of_get_property(np, "capture-clear", NULL))
+			data->capture_clear = true;
 	}
 
 	/* GPIO setup */
-- 
2.20.1

  reply	other threads:[~2019-03-11 14:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-11 14:59 [PATCH 1/2] dt-bindings: pps: pps-gpio.txt: Add capture-clear Adrian Bunk
2019-03-11 14:59 ` Adrian Bunk [this message]
2019-03-28  0:41   ` [PATCH 2/2] pps-gpio.c: " Rob Herring
2019-03-28  0:38 ` [PATCH 1/2] dt-bindings: pps: pps-gpio.txt: " Rob Herring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190311145951.847-2-bunk@kernel.org \
    --to=bunk@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=giometti@enneenne.com \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.