mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-15 17:43:59 +00:00
Input: psmouse - fix new device detection logic
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
7b7e394185
commit
89c9b4805a
@ -302,8 +302,10 @@ static irqreturn_t psmouse_interrupt(struct serio *serio,
|
||||
* Check if this is a new device announcement (0xAA 0x00)
|
||||
*/
|
||||
if (unlikely(psmouse->packet[0] == PSMOUSE_RET_BAT && psmouse->pktcnt <= 2)) {
|
||||
if (psmouse->pktcnt == 1)
|
||||
if (psmouse->pktcnt == 1) {
|
||||
psmouse->last = jiffies;
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (psmouse->packet[1] == PSMOUSE_RET_ID) {
|
||||
__psmouse_set_state(psmouse, PSMOUSE_IGNORE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user