Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1409871 > unrolled thread

[PATCH] pinctrl: uniphier: fix .pin_dbg_show() callback

Started byMasahiro Yamada <yamada.masahiro@socionext.com>
First post2016-05-31 08:40 +0200
Last post2016-05-31 11:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] pinctrl: uniphier: fix .pin_dbg_show() callback Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-05-31 08:40 +0200
    Re: [PATCH] pinctrl: uniphier: fix .pin_dbg_show() callback Linus Walleij <linus.walleij@linaro.org> - 2016-05-31 11:00 +0200

#1409871 — [PATCH] pinctrl: uniphier: fix .pin_dbg_show() callback

FromMasahiro Yamada <yamada.masahiro@socionext.com>
Date2016-05-31 08:40 +0200
Subject[PATCH] pinctrl: uniphier: fix .pin_dbg_show() callback
Message-ID<rELvj-7hB-9@gated-at.bofh.it>
Without this, reading the "pins" in the debugfs causes kernel BUG.

Fixes: 6e9088920258 ("pinctrl: UniPhier: add UniPhier pinctrl core support")
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

Hi Linus,
I hope this will be applied as a bug-fix patch for Linux 4.7 .

 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c
index 9674009..5d08de0 100644
--- a/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c
+++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c
@@ -73,6 +73,12 @@ static void uniphier_pctl_pin_dbg_show(struct pinctrl_dev *pctldev,
 	case UNIPHIER_PIN_PULL_DOWN:
 		pull_dir = "DOWN";
 		break;
+	case UNIPHIER_PIN_PULL_UP_FIXED:
+		pull_dir = "UP(FIXED)";
+		break;
+	case UNIPHIER_PIN_PULL_DOWN_FIXED:
+		pull_dir = "DOWN(FIXED)";
+		break;
 	case UNIPHIER_PIN_PULL_NONE:
 		pull_dir = "NONE";
 		break;
-- 
1.9.1

[toc] | [next] | [standalone]


#1410003

FromLinus Walleij <linus.walleij@linaro.org>
Date2016-05-31 11:00 +0200
Message-ID<rENGN-pS-7@gated-at.bofh.it>
In reply to#1409871
On Tue, May 31, 2016 at 8:30 AM, Masahiro Yamada
<yamada.masahiro@socionext.com> wrote:

> Without this, reading the "pins" in the debugfs causes kernel BUG.
>
> Fixes: 6e9088920258 ("pinctrl: UniPhier: add UniPhier pinctrl core support")
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

Patch applied.

Yours,
Linus Walleij

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web