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
Kconfig.msm
Makefile
pinctrl-apq8064.c
pinctrl-apq8084.c
pinctrl-ipq4019.c
pinctrl-ipq5018.c
pinctrl-ipq5332.c
pinctrl-ipq6018.c
pinctrl-ipq8064.c
pinctrl-ipq8074.c
pinctrl-ipq9574.c
pinctrl-lpass-lpi.c
pinctrl-lpass-lpi.h
pinctrl-mdm9607.c
pinctrl-mdm9615.c
pinctrl-msm.c
pinctrl-msm.h
pinctrl-msm8x74.c
pinctrl-msm8226.c
pinctrl-msm8660.c
pinctrl-msm8909.c
pinctrl-msm8916.c
pinctrl-msm8953.c
pinctrl-msm8960.c
pinctrl-msm8976.c
pinctrl-msm8994.c
pinctrl-msm8996.c
pinctrl-msm8998.c
pinctrl-qcm2290.c
pinctrl-qcs404.c
pinctrl-qdf2xxx.c
pinctrl-qdu1000.c
pinctrl-sa8775p.c
pinctrl-sc7180.c
pinctrl-sc7280-lpass-lpi.c
pinctrl-sc7280.c
pinctrl-sc8180x.c
pinctrl-sc8280xp-lpass-lpi.c
pinctrl-sc8280xp.c
pinctrl-sdm660.c
pinctrl-sdm670.c
pinctrl-sdm845.c
pinctrl-sdx55.c
pinctrl-sdx65.c
pinctrl-sdx75.c
pinctrl-sm4250-lpass-lpi.c
pinctrl-sm4450.c
pinctrl-sm6115-lpass-lpi.c
pinctrl-sm6115.c
pinctrl-sm6125.c
pinctrl-sm6350.c
pinctrl-sm6375.c
pinctrl-sm7150.c
pinctrl-sm8150.c
pinctrl-sm8250-lpass-lpi.c
pinctrl-sm8250.c
pinctrl-sm8350-lpass-lpi.c
pinctrl-sm8350.c
pinctrl-sm8450-lpass-lpi.c
pinctrl-sm8450.c
pinctrl-sm8550-lpass-lpi.c
pinctrl-sm8550.c
pinctrl-sm8650-lpass-lpi.c
pinctrl-sm8650.c
pinctrl-spmi-gpio.c
pinctrl-spmi-mpp.c
pinctrl-ssbi-gpio.c
pinctrl-ssbi-mpp.c
pinctrl-x1e80100.c pinctrl: qcom: x1e80100: Bypass PDC wakeup parent for now 2024-09-02 11:07:48 +02:00