diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-09-06 19:43:53 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-09-06 19:43:53 +0000 |
commit | 73dc43decfde15cf3fd1623b39a5f8f4dfec4fc9 (patch) | |
tree | 61af67760353dd5e62a82d62e44e0f6d94a0cb56 | |
parent | d967737ff1ceb93f988b43bea88371562e5b3ed2 (diff) | |
parent | 203765113a7ea91c8f56e72651d124af91e39caa (diff) | |
download | rotary-encoders-android-msm-eos-android13-wear-kr3-pixel-watch.tar.gz |
Merge cherrypicks of ['partner-android-review.googlesource.com/2609338'] into android13-msm-pixelwatch-5.15-eos-release.android-wear-13.0.0_r0.8android-wear-13.0.0_r0.6android-wear-13.0.0_r0.4android-wear-13.0.0_r0.14android-wear-13.0.0_r0.12android-wear-13.0.0_r0.10android-msm-eos-android13-wear-kr3-pixel-watchandroid-msm-eos-5.15-tm-wear-kr3-pixel-watch
Change-Id: Idf17f87d95556227fdf726c0c0b6c7a6ed21cfba
-rw-r--r-- | petc_input_filter/petc_input_filter.c | 11 |
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; |