RE: [PATCH] Hid: Intel-thc-hid: Intel-quickspi: switch first interrupt from level to edge detection
From: Xu, Even
Date: Fri Oct 10 2025 - 01:54:58 EST
Hi, Jiri,
This patch was in review list for 3 weeks without any review comments, would you help merge it?
Thanks!
Best Regards,
Even Xu
> -----Original Message-----
> From: Xu, Even <even.xu@xxxxxxxxx>
> Sent: Friday, September 19, 2025 3:10 PM
> To: jikos@xxxxxxxxxx; bentiss@xxxxxxxxxx; srinivas.pandruvada@xxxxxxxxxxxxxxx
> Cc: linux-input@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx; Xu, Even
> <even.xu@xxxxxxxxx>; Zhang, Rui1 <rui1.zhang@xxxxxxxxx>
> Subject: [PATCH] Hid: Intel-thc-hid: Intel-quickspi: switch first interrupt from level
> to edge detection
>
> The original implementation used level detection for the first interrupt after
> device reset to avoid potential interrupt line noise and missed interrupts during
> the initialization phase. However, this approach introduced unintended side
> effects when tested with certain touch panels,
> including:
> - Delayed hardware interrupt response
> - Multiple spurious interrupt triggers
>
> Switching back to edge detection for the first interrupt resolves these issues while
> maintaining reliable interrupt handling.
>
> Extensive testing across multiple platforms with touch panels from various
> vendors confirms this change introduces no regressions.
>
> Fixes: 9d8d51735a3a ("HID: intel-thc-hid: intel-quickspi: Add HIDSPI protocol
> implementation")
> Tested-by: Rui Zhang <rui1.zhang@xxxxxxxxx>
> Signed-off-by: Even Xu <even.xu@xxxxxxxxx>
> ---
> drivers/hid/intel-thc-hid/intel-quickspi/quickspi-protocol.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/hid/intel-thc-hid/intel-quickspi/quickspi-protocol.c
> b/drivers/hid/intel-thc-hid/intel-quickspi/quickspi-protocol.c
> index e6ba2ddcc9cb..16f780bc879b 100644
> --- a/drivers/hid/intel-thc-hid/intel-quickspi/quickspi-protocol.c
> +++ b/drivers/hid/intel-thc-hid/intel-quickspi/quickspi-protocol.c
> @@ -280,8 +280,7 @@ int reset_tic(struct quickspi_device *qsdev)
>
> qsdev->reset_ack = false;
>
> - /* First interrupt uses level trigger to avoid missing interrupt */
> - thc_int_trigger_type_select(qsdev->thc_hw, false);
> + thc_int_trigger_type_select(qsdev->thc_hw, true);
>
> ret = acpi_tic_reset(qsdev);
> if (ret)
> --
> 2.40.1