lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Sun,  8 Dec 2019 22:43:07 -0500
From:   Dave Wang <dave.wang@....com.tw>
To:     Linux-input@...r.kernel.org, Linux-kernel@...r.kernel.org,
        Dmitry.torokhov@...il.com
Cc:     phoenix@....com.tw, josh.chen@....com.tw, jingle.wu@....com.tw,
        kai.heng.feng@...onical.com, "Dave.Wang" <dave.wang@....com.tw>
Subject: [PATCH 6/6] Input: elantech - Add the flag which will also use host notify

From: "Dave.Wang" <dave.wang@....com.tw>

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

Signed-off-by: Dave Wang <dave.wang@....com.tw>
---
 drivers/input/mouse/elantech.c | 1 +
 drivers/input/mouse/elantech.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c
index 0392b668cd39..3422710f4100 100644
--- a/drivers/input/mouse/elantech.c
+++ b/drivers/input/mouse/elantech.c
@@ -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,
diff --git a/drivers/input/mouse/elantech.h b/drivers/input/mouse/elantech.h
index a633ffa0eb07..3b35ebb56607 100644
--- a/drivers/input/mouse/elantech.h
+++ b/drivers/input/mouse/elantech.h
@@ -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.
-- 
2.17.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ