pinctrl: imx: fix using pin->input_val wrongly
Subsystems (2)
PATCH 1/1 pinctrl: imx: fix using pin->input_val wrongly
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 <[email protected]>
--- drivers/pinctrl/pinctrl-imx.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/pinctrl/pinctrl-imx.c +3 -3
@@ -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.
Signature · 1 line
1.7.1
Quoted 4 lines · Peter Chen
The commit: "pinctrl: imx: Use struct type for pins" relaced
pin->input_regbypin->input_valwrongly, fix it at this commit.Signed-off-by Peter Chen <[email protected]>
Oops.
Acked-by Sascha Hauer <[email protected]>
Quoted 28 lines
--- drivers/pinctrl/pinctrl-imx.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)drivers/pinctrl/pinctrl-imx.c +3
-3@@ -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. Signature · 1 line
1.7.1
Signature · 4 lines
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 |
Quoted 4 lines · Peter Chen
The commit: "pinctrl: imx: Use struct type for pins" relaced
pin->input_regbypin->input_valwrongly, fix it at this commit.Signed-off-by Peter Chen <[email protected]>
Patch applied with Sascha's ACK.
Yours.
Linus Walleij