* [PATCH] pinctrl: pinctrl-single: add debugfs pin h/w state info
@ 2012-09-26 19:07 Matt Porter
2012-09-27 11:44 ` Linus Walleij
0 siblings, 1 reply; 2+ messages in thread
From: Matt Porter @ 2012-09-26 19:07 UTC (permalink / raw)
To: Tony Lindgren; +Cc: Linus Walleij, Linux Kernel Mailing List
Adds support for displaying the individual pin h/w config state.
Signed-off-by: Matt Porter <mporter@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
---
drivers/pinctrl/pinctrl-single.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c
index aabecfa..726a729 100644
--- a/drivers/pinctrl/pinctrl-single.c
+++ b/drivers/pinctrl/pinctrl-single.c
@@ -246,7 +246,15 @@ static void pcs_pin_dbg_show(struct pinctrl_dev *pctldev,
struct seq_file *s,
unsigned offset)
{
- seq_printf(s, " " DRIVER_NAME);
+ struct pcs_device *pcs;
+ unsigned val;
+
+ pcs = pinctrl_dev_get_drvdata(pctldev);
+
+ val = pcs->read(pcs->base + offset);
+ val &= pcs->fmask;
+
+ seq_printf(s, "%08x %s " , val, DRIVER_NAME);
}
static void pcs_dt_free_map(struct pinctrl_dev *pctldev,
--
1.7.9.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] pinctrl: pinctrl-single: add debugfs pin h/w state info
2012-09-26 19:07 [PATCH] pinctrl: pinctrl-single: add debugfs pin h/w state info Matt Porter
@ 2012-09-27 11:44 ` Linus Walleij
0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2012-09-27 11:44 UTC (permalink / raw)
To: Matt Porter; +Cc: Tony Lindgren, Linux Kernel Mailing List
On Wed, Sep 26, 2012 at 9:07 PM, Matt Porter <mporter@ti.com> wrote:
> Adds support for displaying the individual pin h/w config state.
>
> Signed-off-by: Matt Porter <mporter@ti.com>
> Acked-by: Tony Lindgren <tony@atomide.com>
Thanks, patch applied.
Linus Walleij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-09-27 11:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-26 19:07 [PATCH] pinctrl: pinctrl-single: add debugfs pin h/w state info Matt Porter
2012-09-27 11:44 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®