b9015236f494423f083fe3c2899dda31c7051158
[openwrt/staging/neocturne.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 --- a/drivers/pinctrl/qcom/pinctrl-msm.c
17 +++ b/drivers/pinctrl/qcom/pinctrl-msm.c
18 @@ -688,7 +688,7 @@ static void msm_gpio_update_dual_edge_po
19
20 pol = msm_readl_intr_cfg(pctrl, g);
21 pol ^= BIT(g->intr_polarity_bit);
22 - msm_writel_intr_cfg(val, pctrl, g);
23 + msm_writel_intr_cfg(pol, pctrl, g);
24
25 val2 = msm_readl_io(pctrl, g) & BIT(g->in_bit);
26 intstat = msm_readl_intr_status(pctrl, g);