public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 00/12] HID: Upgrade the generic pidff driver and add hid-universal-pidff
@ 2025-01-19 13:12 Tomasz Pakuła
  2025-01-19 13:12 ` [PATCH v5 01/12] HID: pidff: Convert infinite length from Linux API to PID standard Tomasz Pakuła
                   ` (11 more replies)
  0 siblings, 12 replies; 20+ messages in thread
From: Tomasz Pakuła @ 2025-01-19 13:12 UTC (permalink / raw)
  To: jikos, bentiss; +Cc: anssi.hannula, linux-input, linux-usb

This patch series is focused on improving the compatibility and usability of the
hid-pidff force feedback driver. Last patch introduces a new, universal driver
for PID devices that need some special handling like report fixups, remapping the
button range, managing new pidff quirks and setting desirable fuzz/flat values.

This work has been done in the span of the past months with the help of the great
Linux simracing community, with a little input from sim flight fans from FFBeast.

No changes interfere with compliant and currently working PID devices.

I'm not married to the name. It's what we used previously, but if "universal" is
confusing (pidff is already the generic driver), we can come up with something
better like "hid-quirky-pidff" :)

---
Changes in v2:
- Fix typo in a comment
- Fix a possible null pointer dereference when calling hid_pidff_init_with_quirks
  especially when compiling with HID_PID=n
- Fix axis identifier when updating fuzz/flat for FFBeast Joystick
---
Changes in v3:
- Fixed a missed incompatible pointer type while assigning hid_pidff_init_with_quirks
  to init_function pointer (void -> int)
- Improved Kconfig entry name to adhere to the alphabetical order of special
  HID drivers
- Extended cover letter
---
Changes in v4:
- Added PXN devices and their hid ids
- Added hid-universal-pidff entry in the MAINTAINERS file
---
Changes in v5:
- Added PERIODIC_SINE_ONLY quirk

Tomasz Pakuła (12):
  HID: pidff: Convert infinite length from Linux API to PID standard
  HID: pidff: Do not send effect envelope if it's empty
  HID: pidff: Clamp PERIODIC effect period to device's logical range
  HID: pidff: Add MISSING_DELAY quirk and its detection
  HID: pidff: Add MISSING_PBO quirk and its detection
  HID: pidff: Add MISSING_DEVICE_CONTROL quirk
  HID: pidff: Add hid_pidff_init_with_quirks and export as GPL symbol
  HID: pidff: Add FIX_WHEEL_DIRECTION quirk
  HID: pidff: Stop all effects before enabling actuators
  HID: Add hid-universal-pidff driver and supported device ids
  MAINTAINERS: Add entry for hid-universal-pidff driver
  HID: pidff: Add PERIODIC_SINE_ONLY quirk

 MAINTAINERS                       |   6 +
 drivers/hid/Kconfig               |  14 +++
 drivers/hid/Makefile              |   1 +
 drivers/hid/hid-ids.h             |  29 +++++
 drivers/hid/hid-universal-pidff.c | 191 ++++++++++++++++++++++++++++
 drivers/hid/usbhid/hid-pidff.c    | 203 ++++++++++++++++++++++--------
 include/linux/hid.h               |   9 ++
 7 files changed, 404 insertions(+), 49 deletions(-)
 create mode 100644 drivers/hid/hid-universal-pidff.c

-- 
2.48.1


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2025-01-22  1:38 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-19 13:12 [PATCH v5 00/12] HID: Upgrade the generic pidff driver and add hid-universal-pidff Tomasz Pakuła
2025-01-19 13:12 ` [PATCH v5 01/12] HID: pidff: Convert infinite length from Linux API to PID standard Tomasz Pakuła
2025-01-19 13:12 ` [PATCH v5 02/12] HID: pidff: Do not send effect envelope if it's empty Tomasz Pakuła
2025-01-21  9:59   ` Oliver Neukum
2025-01-21 10:17     ` Tomasz Pakuła
2025-01-21 13:01       ` Oliver Neukum
2025-01-21 13:15         ` Tomasz Pakuła
2025-01-19 13:12 ` [PATCH v5 03/12] HID: pidff: Clamp PERIODIC effect period to device's logical range Tomasz Pakuła
2025-01-19 13:12 ` [PATCH v5 04/12] HID: pidff: Add MISSING_DELAY quirk and its detection Tomasz Pakuła
2025-01-19 13:12 ` [PATCH v5 05/12] HID: pidff: Add MISSING_PBO " Tomasz Pakuła
2025-01-19 13:12 ` [PATCH v5 06/12] HID: pidff: Add MISSING_DEVICE_CONTROL quirk Tomasz Pakuła
2025-01-19 13:12 ` [PATCH v5 07/12] HID: pidff: Add hid_pidff_init_with_quirks and export as GPL symbol Tomasz Pakuła
2025-01-19 13:12 ` [PATCH v5 08/12] HID: pidff: Add FIX_WHEEL_DIRECTION quirk Tomasz Pakuła
2025-01-19 13:13 ` [PATCH v5 09/12] HID: pidff: Stop all effects before enabling actuators Tomasz Pakuła
2025-01-21 10:10   ` Oliver Neukum
2025-01-21 13:18     ` Tomasz Pakuła
2025-01-22  1:37     ` Tomasz Pakuła
2025-01-19 13:13 ` [PATCH v5 10/12] HID: Add hid-universal-pidff driver and supported device ids Tomasz Pakuła
2025-01-19 13:13 ` [PATCH v5 11/12] MAINTAINERS: Add entry for hid-universal-pidff driver Tomasz Pakuła
2025-01-19 13:13 ` [PATCH v5 12/12] HID: pidff: Add PERIODIC_SINE_ONLY quirk Tomasz Pakuła

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox