]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Input: bcm5974 - recover from failed mode switch
authorLiam Mitchell <mitchell.liam@gmail.com>
Wed, 18 Feb 2026 22:21:35 +0000 (14:21 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 18 Feb 2026 22:45:03 +0000 (14:45 -0800)
commitfc1e8a6f129d87c64ac8e58b50d9dfa66217cfda
treefe2965f67a17000159be9e2632af831add79f0af
parent273a171dee33cb77070d7259c469d9440548c7df
Input: bcm5974 - recover from failed mode switch

Mode switches sent before control response are ignored. This results in
an unresponsive trackpad and "bcm5974: bad trackpad package, length: 8"
repeated in logs.

On receiving unknown 8-byte packets, assume that mode switch was ignored
and schedule an asynchronous mode reset. The reset will switch the
device to normal mode, wait, then switch back to wellspring mode.

Signed-off-by: Liam Mitchell <mitchell.liam@gmail.com>
Link: https://lore.kernel.org/linux-input/CAOQ1CL4+DP1TuLAGNsz5GdFBTHvnTg=5q=Dr2Z1OQc6RXydSYA@mail.gmail.com/
Acked-by: Henrik Rydberg <rydberg@bitmath.org>
Link: https://patch.msgid.link/20260213-bcm5974-reset-v2-1-1837851336b0@gmail.com
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/bcm5974.c