From: sashiko-bot@kernel.org
To: "Méven Car" <meven29@gmail.com>
Cc: linux-input@vger.kernel.org, dmitry.torokhov@gmail.com
Subject: Re: [PATCH v4] HID: logitech-headset: add a battery driver for the PRO X 2
Date: Fri, 16 Oct 2026 11:58:22 +0000 [thread overview]
Message-ID: <sashiko-outbox-174261@kernel.org> (raw)
In-Reply-To: <20261016114757.1099300-1-meven@kde.org>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] kconfig: unmet direct dependency on USB_HID for HID_LOGITECH_HEADSET
--
commit d9d20c74276791f547d49f85750e9fd359bb8c0c
Author: Méven Car <meven29@gmail.com>
Subject: HID: logitech-headset: add a battery driver for the PRO X 2
The PRO X 2 LIGHTSPEED receiver does not speak HID++, so
hid-logitech-hidpp cannot read its battery. Its report descriptor has a
consumer collection for the media keys and two vendor collections, and
no report 0x10 or 0x11.
> diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig
> index 0e3a0ccd6901e..60f579be1da69 100644
> --- a/drivers/hid/Kconfig
> +++ b/drivers/hid/Kconfig
> @@ -680,6 +680,7 @@ config HID_LOGITECH_DJ
> depends on HIDRAW
> depends on HID_LOGITECH
> select HID_LOGITECH_HIDPP
> + select HID_LOGITECH_HEADSET
> help
> Say Y if you want support for Logitech receivers and devices.
> Logitech receivers are capable of pairing multiple Logitech compliant
[ ... ]
> @@ -687,6 +688,18 @@ config HID_LOGITECH_DJ
> generic USB_HID driver and all incoming events will be multiplexed
> into a single mouse and a single keyboard device.
>
> +config HID_LOGITECH_HEADSET
> + tristate
> + depends on USB_HID
> + select POWER_SUPPLY
> + help
[Severity: Low]
Could this select statement in HID_LOGITECH_DJ cause an unmet direct dependency
warning?
HID_LOGITECH_DJ unconditionally selects HID_LOGITECH_HEADSET, but
HID_LOGITECH_HEADSET specifies a direct dependency on USB_HID.
Because Kconfig's select directive forces the symbol on without evaluating its
dependencies, enabling HID_LOGITECH_DJ in a configuration lacking USB_HID will
produce an 'unmet direct dependencies' build warning.
Should HID_LOGITECH_DJ inherit the dependency on USB_HID, or should the select
be conditional?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261016114757.1099300-1-meven@kde.org?part=1
next prev parent reply other threads:[~2026-10-16 11:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-16 11:47 [PATCH v4] HID: logitech-headset: add a battery driver for the PRO X 2 Méven Car
2026-10-16 11:58 ` sashiko-bot [this message]
2026-10-16 16:14 ` Méven
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=sashiko-outbox-174261@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=meven29@gmail.com \
--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