Skip to content

HID: sony: various DS4 improvements

Roderick Colenbrander linux-input 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3HID: sony: Report more accurate DS4 power status.drivers/hid/hid-sony.c+50 -350 replies
2/3HID: sony: Workaround for DS4 dongle hotplug kernel crash.drivers/hid/hid-sony.c+28 -60 replies
3/3HID: sony: Don't use fw_version/hw_version for sysfs cleanup.drivers/hid/hid-sony.c+8 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] HID: sony: various DS4 improvements

From: Roderick Colenbrander <[email protected]>

Hi,

This patch series provides a number of independent DS4 driver improvements.

The first patch improves DS4 battery level and battery status reporting. The current implementation interpreted the value ranges and status levels incorrectly.

The second patch fixes a DS4 dongle kernel crash (bug 206785). The specific problem is related to Steam, which implements its own user-space DS4 driver using hidraw. It collides during DS4 dongle hotplug, causing 'out of order HID feature reports'. The driver didn't expect this and this led to a kernel crash later on due to interpreting data incorrectly. The workaround is checking if the right data was returned and retrying. Though, I really really dislike this type of fix. Long-term some solution is needed to perhaps prevent hidraw and evdev drivers to step on each other's toes. For now this fixes the current problem.

The last patch fixes sysfs cleanup issues encountered using the DS4 dongle.

Thanks,
Roderick

Roderick Colenbrander (3):
HID: sony: Report more accurate DS4 power status.
HID: sony: Workaround for DS4 dongle hotplug kernel crash.
HID: sony: Don't use fw_version/hw_version for sysfs cleanup.

 drivers/hid/hid-sony.c | 135 ++++++++++++++++++++++++++---------------
 1 file changed, 86 insertions(+), 49 deletions(-)
Signature · 1 line
2.26.2