Skip to contentSkip to conversation

Hid: Intel-thc-hid: Intel-quickspi: switch first interrupt from level to edge detection

PATCH Applied Even Xu 2 participants 4 messages Sep 19, 2025 – Oct 15, 2025

Subsystems (2)
lore
Share & tools
lore

Even Xu

author maintainer
#0 lore raw

PATCH 1/1 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")
---
 drivers/hid/intel-thc-hid/intel-quickspi/quickspi-protocol.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-protocol.c +1 -2
index e6ba2ddcc9cb..16f780bc879b 100644
@@ -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)
Signature · 1 line
2.40.1
author maintainer
#1 lore raw

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

Quoted 48 lines

-----Original Message-----
From: Xu, Even <[email protected]>
Sent: Friday, September 19, 2025 3:10 PM
To: [email protected]; [email protected]; [email protected]
Cc: [email protected]; [email protected]; Xu, Even <[email protected]>; Zhang, Rui1 <[email protected]>
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")

---
 drivers/hid/intel-thc-hid/intel-quickspi/quickspi-protocol.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/hid/intel-thc-hid/intel-quickspi/quickspi-protocol.c +1 -3
index e6ba2ddcc9cb..16f780bc879b 100644
@@ -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

maintainer Applied
#2 lore raw
In reply to Even Xu
Quoted 11 lines · Even Xu

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.

Quoted 6 lines

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")

Applied to hid.git#for-6.18/upstream-fixes, thanks.

Signature · 2 lines
Jiri Kosina
SUSE Labs
author maintainer
#3 lore raw

Thanks Jiri!

Best Regards,
Even Xu

Quoted 37 lines

-----Original Message-----
From: Jiri Kosina <[email protected]>
Sent: Tuesday, October 14, 2025 5:29 PM
To: Xu, Even <[email protected]>
Cc: [email protected]; [email protected]; linux- [email protected]; [email protected]; Zhang, Rui1 <[email protected]>
Subject: Re: [PATCH] Hid: Intel-thc-hid: Intel-quickspi: switch first interrupt from level to edge detection

Quoted 12 lines · Even Xu

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.

Quoted 7 lines

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")

Applied to hid.git#for-6.18/upstream-fixes, thanks.

--
Jiri Kosina
SUSE Labs