From: sashiko-bot@kernel.org
To: "Derek J. Clark" <derekjohn.clark@gmail.com>
Cc: dmitry.torokhov@gmail.com, linux-input@vger.kernel.org
Subject: Re: [PATCH v12 1/4] HID: hid-msi: Add MSI Claw configuration driver
Date: Tue, 14 Jul 2026 10:38:53 +0000 [thread overview]
Message-ID: <20260714103853.CD6181F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260714102640.18075-2-derekjohn.clark@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Inconsistent use of `pm_ptr()` for Power Management callbacks.
--
--- Patch [1]: [PATCH v12 1/4] HID: hid-msi: Add MSI Claw configuration driver ---
commit 7e5a7560f52892f9ee5835a5c33181e068f459aa
Author: Derek J. Clark <derekjohn.clark@gmail.com>
HID: hid-msi: Add MSI Claw configuration driver
Adds configuration HID driver for the MSI Claw series of handheld PC's.
In this initial patch add the initial driver outline and attributes for
changing the gamepad mode, M-key behavior, and add a WO reset function.
> diff --git a/drivers/hid/hid-msi.c b/drivers/hid/hid-msi.c
> --- /dev/null
> +++ b/drivers/hid/hid-msi.c
[ ... ]
> +static struct hid_driver msi_driver = {
> + .name = "hid-msi",
> + .id_table = msi_devices,
> + .raw_event = msi_raw_event,
> + .probe = msi_probe,
> + .remove = msi_remove,
> + .resume = msi_resume,
[Severity: Low]
Should msi_resume be wrapped in pm_ptr() here?
The struct assignment for .suspend uses pm_ptr(msi_suspend), but .resume
is assigned msi_resume unconditionally. Missing pm_ptr() on .resume
prevents dead-code elimination on msi_resume and its dependencies when
CONFIG_PM is disabled.
> + .suspend = pm_ptr(msi_suspend),
> +};
> +module_hid_driver(msi_driver);
> +
> +MODULE_LICENSE("GPL");
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260714102640.18075-1-derekjohn.clark@gmail.com?part=1
next prev parent reply other threads:[~2026-07-14 10:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-14 10:26 [PATCH v12 0/4] Add MSI Claw HID Configuration Driver Derek J. Clark
2026-07-14 10:26 ` [PATCH v12 1/4] HID: hid-msi: Add MSI Claw configuration driver Derek J. Clark
2026-07-14 10:38 ` sashiko-bot [this message]
2026-07-14 10:26 ` [PATCH v12 2/4] HID: hid-msi: Add M-key mapping attributes Derek J. Clark
2026-07-14 10:44 ` sashiko-bot
2026-07-14 10:26 ` [PATCH v12 3/4] HID: hid-msi: Add RGB control interface Derek J. Clark
2026-07-14 10:42 ` sashiko-bot
2026-07-14 11:43 ` Derek J. Clark
2026-07-14 10:26 ` [PATCH v12 4/4] HID: hid-msi: Add Rumble Intensity Attributes Derek J. Clark
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=20260714103853.CD6181F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=derekjohn.clark@gmail.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 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.