]> git.baikalelectronics.ru Git - kernel.git/commit
HID: steam: Fix input device disappearing
authorRodrigo Rivas Costa <rodrigorivascosta@gmail.com>
Tue, 7 Jan 2020 19:48:13 +0000 (20:48 +0100)
committerJiri Kosina <jkosina@suse.cz>
Thu, 9 Jan 2020 09:57:41 +0000 (10:57 +0100)
commit9e22ffd9c216de8f0e10c1d83b17d27dbfe14306
tree97cfd31af36d37f71151e82f2d84c7e6bafeafba
parent82904eda2874847ded8ca58d2160bc1d646cf6e3
HID: steam: Fix input device disappearing

The `connected` value for wired devices was not properly initialized,
it must be set to `true` upon creation, because wired devices do not
generate connection events.

When a raw client (the Steam Client) uses the device, the input device
is destroyed. Then, when the raw client finishes, it must be recreated.
But since the `connected` variable was false this never happended.

Signed-off-by: Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-steam.c