Skip to content

Commit ba3a3c4

Browse files
Evenxfgregkh
authored andcommitted
HID: intel-thc-hid: Intel-quicki2c: Enhance driver re-install flow
[ Upstream commit afa17a0 ] After driver module is removed and during re-install stage, if there is continueous user touching on the screen, it is a risk impacting THC hardware initialization which causes driver installation failure. This patch enhances this flow by quiescing the external touch interrupt after driver is removed which keeps THC hardware ignore external interrupt during this remove and re-install stage. Signed-off-by: Even Xu <even.xu@intel.com> Tested-by: Rui Zhang <rui1.zhang@intel.com> Fixes: 66b59bf ("HID: intel-thc-hid: intel-quicki2c: Complete THC QuickI2C driver") Signed-off-by: Jiri Kosina <jkosina@suse.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 78d4cf0 commit ba3a3c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ static struct quicki2c_device *quicki2c_dev_init(struct pci_dev *pdev, void __io
406406
*/
407407
static void quicki2c_dev_deinit(struct quicki2c_device *qcdev)
408408
{
409+
thc_interrupt_quiesce(qcdev->thc_hw, true);
409410
thc_interrupt_enable(qcdev->thc_hw, false);
410411
thc_ltr_unconfig(qcdev->thc_hw);
411412

0 commit comments

Comments
 (0)