linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] HID: sony: Various cleanups and fixes for the sony module
@ 2014-02-18 22:22 Frank Praznik
  2014-02-18 22:22 ` [PATCH 1/3] HID: sony: Enable LED controls and rumble for the Sixaxis on Bluetooth Frank Praznik
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Frank Praznik @ 2014-02-18 22:22 UTC (permalink / raw)
  To: linux-input; +Cc: dh.herrmann, jkosina, Frank Praznik

Since the new ll_driver functions allow for reports to be sent on the control
channel the LEDs and force-feedback can be enabled for the Sixaxis/Dualshock 3.

The second patch only sets the force-feedback flags for devices that actually
support force feedback.  It also moves the cancel_work_sync function out of the
ff shutdown function since the worker functions are initialized and used for
the LEDs even when force-feedback support is disabled at compile time.

The final patch is an updated version of the duplicate controller detection code
that was originally part of the Bluetooth patch set.  It now works on both the
Sixaxis and Dualshock 4.  On USB the MAC can be retrieved via feature reports.
Unfortunately, neither controller supports retrieving the MAC address via a
feature report when connected via Bluetooth so it needs to be parsed from the
uniq string where HIDP stores it.  Based on previous discussions
(http://www.spinics.net/lists/linux-input/msg29530.html), uniq should provide a
stable way for retrieving a Bluetooth MAC address under normal circumstances,
unless the behavior in HIDP changes for some reason.  If a MAC cannot be parsed
from the uniq string the duplicate check will be skipped and the connection will
proceed, so even in the case of a uHID device or the behavior of HIDP changing
in the future, a user's controller will still work.

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

end of thread, other threads:[~2014-02-20 13:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-18 22:22 [PATCH 0/3] HID: sony: Various cleanups and fixes for the sony module Frank Praznik
2014-02-18 22:22 ` [PATCH 1/3] HID: sony: Enable LED controls and rumble for the Sixaxis on Bluetooth Frank Praznik
2014-02-19 10:18   ` David Herrmann
2014-02-20 13:10   ` Jiri Kosina
2014-02-18 22:22 ` [PATCH 2/3] HID: sony: Force-feedback cleanup Frank Praznik
2014-02-19 10:23   ` David Herrmann
2014-02-18 22:22 ` [PATCH 3/3] HID: sony: Prevent duplicate controller connections Frank Praznik
2014-02-19 11:04   ` David Herrmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).