• Frank Praznik's avatar
    HID: sony: Relax duplicate checking for USB-only devices · 0f398230
    Frank Praznik authored
    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: default avatarFrank Praznik <frank.praznik@gmail.com>
    Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
    0f398230
hid-sony.c 95 KB