Skip to contentSkip to conversation

Input: elantech - Add the flag which will also use host notify

PATCH New Dave.Wang 1 participant 1 message Dec 6, 2019

Subsystems (2)
lore
Share & tools
lore

Dave.Wang

author
#0 lore raw

PATCH 6/6 Input: elantech - Add the flag which will also use host notify

Add the flag which will also use host notify technique in SMBus interface.

---
 drivers/input/mouse/elantech.c | 1 +
 drivers/input/mouse/elantech.h | 1 +
 2 files changed, 2 insertions(+)
drivers/input/mouse/elantech.c +0 -0
index 0392b668cd39..3422710f4100 100644
@@ -2022,6 +2022,7 @@ static bool elantech_use_host_notify(struct psmouse

*psmouse,
case ETP_BUS_SMB_HST_NTFY_ONLY:
/* fall-through */
case ETP_BUS_PS2_SMB_HST_NTFY:
+ case ETP_BUS_AMD_SMB_ALERT:
return true;
default:
psmouse_dbg(psmouse,

drivers/input/mouse/elantech.h +1 -0
index a633ffa0eb07..3b35ebb56607 100644
@@ -115,6 +115,7 @@
 #define ETP_BUS_SMB_HST_NTFY_ONLY	2
 #define ETP_BUS_PS2_SMB_ALERT		3
 #define ETP_BUS_PS2_SMB_HST_NTFY	4
+#define ETP_BUS_AMD_SMB_ALERT		6
 
 /*
  * New ICs are either using SMBus Host Notify or just plain PS2.
Signature · 1 line
2.17.1