]> Git Repo - linux.git/commitdiff
pinctrl: qcom: fix wrong write in update_dual_edge
authorAnsuel Smith <[email protected]>
Tue, 14 Apr 2020 00:37:26 +0000 (02:37 +0200)
committerLinus Walleij <[email protected]>
Thu, 16 Apr 2020 11:15:40 +0000 (13:15 +0200)
Fix a typo in the readl/writel accessor conversion where val is used
instead of pol changing the behavior of the original code.

Cc: [email protected]
Fixes: 6c73698904aa pinctrl: qcom: Introduce readl/writel accessors
Signed-off-by: Ansuel Smith <[email protected]>
Reviewed-by: Bjorn Andersson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
drivers/pinctrl/qcom/pinctrl-msm.c

index 9a398a211d30a4db31ae07b6db09f8512019fb07..6db654c764b729ea27dcd3790a7c7be4cdb23d02 100644 (file)
@@ -697,7 +697,7 @@ static void msm_gpio_update_dual_edge_pos(struct msm_pinctrl *pctrl,
 
                pol = msm_readl_intr_cfg(pctrl, g);
                pol ^= BIT(g->intr_polarity_bit);
-               msm_writel_intr_cfg(val, pctrl, g);
+               msm_writel_intr_cfg(pol, pctrl, g);
 
                val2 = msm_readl_io(pctrl, g) & BIT(g->in_bit);
                intstat = msm_readl_intr_status(pctrl, g);
This page took 0.067407 seconds and 4 git commands to generate.