e295311116313f5b919ee43c58bb6981a428ec76
[openwrt/staging/aparcar.git] /
1 From 17d4771b9740e0c504067b18d527cc29ba490e16 Mon Sep 17 00:00:00 2001
2 From: Ansuel Smith <ansuelsmth@gmail.com>
3 Date: Tue, 14 Apr 2020 02:28:00 +0200
4 Subject: [PATCH] pinctrl: qcom: fix wrong write in update_dual_edge
5
6 Fix a typo in the readl/writel accessor conversion where val is used
7 instead of pol changing the behavior of the original code.
8
9 Fixes: 6c73698904aa pinctrl: qcom: Introduce readl/writel accessors
10
11 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
12 ---
13 drivers/pinctrl/qcom/pinctrl-msm.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c
17 index 1a948c3f54b7..9f1c9951949e 100644
18 --- a/drivers/pinctrl/qcom/pinctrl-msm.c
19 +++ b/drivers/pinctrl/qcom/pinctrl-msm.c
20 @@ -692,7 +692,7 @@ static void msm_gpio_update_dual_edge_pos(struct msm_pinctrl *pctrl,
21
22 pol = msm_readl_intr_cfg(pctrl, g);
23 pol ^= BIT(g->intr_polarity_bit);
24 - msm_writel_intr_cfg(val, pctrl, g);
25 + msm_writel_intr_cfg(pol, pctrl, g);
26
27 val2 = msm_readl_io(pctrl, g) & BIT(g->in_bit);
28 intstat = msm_readl_intr_status(pctrl, g);
29 --
30 2.25.1
31