Skip to content

Commit 90bcb0c

Browse files
Ansuellinusw
authored andcommitted
pinctrl: qcom: fix wrong write in update_dual_edge
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: 6c73698 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]>
1 parent 6a27268 commit 90bcb0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pinctrl/qcom/pinctrl-msm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ static void msm_gpio_update_dual_edge_pos(struct msm_pinctrl *pctrl,
697697

698698
pol = msm_readl_intr_cfg(pctrl, g);
699699
pol ^= BIT(g->intr_polarity_bit);
700-
msm_writel_intr_cfg(val, pctrl, g);
700+
msm_writel_intr_cfg(pol, pctrl, g);
701701

702702
val2 = msm_readl_io(pctrl, g) & BIT(g->in_bit);
703703
intstat = msm_readl_intr_status(pctrl, g);

0 commit comments

Comments
 (0)