OpenCloudOS-Kernel/drivers/pinctrl/qcom
Johan Hovold c2a78811ff pinctrl: qcom: spmi-gpio: drop broken pm8008 support
commit 8da86499d4cd125a9561f9cd1de7fba99b0aecbf 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>
2024-07-05 09:33:54 +02:00
..
Kconfig pinctrl: qcom: Introduce SM6115 LPI pinctrl driver 2023-08-07 10:51:45 +02:00
Kconfig.msm pinctrl: qcom: organize main SoC drivers in new Kconfig.msm 2023-06-09 09:10:13 +02:00
Makefile pinctrl: qcom: Introduce SM6115 LPI pinctrl driver 2023-08-07 10:51:45 +02:00
pinctrl-apq8064.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-apq8084.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-ipq4019.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-ipq5018.c pinctrl: qcom: Remove the unused _groups variable build warning 2023-08-07 11:01:31 +02:00
pinctrl-ipq5332.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-ipq6018.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-ipq8064.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-ipq8074.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-ipq9574.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-lpass-lpi.c pinctrl: qcom: lpass-lpi: fix concurrent register updates 2023-10-16 14:56:49 +02:00
pinctrl-lpass-lpi.h pinctrl: qcom: Add missing header(s) 2022-10-24 17:06:46 +03:00
pinctrl-mdm9607.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-mdm9615.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-msm.c pinctrl: qcom: Add intr_target_width field to support increased number of interrupt targets 2023-08-10 10:48:15 +02:00
pinctrl-msm.h pinctrl: qcom: Add intr_target_width field to support increased number of interrupt targets 2023-08-10 10:48:15 +02:00
pinctrl-msm8x74.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-msm8226.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-msm8660.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-msm8909.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-msm8916.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-msm8953.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-msm8960.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-msm8976.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-msm8994.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-msm8996.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-msm8998.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-qcm2290.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-qcs404.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-qdf2xxx.c pinctrl: qcom: qdf2xxx: drop ACPI_PTR 2023-06-09 09:05:08 +02:00
pinctrl-qdu1000.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-sa8775p.c pinctrl: qcom: Add intr_target_width field to support increased number of interrupt targets 2023-08-10 10:48:15 +02:00
pinctrl-sc7180.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +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: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-sc8180x.c pinctrl: qcom: sc8180x: gracefully handle missing IO memory resource 2023-05-16 15:25:57 +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: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-sdm660.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-sdm670.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-sdm845.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-sdx55.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-sdx65.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-sdx75.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-sm6115-lpass-lpi.c pinctrl: qcom: Introduce SM6115 LPI pinctrl driver 2023-08-07 10:51:45 +02:00
pinctrl-sm6115.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-sm6125.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-sm6350.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-sm6375.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-sm7150.c pinctrl: qcom: pinctrl-sm7150: Fix sdc1 and ufs special pins regs 2024-06-12 11:12:24 +02:00
pinctrl-sm8150.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-sm8250-lpass-lpi.c
pinctrl-sm8250.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-sm8350-lpass-lpi.c pinctrl: qcom: sm8350-lpass-lpi: add SM8350 LPASS TLMM 2023-07-24 21:07:04 +02:00
pinctrl-sm8350.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-sm8450-lpass-lpi.c pinctrl: qcom: sm8450-lpass-lpi: correct swr_rx_data group 2023-02-06 12:14:23 +01:00
pinctrl-sm8450.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-sm8550-lpass-lpi.c pinctrl: qcom: sm8550-lpass-lpi: allow GPIO function 2023-03-13 11:24:58 +01:00
pinctrl-sm8550.c pinctrl: qcom: Refactor generic qcom pinctrl driver 2023-05-16 15:03:37 +02:00
pinctrl-spmi-gpio.c pinctrl: qcom: spmi-gpio: drop broken pm8008 support 2024-07-05 09:33:54 +02:00
pinctrl-spmi-mpp.c pinctrl: qcom spmi-mpp: Convert to immutable irq_chip 2023-04-20 16:07:40 +02:00
pinctrl-ssbi-gpio.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-ssbi-mpp.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00