Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102777362
D28502.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D28502.diff
View Options
diff --git a/sys/dev/atkbdc/psm.c b/sys/dev/atkbdc/psm.c
--- a/sys/dev/atkbdc/psm.c
+++ b/sys/dev/atkbdc/psm.c
@@ -466,6 +466,7 @@
int muxtpbuttons; /* Touchpad button state */
int muxmsbuttons; /* Mouse (trackpoint) button state */
struct timeval muxmidtimeout; /* middle button supression timeout */
+ int muxsinglesyna; /* Probe result of single Synaptics */
#ifdef EVDEV_SUPPORT
struct evdev_dev *evdev_a; /* Absolute reporting device */
struct evdev_dev *evdev_r; /* Relative reporting device */
@@ -666,6 +667,7 @@
static probefunc_t enable_mmanplus;
static probefunc_t enable_synaptics;
static probefunc_t enable_synaptics_mux;
+static probefunc_t enable_single_synaptics_mux;
static probefunc_t enable_trackpoint;
static probefunc_t enable_versapad;
static probefunc_t enable_elantech;
@@ -686,8 +688,10 @@
* WARNING: the order of probe is very important. Don't mess it
* unless you know what you are doing.
*/
- { MOUSE_MODEL_SYNAPTICS, /* Synaptics Touchpad on Active Mux */
+ { MOUSE_MODEL_SYNAPTICS, /* Synaptics + mouse on Active Mux */
0x00, MOUSE_PS2_PACKETSIZE, enable_synaptics_mux },
+ { MOUSE_MODEL_SYNAPTICS, /* Single Synaptics on Active Mux */
+ 0xc0, MOUSE_SYNAPTICS_PACKETSIZE, enable_single_synaptics_mux },
{ MOUSE_MODEL_NET, /* Genius NetMouse */
0x08, MOUSE_PS2INTELLI_PACKETSIZE, enable_gmouse },
{ MOUSE_MODEL_NETSCROLL, /* Genius NetScroll */
@@ -6292,6 +6296,8 @@
int active_ports_count = 0;
int active_ports_mask = 0;
+ sc->muxsinglesyna = FALSE;
+
if (mux_disabled == 1 || (mux_disabled == -1 &&
(kbdc->quirks & KBDC_QUIRK_DISABLE_MUX_PROBE) != 0))
return (FALSE);
@@ -6315,18 +6321,16 @@
active_ports_count);
/* psm has a special support for GenMouse + SynTouchpad combination */
- if (active_ports_count >= 2) {
- for (port = 0; port < KBDC_AUX_MUX_NUM_PORTS; port++) {
- if ((active_ports_mask & 1 << port) == 0)
- continue;
- VLOG(3, (LOG_DEBUG, "aux_mux: probe port %d\n", port));
- set_active_aux_mux_port(kbdc, port);
- probe = enable_synaptics(sc, arg);
- if (probe) {
- if (arg == PROBE)
- sc->muxport = port;
- break;
- }
+ for (port = 0; port < KBDC_AUX_MUX_NUM_PORTS; port++) {
+ if ((active_ports_mask & 1 << port) == 0)
+ continue;
+ VLOG(3, (LOG_DEBUG, "aux_mux: probe port %d\n", port));
+ set_active_aux_mux_port(kbdc, port);
+ probe = enable_synaptics(sc, arg);
+ if (probe) {
+ if (arg == PROBE)
+ sc->muxport = port;
+ break;
}
}
@@ -6348,7 +6352,17 @@
}
empty_both_buffers(kbdc, 10); /* remove stray data if any */
- return (probe);
+ /* Don't disable syncbit checks if Synaptics is only device on MUX */
+ if (active_ports_count == 1)
+ sc->muxsinglesyna = probe;
+ return (active_ports_count != 1 ? probe : FALSE);
+}
+
+static int
+enable_single_synaptics_mux(struct psm_softc *sc, enum probearg arg)
+{
+ /* Synaptics device is already initialized in enable_synaptics_mux */
+ return (sc->muxsinglesyna);
}
static int
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 1:15 AM (19 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14687929
Default Alt Text
D28502.diff (2 KB)
Attached To
Mode
D28502: PSM / Synaptics Touchpad detection fix
Attached
Detach File
Event Timeline
Log In to Comment