From: "Dave.Wang" <dave.wang@emc.com.tw>
To: <Linux-kernel@vger.kernel.org>, <Linux-input@vger.kernel.org>,
"'Benjamin Tissoires'" <benjamin.tissoires@redhat.com>,
<Dmitry.torokhov@gmail.com>
Cc: "'Josh.Chen'" <josh.chen@emc.com.tw>, <jingle.wu@emc.com.tw>,
"'phoenix'" <phoenix@emc.com.tw>
Subject: [PATCH 6/6] Input: elantech - Add the flag which will also use host notify
Date: Fri, 6 Dec 2019 10:42:41 +0800 [thread overview]
Message-ID: <000e01d5abde$d4d8b900$7e8a2b00$@emc.com.tw> (raw)
Add the flag which will also use host notify technique in SMBus
interface.
Signed-off-by: Dave Wang <dave.wang@emc.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
next reply other threads:[~2019-12-06 2:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-06 2:42 Dave.Wang [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-12-09 3:43 [PATCH 6/6] Input: elantech - Add the flag which will also use host notify Dave Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000e01d5abde$d4d8b900$7e8a2b00$@emc.com.tw' \
--to=dave.wang@emc.com.tw \
--cc=Dmitry.torokhov@gmail.com \
--cc=Linux-input@vger.kernel.org \
--cc=Linux-kernel@vger.kernel.org \
--cc=benjamin.tissoires@redhat.com \
--cc=jingle.wu@emc.com.tw \
--cc=josh.chen@emc.com.tw \
--cc=phoenix@emc.com.tw \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox