summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;