2024-06-05 16:18:30

by Krzysztof Kozlowski

[permalink] [raw]
Subject: [PATCH RFT 1/4] arm64: dts: qcom: sm6350-pdx213: correct touchscreen interrupt flags

Interrupt flags 0x2008 looks like some downstream copy-paste, because
generic GPIOLIB code, used by Qualcomm pin controller drivers, ignores
flags outside of IRQ_TYPE_SENSE_MASK. Probably the intention was to
pass just 0x8, so IRQ_TYPE_LEVEL_LOW.

Signed-off-by: Krzysztof Kozlowski <[email protected]>
---
arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts b/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts
index 88ee04973a2f..bf23033a294e 100644
--- a/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts
+++ b/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts
@@ -293,7 +293,7 @@ touchscreen@48 {
compatible = "samsung,s6sy761";
reg = <0x48>;
interrupt-parent = <&tlmm>;
- interrupts = <22 0x2008>;
+ interrupts = <22 IRQ_TYPE_LEVEL_LOW>;
vdd-supply = <&pm6350_l11>;
avdd-supply = <&touch_en_vreg>;

--
2.43.0



2024-06-06 10:18:51

by Konrad Dybcio

[permalink] [raw]
Subject: Re: [PATCH RFT 1/4] arm64: dts: qcom: sm6350-pdx213: correct touchscreen interrupt flags

On 5.06.2024 6:00 PM, Krzysztof Kozlowski wrote:
> Interrupt flags 0x2008 looks like some downstream copy-paste, because
> generic GPIOLIB code, used by Qualcomm pin controller drivers, ignores
> flags outside of IRQ_TYPE_SENSE_MASK. Probably the intention was to
> pass just 0x8, so IRQ_TYPE_LEVEL_LOW.
>
> Signed-off-by: Krzysztof Kozlowski <[email protected]>
> ---

Reviewed-by: Konrad Dybcio <[email protected]>

Konrad

2024-06-07 02:34:21

by Bjorn Andersson

[permalink] [raw]
Subject: Re: [PATCH RFT 1/4] arm64: dts: qcom: sm6350-pdx213: correct touchscreen interrupt flags


On Wed, 05 Jun 2024 18:00:29 +0200, Krzysztof Kozlowski wrote:
> Interrupt flags 0x2008 looks like some downstream copy-paste, because
> generic GPIOLIB code, used by Qualcomm pin controller drivers, ignores
> flags outside of IRQ_TYPE_SENSE_MASK. Probably the intention was to
> pass just 0x8, so IRQ_TYPE_LEVEL_LOW.
>
>

Applied, thanks!

[1/4] arm64: dts: qcom: sm6350-pdx213: correct touchscreen interrupt flags
commit: d044c0e36d095996f7b29a928e06c9475c4075e6
[2/4] arm64: dts: qcom: sm6375-pdx225: correct touchscreen interrupt flags
commit: fa2c8cad202195bfa87b18dc44ff4981d45085b4
[3/4] arm64: dts: qcom: sm8250-sony-xperia: correct touchscreen interrupt flags
commit: 46822d2750822dbe58bcd999cbedf24147cb5fc3
[4/4] arm64: dts: qcom: sm8450-sony-xperia: correct touchscreen interrupt flags
commit: 05d84f973d84d23e0a249ae5b3f6d7572fdc5e1e

Best regards,
--
Bjorn Andersson <[email protected]>