]> git.baikalelectronics.ru Git - kernel.git/commit
HID: sony: Ignore DS4 dongle reports when no device is connected
authorRoderick Colenbrander <roderick.colenbrander@sony.com>
Fri, 9 Dec 2016 03:09:52 +0000 (19:09 -0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 19 Dec 2016 14:07:37 +0000 (15:07 +0100)
commit5d59dea3362da441d1cb88d76cca9a29cbbfaf5c
tree9a5869dd32a4feef8e5d8ca2451ba3454a6f127f
parentfcaada2420860d832d4832fa4c8aec158236f224
HID: sony: Ignore DS4 dongle reports when no device is connected

When the DS4 dongle is connected, it always generates HID reports
even when no DS4 is paired to it. This patch adds logic to ignore
HID reports from the dongle if there is no DS4 currently attached.

Signed-off-by: Roderick Colenbrander <roderick.colenbrander@sony.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-sony.c