svn commit: r361715 - head/sys/dev/atkbdc

Vladimir Kondratyev wulf at FreeBSD.org
Tue Jun 2 00:53:40 UTC 2020


Author: wulf
Date: Tue Jun  2 00:53:39 2020
New Revision: 361715
URL: https://svnweb.freebsd.org/changeset/base/361715

Log:
  [psm] Do not disable trackpoint when hw.psm.elantech.touchpad_off is enabled
  
  PR:		246117
  Reported by:	Alexander Sieg <ports at xanderio.de>
  MFC after:	1 week

Modified:
  head/sys/dev/atkbdc/psm.c

Modified: head/sys/dev/atkbdc/psm.c
==============================================================================
--- head/sys/dev/atkbdc/psm.c	Tue Jun  2 00:49:13 2020	(r361714)
+++ head/sys/dev/atkbdc/psm.c	Tue Jun  2 00:53:39 2020	(r361715)
@@ -4441,7 +4441,7 @@ proc_elantech(struct psm_softc *sc, packetbuf_t *pb, m
 	*x = *y = *z = 0;
 	ms->button = ms->obutton;
 
-	if (sc->syninfo.touchpad_off)
+	if (sc->syninfo.touchpad_off && pkt != ELANTECH_PKT_TRACKPOINT)
 		return (0);
 
 	/* Common legend


More information about the svn-src-head mailing list