* [PATCH 1/1] pinctrl: imx: fix using pin->input_val wrongly
@ 2013-10-28 6:01 Peter Chen
2013-10-28 7:54 ` Sascha Hauer
2013-11-04 12:05 ` Linus Walleij
0 siblings, 2 replies; 3+ messages in thread
From: Peter Chen @ 2013-10-28 6:01 UTC (permalink / raw)
To: linux-arm-kernel
The commit: "pinctrl: imx: Use struct type for pins" relaced
pin->input_reg by pin->input_val wrongly, fix it at this commit.
Signed-off-by: Peter Chen <peter.chen@freescale.com>
---
drivers/pinctrl/pinctrl-imx.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/pinctrl/pinctrl-imx.c b/drivers/pinctrl/pinctrl-imx.c
index d78dd81..4779b8e 100644
--- a/drivers/pinctrl/pinctrl-imx.c
+++ b/drivers/pinctrl/pinctrl-imx.c
@@ -245,11 +245,11 @@ static int imx_pmx_enable(struct pinctrl_dev *pctldev, unsigned selector,
* The input_reg[i] here is actually some IOMUXC general
* purpose register, not regular select input register.
*/
- val = readl(ipctl->base + pin->input_val);
+ val = readl(ipctl->base + pin->input_reg);
val &= ~mask;
val |= select << shift;
- writel(val, ipctl->base + pin->input_val);
- } else if (pin->input_val) {
+ writel(val, ipctl->base + pin->input_reg);
+ } else if (pin->input_reg) {
/*
* Regular select input register can never be at offset
* 0, and we only print register value for regular case.
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 1/1] pinctrl: imx: fix using pin->input_val wrongly
2013-10-28 6:01 [PATCH 1/1] pinctrl: imx: fix using pin->input_val wrongly Peter Chen
@ 2013-10-28 7:54 ` Sascha Hauer
2013-11-04 12:05 ` Linus Walleij
1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2013-10-28 7:54 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Oct 28, 2013 at 02:01:16PM +0800, Peter Chen wrote:
> The commit: "pinctrl: imx: Use struct type for pins" relaced
> pin->input_reg by pin->input_val wrongly, fix it at this commit.
>
> Signed-off-by: Peter Chen <peter.chen@freescale.com>
Oops.
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
> ---
> drivers/pinctrl/pinctrl-imx.c | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/pinctrl/pinctrl-imx.c b/drivers/pinctrl/pinctrl-imx.c
> index d78dd81..4779b8e 100644
> --- a/drivers/pinctrl/pinctrl-imx.c
> +++ b/drivers/pinctrl/pinctrl-imx.c
> @@ -245,11 +245,11 @@ static int imx_pmx_enable(struct pinctrl_dev *pctldev, unsigned selector,
> * The input_reg[i] here is actually some IOMUXC general
> * purpose register, not regular select input register.
> */
> - val = readl(ipctl->base + pin->input_val);
> + val = readl(ipctl->base + pin->input_reg);
> val &= ~mask;
> val |= select << shift;
> - writel(val, ipctl->base + pin->input_val);
> - } else if (pin->input_val) {
> + writel(val, ipctl->base + pin->input_reg);
> + } else if (pin->input_reg) {
> /*
> * Regular select input register can never be at offset
> * 0, and we only print register value for regular case.
> --
> 1.7.1
>
>
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] pinctrl: imx: fix using pin->input_val wrongly
2013-10-28 6:01 [PATCH 1/1] pinctrl: imx: fix using pin->input_val wrongly Peter Chen
2013-10-28 7:54 ` Sascha Hauer
@ 2013-11-04 12:05 ` Linus Walleij
1 sibling, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2013-11-04 12:05 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Oct 28, 2013 at 7:01 AM, Peter Chen <peter.chen@freescale.com> wrote:
> The commit: "pinctrl: imx: Use struct type for pins" relaced
> pin->input_reg by pin->input_val wrongly, fix it at this commit.
>
> Signed-off-by: Peter Chen <peter.chen@freescale.com>
Patch applied with Sascha's ACK.
Yours.
Linus Walleij
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-11-04 12:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-28 6:01 [PATCH 1/1] pinctrl: imx: fix using pin->input_val wrongly Peter Chen
2013-10-28 7:54 ` Sascha Hauer
2013-11-04 12:05 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).