From: Hardik Phalet <hardik.phalet@pm.me>
To: Andy Shevchenko <andriy.shevchenko@intel.com>,
Hardik Phalet <hardik.phalet@pm.me>
Cc: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Jonathan Cameron" <jic23@kernel.org>,
"David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Brigham Campbell" <me@brighamcampbell.com>,
"Shuah Khan" <skhan@linuxfoundation.org>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev
Subject: Re: [PATCH v2 0/4] Add QST QMC5883P magnetometer driver
Date: Sun, 12 Apr 2026 10:27:36 +0000 [thread overview]
Message-ID: <DHR3SE5ACRQ9.2T8T819298YGI@pm.me> (raw)
In-Reply-To: <adh-PKgh5C0-iAah@ashevche-desk.local>
On Fri Apr 10, 2026 at 10:06 AM IST, Andy Shevchenko wrote:
> On Thu, Apr 09, 2026 at 09:07:11PM +0000, Hardik Phalet wrote:
>> Verification steps performed:
>> - Chip ID register (0x00) reads back 0x80 on probe, confirming the
>> correct device is present
>> - All three axes (in_magn_x_raw, in_magn_y_raw, in_magn_z_raw) return
>> non-zero, stable values when the board is held still and change
>> appropriately when the board is rotated
>> - in_magn_x_scale (and Y, Z) returns the expected fractional value for
>> the default ±8 G range (1/37500000)
>> - in_magn_sampling_frequency / _available, in_magn_oversampling_ratio /
>> _available, and downsampling_ratio / downsampling_ratio_available all
>> read and write correctly; the chip responds without error to each
>> valid setting
>> - Runtime PM: after 2 s of inactivity the device enters suspend mode
>> (MODE = 0x00 confirmed via i2cdump); the next sysfs read correctly
>> resumes the device and returns valid data
>> - System suspend/resume (echo mem > /sys/power/state) leaves the
>> driver in a consistent state; readings remain valid after resume
>> - dt_binding_check passes for patch 2/4
>> - Kernel builds cleanly with W=1 and no new warnings
>
> This driver is rather huge. There are mistakes you made in the process, though:
> - never send a new version for such a code (amount and complexity) earlier than
> a week; give others a chance to review
Noted, Andy. I will take care of it from now on.
> - do not put driver to staging, why?
There are some functionality missing. But it has since been made clear
to me that that is not a valid reason. I will move to `drivers/iio`
in the next patch series.
> - the investigation is rather poor about existence of the driver — make sure
> there is no compatible (by register layout) driver in IIO or even outside it
> (for ADCs it might appear as HWMON [drivers/hwmon] or INPUT [drivers/input]
> in some cases)
I will dig a bit deeper into this. But I could not find any thing
realted to the device I am working on (qmc5883p).
There is a device hmc5843_core.c that already handles HMC5883L. But the
register layout is different, field ranges, gain encoding etc. are
different and I think warrants a separate driver. Other than that I
could not find something related to device I am working on.
I will carefully go through HWMON and INPUT too, but do you have a
strategy to help me find somehting similar? It will be very useful.
Would `grep`-ing for 5883 and QST be a right starting point?
>
> --
> With Best Regards,
> Andy Shevchenko
Thank you for the review Andy, I appreciate your time!
Regards,
Hardik
-
next prev parent reply other threads:[~2026-04-12 10:27 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-09 21:07 [PATCH v2 0/4] Add QST QMC5883P magnetometer driver Hardik Phalet
2026-04-09 21:07 ` [PATCH v2 1/4] dt-bindings: vendor-prefixes: Add QST Corporation Hardik Phalet
2026-04-10 7:52 ` Krzysztof Kozlowski
2026-04-12 10:30 ` Hardik Phalet
2026-04-09 21:07 ` [PATCH v2 2/4] dt-bindings: iio: magnetometer: Add binding for QST QMC5883P Hardik Phalet
2026-04-10 7:55 ` Krzysztof Kozlowski
2026-04-10 8:06 ` Krzysztof Kozlowski
2026-04-12 10:32 ` Hardik Phalet
2026-04-12 10:31 ` Hardik Phalet
2026-04-09 21:07 ` [PATCH v2 3/4] staging: iio: magnetometer: Add QST QMC5883P driver Hardik Phalet
2026-04-10 5:28 ` Greg Kroah-Hartman
2026-04-12 9:55 ` Hardik Phalet
2026-04-10 20:02 ` David Lechner
2026-04-12 9:54 ` Hardik Phalet
2026-04-12 18:52 ` David Lechner
2026-04-09 21:07 ` [PATCH v2 4/4] MAINTAINERS: Add entry for QST QMC5883P magnetometer driver Hardik Phalet
2026-04-10 19:32 ` David Lechner
2026-04-12 9:57 ` Hardik Phalet
2026-04-10 4:36 ` [PATCH v2 0/4] Add " Andy Shevchenko
2026-04-12 10:27 ` Hardik Phalet [this message]
2026-04-10 19:26 ` David Lechner
2026-04-12 10:05 ` Hardik Phalet
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=DHR3SE5ACRQ9.2T8T819298YGI@pm.me \
--to=hardik.phalet@pm.me \
--cc=andriy.shevchenko@intel.com \
--cc=andy@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=gregkh@linuxfoundation.org \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=me@brighamcampbell.com \
--cc=nuno.sa@analog.com \
--cc=robh@kernel.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