git: ec86cee5db72 - stable/13 - evdev: Do not check maximal contact number for MT initialization

Vladimir Kondratyev wulf at FreeBSD.org
Mon Aug 23 22:26:14 UTC 2021


The branch stable/13 has been updated by wulf:

URL: https://cgit.FreeBSD.org/src/commit/?id=ec86cee5db72c906ad47ac8e33ffb4bbd9bbf15a

commit ec86cee5db72c906ad47ac8e33ffb4bbd9bbf15a
Author:     Vladimir Kondratyev <wulf at FreeBSD.org>
AuthorDate: 2021-08-16 20:12:01 +0000
Commit:     Vladimir Kondratyev <wulf at FreeBSD.org>
CommitDate: 2021-08-23 22:20:06 +0000

    evdev: Do not check maximal contact number for MT initialization
    
    This allows singletouch devices which use multitouch protocols to work.
    
    Reported by:    Mark Kane <mark_AT_kane_DOT_mn>
    
    (cherry picked from commit e40fec4ec9a7a6625b3e332d4f856eb1d05f0def)
---
 sys/dev/evdev/evdev.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/dev/evdev/evdev.c b/sys/dev/evdev/evdev.c
index 086ee36333dc..bc28ae0734f9 100644
--- a/sys/dev/evdev/evdev.c
+++ b/sys/dev/evdev/evdev.c
@@ -316,8 +316,7 @@ evdev_register_common(struct evdev_dev *evdev)
 	}
 
 	/* Initialize multitouch protocol type B states */
-	if (bit_test(evdev->ev_abs_flags, ABS_MT_SLOT) &&
-	    evdev->ev_absinfo != NULL && MAXIMAL_MT_SLOT(evdev) > 0)
+	if (bit_test(evdev->ev_abs_flags, ABS_MT_SLOT))
 		evdev_mt_init(evdev);
 
 	/* Estimate maximum report size */


More information about the dev-commits-src-branches mailing list