summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-09-06 19:43:53 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-09-06 19:43:53 +0000
commit73dc43decfde15cf3fd1623b39a5f8f4dfec4fc9 (patch)
tree61af67760353dd5e62a82d62e44e0f6d94a0cb56
parentd967737ff1ceb93f988b43bea88371562e5b3ed2 (diff)
parent203765113a7ea91c8f56e72651d124af91e39caa (diff)
downloadrotary-encoders-android-msm-eos-android13-wear-kr3-pixel-watch.tar.gz
Change-Id: Idf17f87d95556227fdf726c0c0b6c7a6ed21cfba
-rw-r--r--petc_input_filter/petc_input_filter.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/petc_input_filter/petc_input_filter.c b/petc_input_filter/petc_input_filter.c
index 5cb4611..584701a 100644
--- a/petc_input_filter/petc_input_filter.c
+++ b/petc_input_filter/petc_input_filter.c
@@ -373,6 +373,17 @@ static bool petc_if_match(struct input_handler *handler, struct input_dev *dev)
return false;
}
+ if (dev->id.bustype != 0) {
+ /* TODO: b/299198389
+ *
+ * We were matching a PnP device and filtering when we shouldn't have.
+ * This is a temporary workaround since the devices we do want are
+ * bustype 0. This should be cleaned up with device tree entries to be
+ * more robust and cleaner.
+ */
+ return false;
+ }
+
if (test_bit(EV_ABS, dev->evbit)) {
/* Don't match on a touch device */
return false;