diff options
author | Frank Praznik <frank.praznik@gmail.com> | 2016-09-23 00:18:08 (GMT) |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2016-09-26 13:32:47 (GMT) |
commit | 0f3982308b5fc7373c8d4e6dcfc8a02ee5a3408d (patch) | |
tree | 42072fd692ed5f162db242a7e5f30e9ee45b76ca /kernel/livepatch | |
parent | 884316deb4c9fdf9becfa31831a9e40717e3026c (diff) | |
download | linux-0f3982308b5fc7373c8d4e6dcfc8a02ee5a3408d.tar.xz |
HID: sony: Relax duplicate checking for USB-only devices
Some USB-only devices which masquerade as Sixaxis controllers report the
same generic Bluetooth address for all hardware when queried via the HID
report. This causes these devices to be wrongly rejected as duplicates
when more than one is connected at once.
This introduces a connection type comparison when checking for duplicates
and only rejects the newly connected device if the existing matching
device is connected using a different connection protocol.
The results of the connection type comparison are also used when
registering power supply info as the device Bluetooth address is used
as the unique identifier string. In cases where more than one valid
device has the same Bluetooth address the device ID is now appended
to the power supply name string to avoid name collisions when
registering the power supply information.
Signed-off-by: Frank Praznik <frank.praznik@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'kernel/livepatch')
0 files changed, 0 insertions, 0 deletions