HID: steam: Fix input device disappearing
authorRodrigo Rivas Costa <rodrigorivascosta@gmail.com>
Tue, 7 Jan 2020 19:48:13 +0000 (20:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Feb 2020 09:37:09 +0000 (09:37 +0000)
commite8d49deb45fef98296d3c162b7fc9b544b3877a4
tree5074d69086951c9282d5118baa4504e8bb5dcc84
parent284cd2ab3c358dbcec1332eba11640741e3d8058
HID: steam: Fix input device disappearing

[ Upstream commit 20eee6e5af35d9586774e80b6e0b1850e7cc9899 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-steam.c