]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Tue, 4 Feb 2020 09:18:39 +0000 (09:18 +0000)
commit74ed803bbecfb3e9dd8402ec16f3f56bf2b5f52c
tree914e059a7e9c7b7a809338f69e44ea87b699b3d3
parentc7f409a75101200d24514b92179415513a469eef
HID: steam: Fix input device disappearing

BugLink: https://bugs.launchpad.net/bugs/1861784
[ 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>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/hid/hid-steam.c