From: Tomasz Bojanowski <tomasz@bojanowski.me>
To: Guenter Roeck <linux@roeck-us.net>
Cc: linux-hwmon@vger.kernel.org, Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>,
Randy Dunlap <rdunlap@infradead.org>,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] hwmon: Add driver for MSI Mystic Light controller voltage sensors
Date: Sat, 7 Nov 2026 19:15:18 +0100 [thread overview]
Message-ID: <20261107181518.385136-1-tomasz@bojanowski.me> (raw)
In-Reply-To: <5e99fd86-d934-49c1-a867-02cc61ab1ecf@roeck-us.net>
Hi Guenter,
On 11/7/26 10:02, Guenter Roeck wrote:
> What am I missing ?
Sorry, my earlier description was not clear about how the request is
sent. From the vendor software, it looks like this:
- The request goes out as an output report with report ID 0xfa, not
as a feature report. If I read usbhid_set_raw_report() correctly,
it puts reportnum into buf[0], so with MSI_ML_SENSOR_REPORT_ID the
controller would have received a feature report 0xf0 instead.
- The reply seems to come back as an input report on the interrupt
endpoint, not through GET_REPORT. As long as the driver calls
hid_hw_open(), it should show up in .raw_event().
Roughly like this (untested, I have none of these boards):
buf[0] = 0xfa;
buf[1] = 0xa0;
buf[9] = 0x01;
buf[10] = 0xfc;
reinit_completion(&priv->done);
ret = hid_hw_output_report(hdev, buf, 64);
if (ret == -ENOSYS)
ret = hid_hw_raw_request(hdev, 0xfa, buf, 64,
HID_OUTPUT_REPORT,
HID_REQ_SET_REPORT);
...
wait_for_completion_timeout(&priv->done, msecs_to_jiffies(500));
In .raw_event(), the reply could be accepted when data[0] == 0xfa,
data[2] == 0x01 and size == 64, followed by complete().
The report ID should stay a constant 0xfa: with 0x01, the same buffer
would be the bootloader command.
A quicker check might be to write the 64 bytes to the hidraw node and
read() the input reports.
Thanks,
Tomasz
next prev parent reply other threads:[~2026-11-07 18:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-07 8:28 Tomasz Bojanowski
2026-11-07 15:56 ` Guenter Roeck
2026-11-07 16:12 ` Tomasz Bojanowski
2026-11-07 18:02 ` Guenter Roeck
2026-11-07 18:15 ` Tomasz Bojanowski [this message]
2026-11-07 19:40 ` Guenter Roeck
2026-11-07 20:33 ` Tomasz Bojanowski
2026-11-07 20:54 ` Tomasz Bojanowski
2026-11-07 21:06 ` Guenter Roeck
2026-11-07 21:47 ` Tomasz Bojanowski
2026-11-07 22:05 ` Guenter Roeck
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=20261107181518.385136-1-tomasz@bojanowski.me \
--to=tomasz@bojanowski.me \
--cc=corbet@lwn.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=rdunlap@infradead.org \
--cc=skhan@linuxfoundation.org \
/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®