[PATCH v2 00/13] HID: new driver for PS5 'DualSense' controller

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Roderick Colenbrander <roderick.colenbrander@xxxxxxxx>

Hi,

I would like to share an updated version of the hid-playstation driver.
This new revision is very similar to the original release, but with
various small changes and minor improvements. Thanks to everyone who
provided feedback through the mailing list or privately.

Changes since v1:
- Export ps_devices table using MODULE_DEVICE_TABLE.
- Uses 'width - 1' and 'height - 1' for touchpad ABS_MT_POSITION_X/Y.
- Uses 'sysfs_emit' instead of 'snprintf' in sysfs show functions.
- Switched to devm_device_add_group to manage attribute groups.
- Changed player LED lookup to use pointer calculations instead of a loop.
- Added readonly mute set_brightness call to silence ENOTSUP.
- Lightbar is not dynamically allocated and now allocated as part of 'struct dualsense'
- Size checking on hid_hw_raw_request for calibration, firmware and mac addrees info.
- Replaced magic constants with defines e.g. for HID version or output report values.
- Minor code changes e.g. const changes.
- Uses container_of to retrieve 'struct ps_device' from 'struct dualsense'.
- Added an explicit module_init/module_exit to clean up the player IDA.

Thanks,

Roderick Colenbrander
Sony Interactive Entertainment, LLC

Roderick Colenbrander (13):
  HID: playstation: initial DualSense USB support.
  HID: playstation: use DualSense MAC address as unique identifier.
  HID: playstation: add DualSense battery support.
  HID: playstation: add DualSense touchpad support.
  HID: playstation: add DualSense accelerometer and gyroscope support.
  HID: playstation: track devices in list.
  HID: playstation: add DualSense Bluetooth support.
  HID: playstation: add DualSense classic rumble support.
  HID: playstation: add DualSense lightbar support
  HID: playstation: add microphone mute support for DualSense.
  HID: playstation: add DualSense player LEDs support.
  HID: playstation: DualSense set LEDs to default player id.
  HID: playstation: report DualSense hardware and firmware version.

 MAINTAINERS                   |    6 +
 drivers/hid/Kconfig           |   20 +
 drivers/hid/Makefile          |    1 +
 drivers/hid/hid-ids.h         |    1 +
 drivers/hid/hid-playstation.c | 1448 +++++++++++++++++++++++++++++++++
 drivers/hid/hid-quirks.c      |    4 +
 6 files changed, 1480 insertions(+)
 create mode 100644 drivers/hid/hid-playstation.c

-- 
2.26.2




[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux