Input: xpad - query wireless controller state at init
authorPavel Rojtberg <rojtberg@gmail.com>
Sat, 10 Oct 2015 16:36:17 +0000 (09:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Dec 2018 08:48:01 +0000 (09:48 +0100)
commit80426963a31247a59e3c1708c0c320ddc6153bc8
tree5e7204a8bedd409fda06c4603675dde90daba6d6
parent7e0f79ac79893d87906a8dc96a9255213dd32e05
Input: xpad - query wireless controller state at init

[ Upstream commit aba54876bb38dde81abead1ed1936eb04fa30ca9 ]

When we initialize the driver/device, we really don't know how many
controllers are connected.  So send a "query presence" command to the
base-station. (Command discovered by Zachary Lund)

Presence packet taken from:

https://github.com/computerquip/xpad5

Signed-off-by: Pavel Rojtberg <rojtberg@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/joystick/xpad.c