From: Frank Praznik <frank.praznik@oh.rr.com>
To: Antonio Ospite <ao2@ao2.it>, Frank Praznik <frank.praznik@oh.rr.com>
Cc: linux-input@vger.kernel.org, jkosina@suse.cz, dh.herrmann@gmail.com
Subject: Re: [PATCH v2 6/8] HID: sony: Add an IDA allocator to assign unique device ids
Date: Thu, 13 Mar 2014 10:30:14 -0400 [thread overview]
Message-ID: <5321C0F6.5090109@oh.rr.com> (raw)
In-Reply-To: <20140310232526.4dde47de732f8498a58fb731@ao2.it>
On 3/10/2014 18:25, Antonio Ospite wrote:
> Hi Frank,
>
> On Thu, 6 Mar 2014 17:32:54 -0500
> Frank Praznik <frank.praznik@oh.rr.com> wrote:
>
>> Add an IDA id allocator to assign unique, sequential device ids to Sixaxis and
>> DualShock 4 controllers.
>>
>> Use explicit module init and exit functions since the IDA allocator must be
>> manually destroyed when the module is unloaded.
>>
>> Use the device id as the unique number for the battery identification string.
>>
> Have you thought about using the bdaddr as the battery id?
>
> I think that decoupling led numbers (from the following patch) and
> battery ids would be saner. For instance in a scenario when userspace
> decided that the _second_ sixaxis has LEDs saying "controller
> 3" (because of different kind of joypads, remember?) we would have
> battery still saying "2" because the battery id is assigned at probe
> time while LEDs can change at any time. This mismatch may become
> confusing.
>
That's a good idea and it will match the naming scheme of the wiimote
battery device, which I think is the only other game controller that
reports battery status. I'll make the change for v3.
next prev parent reply other threads:[~2014-03-13 14:30 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-06 22:32 [PATCH v2 0/8] HID: sony: More Sony controller fixes and improvements Frank Praznik
2014-03-06 22:32 ` [PATCH v2 1/8] HID: sony: Fix Sixaxis cable state detection Frank Praznik
2014-03-06 22:32 ` [PATCH v2 2/8] HID: sony: Set the HID quriks flag for Bluetooth controllers Frank Praznik
2014-03-06 22:32 ` [PATCH v2 3/8] HID: sony: Use inliners for work queue initialization and cancellation Frank Praznik
2014-03-06 22:32 ` [PATCH v2 4/8] HID: sony: Use a struct for the Sixaxis output report Frank Praznik
2014-03-06 22:32 ` [PATCH v2 5/8] HID: sony: Convert startup and shutdown functions to use a uniform parameter type Frank Praznik
2014-03-06 22:32 ` [PATCH v2 6/8] HID: sony: Add an IDA allocator to assign unique device ids Frank Praznik
2014-03-10 22:25 ` Antonio Ospite
2014-03-13 14:30 ` Frank Praznik [this message]
2014-03-06 22:32 ` [PATCH v2 7/8] HID: sony: Initialize the controller LEDs with the device ID value Frank Praznik
2014-03-10 22:59 ` Antonio Ospite
2014-03-13 14:24 ` Frank Praznik
2014-03-06 22:32 ` [PATCH v2 8/8] HID: sony: Add blink support to the Sixaxis and DualShock 4 LEDs Frank Praznik
2014-03-14 14:42 ` [PATCH v2 0/8] HID: sony: More Sony controller fixes and improvements Jiri Kosina
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5321C0F6.5090109@oh.rr.com \
--to=frank.praznik@oh.rr.com \
--cc=ao2@ao2.it \
--cc=dh.herrmann@gmail.com \
--cc=jkosina@suse.cz \
--cc=linux-input@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.