diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2020-04-14 02:43:49 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2020-04-14 21:58:16 +0200 |
commit | 9abf01246efc858b92f8211e37ecd0435e1a0474 (patch) | |
tree | 8b44edb863e3b01033bbc72939f9130eb10ffb85 /target | |
parent | 7c2e0fa5865406d0f2d1987bdd2180c1d1913bf2 (diff) | |
download | upstream-9abf01246efc858b92f8211e37ecd0435e1a0474.tar.gz upstream-9abf01246efc858b92f8211e37ecd0435e1a0474.tar.bz2 upstream-9abf01246efc858b92f8211e37ecd0435e1a0474.zip |
ipq806x: add patch to fix broken buttons
From kernel 4.20 msm-gpio driver is broken and cause the
malfunction of the buttons on every ipq806x target.
Add a patch to fix this.
Tested-by: Hannu Nyman <hannu.nyman@iki.fi>
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/generic/pending-5.4/001-v5.4-pinctrl-qcom-fix-wrong-write-in-update_dual_edge.patch.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/target/linux/generic/pending-5.4/001-v5.4-pinctrl-qcom-fix-wrong-write-in-update_dual_edge.patch.patch b/target/linux/generic/pending-5.4/001-v5.4-pinctrl-qcom-fix-wrong-write-in-update_dual_edge.patch.patch new file mode 100644 index 0000000000..e295311116 --- /dev/null +++ b/target/linux/generic/pending-5.4/001-v5.4-pinctrl-qcom-fix-wrong-write-in-update_dual_edge.patch.patch @@ -0,0 +1,31 @@ +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(-) + +diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c +index 1a948c3f54b7..9f1c9951949e 100644 +--- a/drivers/pinctrl/qcom/pinctrl-msm.c ++++ b/drivers/pinctrl/qcom/pinctrl-msm.c +@@ -692,7 +692,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); +-- +2.25.1 + |