Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1205209
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Linus Walleij <linus.walleij@linaro.org> |
| Newsgroups | linux.kernel |
| Subject | [PATCH] pinctrl: nomadik: reflect current input value |
| Date | Tue, 11 Aug 2015 17:20:02 +0200 |
| Message-ID | <pWjvk-su-21@gated-at.bofh.it> (permalink) |
| X-Original-To | linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=sPo8juQ8ghR3YAsukZkJf6xh+3f9f6F1eIe4Jfgoa+4=; b=DuO2vHqyq3v4Ks/9ya7VFI9jDWc6lI3uENauevUxcBSrbiel/SV83oeNNJGC2MK9g6 eoY53Qszf/wzr79yWxLyDV7X5wB8Sd+qttkAWXGqF0lRjXxny1smvf2lgvNrGH5rzcH4 X0w5/Vcm3WGYX6bxwH+K3eNAehQxjtcThgBG/G0eDwy8pFQnSTehOUxuCyoUOXJvkDlw uHkY/3l3anty1ZFhioN0iGzB96ROVWPwt33g/8zOI8UTSow6UlyT/AmF+KioU3uArYfj lLb0HU6lR13j+xgRiEnqSj3gFip25VluS59USmnzaB6IdTbQMGUlL8xD/IpWYh3A4aD6 zoHQ== |
| X-Gm-Message-State | ALoCoQmtRk16gvdnxaTAU9AIqNVcFo0Dm1xIlPN8PUOqrm9JcwAzTXjOjPoVHSqIHlZchXwDjZMk |
| X-Received | by 10.152.8.169 with SMTP id s9mr8219354laa.3.1439305947886; Tue, 11 Aug 2015 08:12:27 -0700 (PDT) |
| X-Mailer | git-send-email 2.4.3 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 38 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | linux-gpio@vger.kernel.org, Linus Walleij <linus.walleij@linaro.org> |
| X-Original-Date | Tue, 11 Aug 2015 17:12:21 +0200 |
| X-Original-Message-ID | <1439305941-29948-1-git-send-email-linus.walleij@linaro.org> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1205209 |
Show key headers only | View raw
Let us see the current value on the input line in debugfs. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> --- drivers/pinctrl/nomadik/pinctrl-nomadik.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/pinctrl/nomadik/pinctrl-nomadik.c b/drivers/pinctrl/nomadik/pinctrl-nomadik.c index 809d88445db5..ad43ea8fd67e 100644 --- a/drivers/pinctrl/nomadik/pinctrl-nomadik.c +++ b/drivers/pinctrl/nomadik/pinctrl-nomadik.c @@ -1012,6 +1012,7 @@ static void nmk_gpio_dbg_show_one(struct seq_file *s, int irq = gpio_to_irq(gpio); struct irq_desc *desc = irq_to_desc(irq); int pullidx = 0; + int val; if (pull) pullidx = data_out ? 1 : 2; @@ -1021,6 +1022,10 @@ static void nmk_gpio_dbg_show_one(struct seq_file *s, label ?: "(none)", pulls[pullidx], (mode < 0) ? "unknown" : modes[mode]); + + val = nmk_gpio_get_input(chip, offset); + seq_printf(s, " VAL %d", val); + /* * This races with request_irq(), set_irq_type(), * and set_irq_wake() ... but those are "rare". -- 2.4.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] pinctrl: nomadik: reflect current input value Linus Walleij <linus.walleij@linaro.org> - 2015-08-11 17:20 +0200
csiph-web