* [PATCH] Hid: Intel-thc-hid: Intel-quickspi: switch first interrupt from level to edge detection
@ 2025-09-19 7:09 Even Xu
2025-10-10 5:54 ` Xu, Even
2025-10-14 9:29 ` Jiri Kosina
0 siblings, 2 replies; 4+ messages in thread
From: Even Xu @ 2025-09-19 7:09 UTC (permalink / raw)
To: jikos, bentiss, srinivas.pandruvada
Cc: linux-input, linux-kernel, Even Xu, Rui Zhang
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@intel.com>
Signed-off-by: Even Xu <even.xu@intel.com>
---
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] Hid: Intel-thc-hid: Intel-quickspi: switch first interrupt from level to edge detection
2025-09-19 7:09 [PATCH] Hid: Intel-thc-hid: Intel-quickspi: switch first interrupt from level to edge detection Even Xu
@ 2025-10-10 5:54 ` Xu, Even
2025-10-14 9:29 ` Jiri Kosina
1 sibling, 0 replies; 4+ messages in thread
From: Xu, Even @ 2025-10-10 5:54 UTC (permalink / raw)
To: jikos, bentiss, srinivas.pandruvada
Cc: linux-input, linux-kernel, Zhang, Rui1
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@intel.com>
> Sent: Friday, September 19, 2025 3:10 PM
> To: jikos@kernel.org; bentiss@kernel.org; srinivas.pandruvada@linux.intel.com
> Cc: linux-input@vger.kernel.org; linux-kernel@vger.kernel.org; Xu, Even
> <even.xu@intel.com>; Zhang, Rui1 <rui1.zhang@intel.com>
> 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@intel.com>
> Signed-off-by: Even Xu <even.xu@intel.com>
> ---
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Hid: Intel-thc-hid: Intel-quickspi: switch first interrupt from level to edge detection
2025-09-19 7:09 [PATCH] Hid: Intel-thc-hid: Intel-quickspi: switch first interrupt from level to edge detection Even Xu
2025-10-10 5:54 ` Xu, Even
@ 2025-10-14 9:29 ` Jiri Kosina
2025-10-15 0:26 ` Xu, Even
1 sibling, 1 reply; 4+ messages in thread
From: Jiri Kosina @ 2025-10-14 9:29 UTC (permalink / raw)
To: Even Xu
Cc: bentiss, srinivas.pandruvada, linux-input, linux-kernel, Rui Zhang
On Fri, 19 Sep 2025, Even Xu wrote:
> 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@intel.com>
> Signed-off-by: Even Xu <even.xu@intel.com>
Applied to hid.git#for-6.18/upstream-fixes, thanks.
--
Jiri Kosina
SUSE Labs
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] Hid: Intel-thc-hid: Intel-quickspi: switch first interrupt from level to edge detection
2025-10-14 9:29 ` Jiri Kosina
@ 2025-10-15 0:26 ` Xu, Even
0 siblings, 0 replies; 4+ messages in thread
From: Xu, Even @ 2025-10-15 0:26 UTC (permalink / raw)
To: Jiri Kosina
Cc: bentiss, srinivas.pandruvada, linux-input, linux-kernel, Zhang, Rui1
Thanks Jiri!
Best Regards,
Even Xu
> -----Original Message-----
> From: Jiri Kosina <jikos@kernel.org>
> Sent: Tuesday, October 14, 2025 5:29 PM
> To: Xu, Even <even.xu@intel.com>
> Cc: bentiss@kernel.org; srinivas.pandruvada@linux.intel.com; linux-
> input@vger.kernel.org; linux-kernel@vger.kernel.org; Zhang, Rui1
> <rui1.zhang@intel.com>
> Subject: Re: [PATCH] Hid: Intel-thc-hid: Intel-quickspi: switch first interrupt from
> level to edge detection
>
> On Fri, 19 Sep 2025, Even Xu wrote:
>
> > 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@intel.com>
> > Signed-off-by: Even Xu <even.xu@intel.com>
>
> Applied to hid.git#for-6.18/upstream-fixes, thanks.
>
> --
> Jiri Kosina
> SUSE Labs
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-10-15 0:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-19 7:09 [PATCH] Hid: Intel-thc-hid: Intel-quickspi: switch first interrupt from level to edge detection Even Xu
2025-10-10 5:54 ` Xu, Even
2025-10-14 9:29 ` Jiri Kosina
2025-10-15 0:26 ` Xu, Even
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®