From: sashiko-bot@kernel.org
To: "Aaron Erhardt" <aer@tuxedocomputers.com>
Cc: dmitry.torokhov@gmail.com, linux-input@vger.kernel.org
Subject: Re: [PATCH v5 2/2] HID: generic: add LampArray support via hid-lamparray helper
Date: Thu, 03 Sep 2026 07:46:16 +0000 [thread overview]
Message-ID: <20260903074616.919651F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260903073602.3815258-3-aer@tuxedocomputers.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The generic HID driver depends on HID_LAMPARRAY if HID_LAMPARRAY, which forces the core HID generic driver to be a module if the optional LampArray helper is a module.
--
commit de92bcafc34d337da4d9893ee22e49ef91520c6c
Author: Aaron Erhardt <aer@tuxedocomputers.com>
HID: generic: add LampArray support via hid-lamparray helper
The hid-generic driver now optionally registers a lamparray instance after
hid_parse(). LampArray resources are released on driver remove.
> diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig
> index 4afd80a67b394..a0fcd89c2bb02 100644
> --- a/drivers/hid/Kconfig
> +++ b/drivers/hid/Kconfig
> @@ -82,6 +82,7 @@ config UHID
>
> config HID_GENERIC
> tristate "Generic HID driver"
> + depends on HID_LAMPARRAY if HID_LAMPARRAY
[Severity: High]
Does this restriction inadvertently force the core generic HID driver to be a
module when the optional LampArray helper is built as a module?
If a system relies on hid-generic for keyboard input during early boot
(e.g., to enter a LUKS decryption password or interact with a panic
shell) and expects the driver to be built-in, forcing it to compile
as a module could result in a total loss of early boot keyboard support.
Could this be avoided by dropping the "depends on" restriction and instead
using IS_REACHABLE(CONFIG_HID_LAMPARRAY) in both the header (for stubs)
and the C file? This would allow a built-in generic driver to gracefully
degrade to stubs while the optional helper remains a module.
> default HID
> help
> Support for generic devices on the HID bus. This includes most
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260903073602.3815258-1-aer@tuxedocomputers.com?part=2
next prev parent reply other threads:[~2026-09-03 7:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-03 7:35 [PATCH v5 0/2] HID: generic: add LampArray support via hid-lamparray helper Aaron Erhardt
2026-09-03 7:35 ` [PATCH v5 1/2] HID: lamparray: add new LampArray helper module Aaron Erhardt
2026-09-03 7:48 ` sashiko-bot
2026-09-03 20:07 ` Werner Sembach
2026-09-04 8:51 ` Aaron Erhardt
2026-09-04 21:30 ` Armin Wolf
2026-09-03 7:35 ` [PATCH v5 2/2] HID: generic: add LampArray support via hid-lamparray helper Aaron Erhardt
2026-09-03 7:46 ` sashiko-bot [this message]
2026-09-04 20:49 ` [PATCH v5 0/2] " Armin Wolf
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=20260903074616.919651F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=aer@tuxedocomputers.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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