linux/drivers/pinctrl/qcom
Johan Hovold a4f9251e4b pinctrl: qcom: spmi-gpio: drop broken pm8008 support
commit 8da86499d4 upstream.

The SPMI GPIO driver assumes that the parent device is an SPMI device
and accesses random data when backcasting the parent struct device
pointer for non-SPMI devices.

Fortunately this does not seem to cause any issues currently when the
parent device is an I2C client like the PM8008, but this could change if
the structures are reorganised (e.g. using structure randomisation).

Notably the interrupt implementation is also broken for non-SPMI devices.

Also note that the two GPIO pins on PM8008 are used for interrupts and
reset so their practical use should be limited.

Drop the broken GPIO support for PM8008 for now.

Fixes: ea119e5a48 ("pinctrl: qcom-pmic-gpio: Add support for pm8008")
Cc: stable@vger.kernel.org	# 5.13
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20240529162958.18081-9-johan+linaro@kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2024-07-05 09:31:52 +02:00
..
Kconfig pinctrl: qcom: restrict drivers per ARM/ARM64 2022-10-04 09:33:37 +02:00
Makefile pinctrl: qcom: Add sc8280xp lpass lpi pinctrl driver 2022-08-25 14:32:04 +02:00
pinctrl-apq8064.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
pinctrl-apq8084.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
pinctrl-ipq4019.c pinctrl: qcom: ipq4019: add open drain support 2020-07-16 10:46:24 +02:00
pinctrl-ipq6018.c pinctrl: qcom: ipq6018 Add missing pins in qpic pin group 2020-06-20 22:05:24 +02:00
pinctrl-ipq8064.c ipq8064: pinctrl: Fixed missing RGMII pincontrol definitions 2020-02-21 16:23:26 +01:00
pinctrl-ipq8074.c pinctrl: qcom: ipq8074: route gpio interrupts to APPS 2020-07-11 23:11:00 +02:00
pinctrl-lpass-lpi.c pinctrl: qcom: lpass-lpi: fix concurrent register updates 2023-11-02 09:35:22 +01:00
pinctrl-lpass-lpi.h pinctrl: qcom: sc7280: Fix compile bug 2022-06-30 14:00:53 +02:00
pinctrl-mdm9607.c pinctrl: qcom: Add MDM9607 pinctrl driver 2021-07-23 17:44:13 +02:00
pinctrl-mdm9615.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
pinctrl-msm.c pinctrl: qcom: Avoid glitching lines when we first mux to output 2022-10-17 12:28:26 +02:00
pinctrl-msm.h pinctrl: qcom: Add egpio feature support 2021-11-22 00:27:54 +01:00
pinctrl-msm8x74.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
pinctrl-msm8226.c pinctrl: qcom: msm8226: fill in more functions 2021-09-18 00:31:10 +02:00
pinctrl-msm8660.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
pinctrl-msm8909.c pinctrl: qcom: Add pinctrl driver for MSM8909 2022-07-11 10:26:52 +02:00
pinctrl-msm8916.c pinctrl: qcom: msm8916: Allow CAMSS GP clocks to be muxed 2022-06-26 00:54:10 +02:00
pinctrl-msm8953.c pinctrl: qcom: add pinctrl driver for msm8953 2020-11-10 14:58:14 +01:00
pinctrl-msm8960.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
pinctrl-msm8976.c pinctrl: qcom: pinctrl-msm8976: Correct function names for wcss pins 2023-03-10 09:33:10 +01:00
pinctrl-msm8994.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
pinctrl-msm8996.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
pinctrl-msm8998.c pinctrl: msm8998: Squash TSIF pins together 2019-07-29 23:28:57 +02:00
pinctrl-qcm2290.c pinctrl: qcom: qcm2290: Add GPIO wakeirq map 2022-02-19 01:59:19 +01:00
pinctrl-qcs404.c This is the bulk of pin control changes for the v5.1 kernel cycle. 2019-03-11 11:12:50 -07:00
pinctrl-qdf2xxx.c pinctrl: qdf2xxx: Switch to use device_property_count_uXX() 2019-08-05 12:01:45 +02:00
pinctrl-sc7180.c pinctrl: qcom: Handle broken/missing PDC dual edge IRQs on sc7180 2020-07-16 15:41:41 +02:00
pinctrl-sc7280-lpass-lpi.c pinctrl: qcom: sc7280: Add clock optional check for ADSP bypass targets 2022-06-26 00:50:41 +02:00
pinctrl-sc7280.c pinctrl: qcom: sc7280: Add egpio support 2021-11-22 00:27:54 +01:00
pinctrl-sc8180x.c pinctrl: qcom: sc8180x: Fix wrong pin numbers 2022-08-22 10:57:07 +02:00
pinctrl-sc8280xp-lpass-lpi.c pinctrl: qcom: Add sc8280xp lpass lpi pinctrl driver 2022-08-25 14:32:04 +02:00
pinctrl-sc8280xp.c pinctrl: qcom: sc8280xp: Rectify UFS reset pins 2022-11-08 15:03:24 +01:00
pinctrl-sdm660.c pinctrl: sdm660: Set tile property for pingroups 2018-11-19 15:40:55 +01:00
pinctrl-sdm845.c pinctrl: qcom: sdm845: Enable dual edge errata 2021-11-16 02:19:15 +01:00
pinctrl-sdx55.c pinctrl: qcom: Fix duplication in gpio_groups 2021-06-07 00:18:55 +02:00
pinctrl-sdx65.c pinctrl: qcom: Add SDX65 pincontrol driver 2021-11-21 23:48:27 +01:00
pinctrl-sm6115.c drivers: qcom: pinctrl: Add pinctrl driver for sm6115 2021-07-31 23:23:06 +02:00
pinctrl-sm6125.c pinctrl: qcom: cleanup comments 2022-03-15 01:30:37 +01:00
pinctrl-sm6350.c pinctrl: qcom: sm6350: fix order of UFS & SDC pins 2022-04-18 01:38:24 +02:00
pinctrl-sm6375.c pinctrl: qcom: Add SM6375 TLMM driver 2022-07-26 09:28:53 +02:00
pinctrl-sm8150.c pinctrl: qcom: sm8150: Specify PDC map 2022-04-18 01:09:42 +02:00
pinctrl-sm8250-lpass-lpi.c pinctrl: qcom: Extract chip specific LPASS LPI code 2022-04-23 00:04:43 +02:00
pinctrl-sm8250.c pinctrl: qcom: sm8250: Fix PDC map 2022-08-03 20:20:56 +02:00
pinctrl-sm8350.c pinctrl: qcom: sm8350: Correct UFS and SDC offsets 2021-11-16 02:19:15 +01:00
pinctrl-sm8450-lpass-lpi.c pinctrl: qcom: sm8450-lpass-lpi: correct swr_rx_data group 2023-02-14 19:11:52 +01:00
pinctrl-sm8450.c pinctrl: qcom: sm8450: Add egpio support 2022-02-19 01:53:55 +01:00
pinctrl-spmi-gpio.c pinctrl: qcom: spmi-gpio: drop broken pm8008 support 2024-07-05 09:31:52 +02:00
pinctrl-spmi-mpp.c pinctrl: qcom: spmi-mpp: Add PM8226 compatible 2022-02-11 01:08:06 +01:00
pinctrl-ssbi-gpio.c pinctrl: Get rid of duplicate of_node assignment in the drivers 2021-12-16 04:18:30 +01:00
pinctrl-ssbi-mpp.c pinctrl: Get rid of duplicate of_node assignment in the drivers 2021-12-16 04:18:30 +01:00