All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Nikolas Koesling" <nikolas@koesling.info>
Cc: linux-input@vger.kernel.org, dmitry.torokhov@gmail.com
Subject: Re: [PATCH v5] HID: pulsar: add driver for Pulsar gaming mice
Date: Sat, 15 Aug 2026 23:47:48 +0000	[thread overview]
Message-ID: <20260815234748.DA7AE1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260815233240.95981-1-nikolas@koesling.info>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Mismatch between vendor and device IDs in `pulsar_table` preventing binding for ATK VXE R1 SE+.
--

--- Patch [1]: [PATCH v5] HID: pulsar: add driver for Pulsar gaming mice ---
commit 77c96d32e01f202616edca1e5d0c2f9591dce152
Author: Nikolas Koesling <nikolas@koesling.info>
Date:   Sat Aug 15 23:32:40 2026 +0000

    HID: pulsar: add driver for Pulsar gaming mice
    
Add a HID driver for Pulsar wireless gaming mice and related devices.
The driver provides battery level, voltage, and charging status via the
power supply framework.

> diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
> index 1059922baaacd..7a73fda02a0f2 100644
> --- a/drivers/hid/hid-ids.h
> +++ b/drivers/hid/hid-ids.h
> @@ -251,6 +251,12 @@
>  #define USB_VENDOR_ID_ATMEL_V_USB	0x16c0
>  #define USB_DEVICE_ID_ATMEL_V_USB	0x05df
>  
> +#define USB_VENDOR_ID_ATK	0x373B
> +#define USB_DEVICE_ID_ATK_VXE_R1_SE_WIRED	0xF58F
> +
> +#define USB_VENDOR_ID_ATK_ALT		0x3554
> +#define USB_DEVICE_ID_ATK_VXE_R1_SE_DONGLE	0x1085

[ ... ]

> diff --git a/drivers/hid/hid-pulsar.c b/drivers/hid/hid-pulsar.c
> new file mode 100644
> index 0000000000000..b90284a00776a
> --- /dev/null
> +++ b/drivers/hid/hid-pulsar.c

[ ... ]

> +static const struct hid_device_id pulsar_table[] = {

[ ... ]

> +	{ HID_USB_DEVICE(USB_VENDOR_ID_KYSONA, USB_DEVICE_ID_KYSONA_M600_WIRED),
> +	  .driver_data = TYPE_KYSONA },
> +	{ HID_USB_DEVICE(USB_VENDOR_ID_ATK, USB_DEVICE_ID_ATK_VXE_R1_SE_DONGLE),
> +	  .driver_data = TYPE_ATK },
> +	{ HID_USB_DEVICE(USB_VENDOR_ID_ATK_ALT, USB_DEVICE_ID_ATK_VXE_R1_SE_WIRED),
> +	  .driver_data = TYPE_ATK },

[Severity: Medium]
Are the vendor and device IDs for the ATK VXE R1 SE+ swapped here compared
to their definitions?

In hid-ids.h, USB_VENDOR_ID_ATK is grouped with the WIRED device ID, and
USB_VENDOR_ID_ATK_ALT is grouped with the DONGLE device ID. However,
pulsar_table assigns the DONGLE ID to the regular vendor ID and the
WIRED ID to the ALT vendor ID.

Could this prevent the driver from properly binding to the ATK VXE R1 SE+
hardware?

> +	{ HID_USB_DEVICE(USB_VENDOR_ID_VXE, USB_DEVICE_ID_VXE_DRAGONFLY_R1_PRO_DONGLE),
> +	  .driver_data = TYPE_VXE },

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260815233240.95981-1-nikolas@koesling.info?part=1

      reply	other threads:[~2026-08-15 23:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-15 23:32 [PATCH v5] HID: pulsar: add driver for Pulsar gaming mice Nikolas Koesling
2026-08-15 23:47 ` sashiko-bot [this message]

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=20260815234748.DA7AE1F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=nikolas@koesling.info \
    --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 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.