Commit 3e6b0bb
HID: logitech-hidpp: Stop IO before calling hid_connect()
hid_connect() will call hid_pidff_init() which does
hid_device_io_start() leading to an "io already started" warning.
To fix this call hid_device_io_stop() before calling hid_connect(),
stopping IO means that connect events may be lost while hid_connect()
runs, re-enable IO and move the hidpp_connect_event() work queuing
after the hid_connect().
Note re-enabling IO is also necessary for the g920_get_config()
call later during hidpp_probe().
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20231025190151.302376-1-hdegoede@redhat.com
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>1 parent 9ce363a commit 3e6b0bb
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4461 | 4461 | | |
4462 | 4462 | | |
4463 | 4463 | | |
4464 | | - | |
4465 | | - | |
4466 | | - | |
4467 | 4464 | | |
4468 | 4465 | | |
4469 | 4466 | | |
4470 | 4467 | | |
| 4468 | + | |
4471 | 4469 | | |
4472 | 4470 | | |
4473 | 4471 | | |
4474 | 4472 | | |
4475 | 4473 | | |
4476 | 4474 | | |
| 4475 | + | |
| 4476 | + | |
| 4477 | + | |
| 4478 | + | |
| 4479 | + | |
4477 | 4480 | | |
4478 | 4481 | | |
4479 | 4482 | | |
| |||
0 commit comments