Input: iforce - only call iforce_process_packet() if initialized
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 10 Aug 2018 17:34:13 +0000 (10:34 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 23 Jun 2019 06:55:23 +0000 (23:55 -0700)
commit633354d1910262f2a3262797572ff72da461379e
treea52c034c247eb1efd754a0546a7995157a119f65
parent2880dcf9cfc28a3803aee4c964743adbb66b0f1a
Input: iforce - only call iforce_process_packet() if initialized

It is excessive to check if device is fully initialized in
iforce_process_packet(), as for USB-conected devices we do not start
collecting reports until the device is fully initialized.

Let's change serio transport code to not call iforce_process_packet()
until device initialization is done.

Tested-by: Tim Schumacher <timschumi@gmx.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/iforce/iforce-packets.c
drivers/input/joystick/iforce/iforce-serio.c