From: Aaron Erhardt <aer@tuxedocomputers.com>
To: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
Cc: wse@tuxedocomputers.com, Hans de Goede <hansg@kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
platform-driver-x86@vger.kernel.org
Subject: Re: [PATCH v3 5/6] platform/x86/tuxedo: Update and extend documentation
Date: Tue, 15 Sep 2026 16:07:53 +0200 [thread overview]
Message-ID: <7d7b5d84-e358-4745-8db1-69beb281c4d9@tuxedocomputers.com> (raw)
In-Reply-To: <7533530b-1d13-e977-df13-f7ebf4e92a29@linux.intel.com>
Am 15.09.26 um 15:08 schrieb Ilpo Järvinen:
> On Wed, 26 Aug 2026, Aaron Erhardt wrote:
>
>> Remove an incorrect comment about the Microsoft MacroPad reference
>> implementation allegedly deviating from the spec and add more
>> information about the module and some other minor improvements.
>
> Was it "incorrect" or was the spec clarified in a later version? If the
> latter, that would be worth to mention instead of claiming the original
> comment was "incorrect".
>
> This is a honest question, I don't know the answer but I'm kind trying to
> read in between lines here how we ended up in this situation so my
> impression could be entirely wrong. ...Thus, please don't assume I know
> much about the content of these specs (despite me briefly looking into
> what I could find around this feature was introduced).
>
The MacroPad reference implementation never deviated from the spec in this
area, at least not in the way the comment suggests. The comment removed here
references another comment, which is removed alongside the code that was
touched in patch 3/6 and assumed that intensities should allow multiple values
to be assigned (e.g. 256 levels), but that was never required in the spec. Even
version 1.4 (the initial driver had 1.5 as a basis) of the spec already
suggests using only two intensities for on and off while everything else is
done through the RGB channels unless the device has some sort of global
brightness control in its hardware.
I think the reason for this misconception might come from an actual bug in the
reference implementation (which is fixed now:
https://github.com/microsoft/RP2040MacropadHidSample/commit/cfc29120a3910c5772976da29ecd57392dfd44d6)
and the natural assumption, that intensity should, similar to the RGB channels,
have 8 bit. Therefore, the driver initially implemented brightness exactly that
way with 256 levels, scaling the RGB intensities with integer arithmetic. But
since the hardware doesn't scale the brightness and the spec doesn't require
this, there is no good reason to do this.
next prev parent reply other threads:[~2026-09-15 14:07 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-26 8:11 [PATCH v3 0/6] platform/x86/tuxedo: Fixes for TUXEDO NB04 driver Aaron Erhardt
2026-08-26 8:11 ` [PATCH v3 1/6] platform/x86/tuxedo: Don't use device driver data Aaron Erhardt
2026-08-26 8:27 ` Werner Sembach
2026-08-26 8:11 ` [PATCH v3 2/6] platform/x86/tuxedo: Set HID report ID on success Aaron Erhardt
2026-08-26 8:27 ` Werner Sembach
2026-08-26 8:11 ` [PATCH v3 3/6] platform/x86/tuxedo: Use intensity according to HID spec Aaron Erhardt
2026-08-26 8:27 ` Werner Sembach
2026-08-26 8:11 ` [PATCH v3 4/6] platform/x86/tuxedo: Fix keyboard LED map ordering Aaron Erhardt
2026-08-26 8:28 ` Werner Sembach
2026-09-15 13:00 ` Ilpo Järvinen
2026-09-15 13:55 ` Aaron Erhardt
2026-08-26 8:11 ` [PATCH v3 5/6] platform/x86/tuxedo: Update and extend documentation Aaron Erhardt
2026-08-26 8:28 ` Werner Sembach
2026-09-15 13:08 ` Ilpo Järvinen
2026-09-15 14:07 ` Aaron Erhardt [this message]
2026-08-26 8:11 ` [PATCH v3 6/6] MAINTAINERS: Add Aaron Erhardt as maintainer of TUXEDO DRIVERS Aaron Erhardt
2026-08-26 8:28 ` Werner Sembach
2026-09-03 11:27 ` [PATCH v3 0/6] platform/x86/tuxedo: Fixes for TUXEDO NB04 driver Aaron Erhardt
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=7d7b5d84-e358-4745-8db1-69beb281c4d9@tuxedocomputers.com \
--to=aer@tuxedocomputers.com \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=wse@tuxedocomputers.com \
/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
all inboxes | Powered by JetHome®