From: Stefan Achatz <erazor_de@users.sourceforge.net>
To: Jiri Kosina <jkosina@suse.cz>
Cc: Randy Dunlap <rdunlap@xenotime.net>,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-input@vger.kernel.org
Subject: Re: [PATCH] HID: roccat: fixing actual/startup profile sysfs attribute in koneplus
Date: Tue, 12 Apr 2011 16:14:31 +0200 [thread overview]
Message-ID: <1302617671.2238.42.camel@neuromancer> (raw)
In-Reply-To: <alpine.LNX.2.00.1104121326290.12035@pobox.suse.cz>
Am Dienstag, den 12.04.2011, 13:27 +0200 schrieb Jiri Kosina:
On Sun, 10 Apr 2011, Stefan Achatz wrote:
>
> > startup_profile and actual_profile didn't work as expected. Also
> > as the actual profile is persistent, the distinction between the
> > two was ambiguous. And the event is now propagated through chardev.
> > The userland tool has been updated to support this change.
>
> Fortunately, this is 'testing' ABI. But still, I'd prefer to follow good
> practices here, and minimize incompatible ABI changes.
>
> Is the userspace tool able to handle the situations:
>
> - too old tool running to kernel containing this patch
> - new tool running on older kernel
>
> ?
Lets split this in the three possible actions, two of them broken in the
actual module code:
1 reading actual_profile: shows stale data.
2 reading startup_profile: ok.
3 writing startup_profile: does not work because of a wrong writelength:
> > - return koneplus_send(usb_dev, KONEPLUS_USB_COMMAND_STARTUP_PROFILE,
> > - &buf, sizeof(struct koneplus_profile_buttons));
> > + return koneplus_send(usb_dev, KONEPLUS_USB_COMMAND_ACTUAL_PROFILE,
> > + &buf, sizeof(struct koneplus_actual_profile));
My userspace tools are not in any distros package repository, I keep new
tools backward compatible and I do a rapid release approach.
With these points and the actual modules flaws it didn't make much sense
for me to keep startup_profile for compatibility, but I wouldn't
struggle against it. If you feel better with the compatibility approach,
I can have an updated patch ready within minutes on request.
Stefan
next prev parent reply other threads:[~2011-04-12 14:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1302444165.12514.2.camel@neuromancer>
2011-04-12 11:27 ` [PATCH] HID: roccat: fixing actual/startup profile sysfs attribute in koneplus Jiri Kosina
2011-04-12 14:14 ` Stefan Achatz [this message]
2011-04-13 15:17 ` [PATCH v2] " Stefan Achatz
2011-05-18 14:34 ` Jiri Kosina
2011-04-10 14:02 [PATCH] " Stefan Achatz
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=1302617671.2238.42.camel@neuromancer \
--to=erazor_de@users.sourceforge.net \
--cc=jkosina@suse.cz \
--cc=linux-doc@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rdunlap@xenotime.net \
/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 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).