Thread (18 messages) 18 messages, 4 authors, 2012-11-07
STALE4957d
Revisions (4)
  1. v3 [diff vs current]
  2. v3 [diff vs current]
  3. v3 [diff vs current]
  4. v3 current

[PATCH v3 9/9] pinctrl: single: dump pinmux register value

From: Linus Walleij <hidden>
Date: 2012-11-06 14:39:03

On Thu, Nov 1, 2012 at 6:48 AM, Haojian Zhuang [off-list ref] wrote:
On Thu, Nov 1, 2012 at 1:47 AM, Tony Lindgren [off-list ref] wrote:
quoted
quoted
 static void pcs_pin_dbg_show(struct pinctrl_dev *pctldev,
                                      struct seq_file *s,
-                                     unsigned offset)
+                                     unsigned pin)
 {
      struct pcs_device *pcs;
-     unsigned val;
+     unsigned val, mux_bytes;

      pcs = pinctrl_dev_get_drvdata(pctldev);

-     val = pcs->read(pcs->base + offset);
-     val &= pcs->fmask;
+     mux_bytes = pcs->width / BITS_PER_BYTE;
+     val = pcs->read(pcs->base + pin * mux_bytes);

      seq_printf(s, "%08x %s " , val, DRIVER_NAME);
 }
--
1.7.10.4
There's also include a bug fix. I'm OK that this patch could be
included in -rc cycle.
A debug print can by definition not be a regression, it
should not have a specific use other than debugging.

And those debugging can use linux-next or separate
patches or whatever ... better keep this series together.

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help