Skip to content
This repository was archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
BACKPORT: HID: playstation: Add device ids to hid_have_special_driver…
Browse files Browse the repository at this point in the history
… list

On 4.9 and 4.14 kernel we need to put the hid device ids to
hid_have_special_driver list, to instruct kernel to use special driver
rather than hid-generic.
Fixed the incorrect kernel device type on 4.9 kernel and 4.14 kernel.

Bug: 185139160
Change-Id: Ie3470e8b3d2c188546cb369a68127651288a0fee
Signed-off-by: Chris Ye <[email protected]>
Git-repo: https://source.codeaurora.org/quic/la/kernel/msm-4.14/commit/?h=msm-4.14
Git-commit: c6d7ce07e46857d9a58b31f9ad2265adb74b927c
Signed-off-by: Swetha Chikkaboraiah <[email protected]>
  • Loading branch information
lzye authored and Gerrit - the friendly Code Review server committed Aug 16, 2021
1 parent 52da8dc commit eaaf36a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/hid/hid-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2320,6 +2320,12 @@ static const struct hid_device_id hid_have_special_driver[] = {
#if IS_ENABLED(CONFIG_HID_PLANTRONICS)
{ HID_USB_DEVICE(USB_VENDOR_ID_PLANTRONICS, HID_ANY_ID) },
#endif
#if IS_ENABLED(CONFIG_HID_PLAYSTATION)
{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_SONY,
USB_DEVICE_ID_SONY_PS5_CONTROLLER) },
{ HID_USB_DEVICE(USB_VENDOR_ID_SONY,
USB_DEVICE_ID_SONY_PS5_CONTROLLER) },
#endif
#if IS_ENABLED(CONFIG_HID_PRIMAX)
{ HID_USB_DEVICE(USB_VENDOR_ID_PRIMAX, USB_DEVICE_ID_PRIMAX_KEYBOARD) },
#endif
Expand Down

0 comments on commit eaaf36a

Please sign in to comment.