summary refs log tree commit diff
path: root/drivers/ide/ide-lib.c
diff options
context:
space:
mode:
authorFrank Praznik <frank.praznik@gmail.com>2016-09-22 20:18:08 -0400
committerJiri Kosina <jkosina@suse.cz>2016-09-26 15:32:47 +0200
commit0f3982308b5fc7373c8d4e6dcfc8a02ee5a3408d (patch)
tree42072fd692ed5f162db242a7e5f30e9ee45b76ca /drivers/ide/ide-lib.c
parent884316deb4c9fdf9becfa31831a9e40717e3026c (diff)
downloadlinux-0f3982308b5fc7373c8d4e6dcfc8a02ee5a3408d.tar.gz
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 'drivers/ide/ide-lib.c')
0 files changed, 0 insertions, 0 deletions