mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 22:23:27 +00:00
0bea89a1d0
Refreshed patches, removed upstreamed patches: generic: 746-stable-net-dsa-mt7530-fix-null-pointer-dereferencing-in-por.patch Run tested: qemu-x86-64, apalis Build tested: x86/64, imx6, sunxi/a53 Signed-off-by: Petr Štetiar <ynezz@true.cz>
27 lines
962 B
Diff
27 lines
962 B
Diff
From 17d4771b9740e0c504067b18d527cc29ba490e16 Mon Sep 17 00:00:00 2001
|
|
From: Ansuel Smith <ansuelsmth@gmail.com>
|
|
Date: Tue, 14 Apr 2020 02:28:00 +0200
|
|
Subject: [PATCH] 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.
|
|
|
|
Fixes: 6c73698904aa pinctrl: qcom: Introduce readl/writel accessors
|
|
|
|
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
|
|
---
|
|
drivers/pinctrl/qcom/pinctrl-msm.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/pinctrl/qcom/pinctrl-msm.c
|
|
+++ b/drivers/pinctrl/qcom/pinctrl-msm.c
|
|
@@ -688,7 +688,7 @@ static void msm_gpio_update_dual_edge_po
|
|
|
|
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);
|