linux/drivers/pinctrl/qcom
Stephan Gerhold 602cb14e31 pinctrl: qcom: x1e80100: Bypass PDC wakeup parent for now
On X1E80100, GPIO interrupts for wakeup-capable pins have been broken since
the introduction of the pinctrl driver. This prevents keyboard and touchpad
from working on most of the X1E laptops. So far we have worked around this
by manually building a kernel with the "wakeup-parent" removed from the
pinctrl node in the device tree, but we cannot expect all users to do that.

Implement a similar workaround in the driver by clearing the wakeirq_map
for X1E80100. This avoids using the PDC wakeup parent for all GPIOs
and handles the interrupts directly in the pinctrl driver instead.

The PDC driver needs additional changes to support X1E80100 properly.
Adding a workaround separately first allows to land the necessary PDC
changes through the normal release cycle, while still solving the more
critical problem with keyboard and touchpad on the current stable kernel
versions. Bypassing the PDC is enough for now, because we have not yet
enabled the deep idle states where using the PDC becomes necessary.

Cc: stable@vger.kernel.org
Fixes: 05e4941d97 ("pinctrl: qcom: Add X1E80100 pinctrl driver")
Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
Reviewed-by: Johan Hovold <johan+linaro@kernel.org>
Tested-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Konrad Dybcio <konradybcio@kernel.org>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
Link: https://lore.kernel.org/20240830-x1e80100-bypass-pdc-v1-1-d4c00be0c3e3@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2024-09-02 11:07:48 +02:00
..
Kconfig pinctrl: qcom: Introduce SM4250 LPI pinctrl driver 2024-06-26 12:41:07 +02:00
Kconfig.msm pinctrl: qcom: sm4450: dd SM4450 pinctrl driver 2023-12-20 12:03:03 +01:00
Makefile pinctrl: qcom: Introduce SM4250 LPI pinctrl driver 2024-06-26 12:41:07 +02:00
pinctrl-apq8064.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-apq8084.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-ipq4019.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-ipq5018.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-ipq5332.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-ipq6018.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-ipq8064.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-ipq8074.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-ipq9574.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-lpass-lpi.c pinctrl: qcom: lpass-lpi: increase MAX_NR_GPIO to 32 2024-07-03 14:31:09 +02:00
pinctrl-lpass-lpi.h pinctrl: qcom: lpass-lpi: Remove unused member in struct lpi_pingroup 2023-12-01 14:59:53 +01:00
pinctrl-mdm9607.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-mdm9615.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8x74.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8226.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8660.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8909.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8916.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8953.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8960.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8976.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8994.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8996.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm8998.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-msm.c pinctrl: qcom: fail to retrieve configuration from invalid pin groups 2023-12-04 15:32:42 +01:00
pinctrl-msm.h pinctrl: qcom: handle intr_target_reg wakeup_present/enable bits 2023-11-13 15:01:37 +01:00
pinctrl-qcm2290.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-qcs404.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-qdf2xxx.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-qdu1000.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sa8775p.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sc7180.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sc7280-lpass-lpi.c pinctrl: qcom: lpass-lpi: Remove unused member in struct lpi_pingroup 2023-12-01 14:59:53 +01:00
pinctrl-sc7280.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sc8180x.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sc8280xp-lpass-lpi.c pinctrl: qcom: lpass-lpi: Remove unused member in struct lpi_pingroup 2023-12-01 14:59:53 +01:00
pinctrl-sc8280xp.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sdm660.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sdm670.c pinctrl: qcom: sdm670: add pdc wakeirq map 2024-06-17 09:25:45 +02:00
pinctrl-sdm845.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sdx55.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sdx65.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sdx75.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm4250-lpass-lpi.c pinctrl: qcom: Introduce SM4250 LPI pinctrl driver 2024-06-26 12:41:07 +02:00
pinctrl-sm4450.c pinctrl: qcom: sm4450: dd SM4450 pinctrl driver 2023-12-20 12:03:03 +01:00
pinctrl-sm6115-lpass-lpi.c pinctrl: qcom: lpass-lpi: Remove unused member in struct lpi_pingroup 2023-12-01 14:59:53 +01:00
pinctrl-sm6115.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm6125.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm6350.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm6375.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm7150.c pinctrl: qcom: pinctrl-sm7150: Fix sdc1 and ufs special pins regs 2024-05-03 09:55:04 +02:00
pinctrl-sm8150.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm8250-lpass-lpi.c pinctrl: qcom: lpass-lpi: Remove unused member in struct lpi_pingroup 2023-12-01 14:59:53 +01:00
pinctrl-sm8250.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm8350-lpass-lpi.c pinctrl: qcom: lpass-lpi: Remove unused member in struct lpi_pingroup 2023-12-01 14:59:53 +01:00
pinctrl-sm8350.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm8450-lpass-lpi.c pinctrl: qcom: lpass-lpi: Remove unused member in struct lpi_pingroup 2023-12-01 14:59:53 +01:00
pinctrl-sm8450.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm8550-lpass-lpi.c pinctrl: qcom: lpass-lpi: Remove unused member in struct lpi_pingroup 2023-12-01 14:59:53 +01:00
pinctrl-sm8550.c pinctrl: qcom/msm: Convert to platform remove callback returning void 2023-10-10 15:47:49 +02:00
pinctrl-sm8650-lpass-lpi.c pinctrl: qcom: lpass-lpi: Remove unused member in struct lpi_pingroup 2023-12-01 14:59:53 +01:00
pinctrl-sm8650.c pinctrl: qcom: Introduce the SM8650 Top Level Mode Multiplexer driver 2023-11-13 15:05:13 +01:00
pinctrl-spmi-gpio.c Pin control bulk changes for the v6.11 kernel series: 2024-07-21 10:25:59 -07:00
pinctrl-spmi-mpp.c pinctrl: qcom: spmi-mpp: Convert to platform remove callback returning void 2023-10-10 15:43:03 +02:00
pinctrl-ssbi-gpio.c pinctrl: qcom: ssbi-gpio: Convert to platform remove callback returning void 2023-10-10 15:43:31 +02:00
pinctrl-ssbi-mpp.c pinctrl: qcom: ssbi-mpp: Convert to platform remove callback returning void 2023-10-10 15:43:56 +02:00
pinctrl-x1e80100.c pinctrl: qcom: x1e80100: Bypass PDC wakeup parent for now 2024-09-02 11:07:48 +02:00