From: sashiko-bot@kernel.org
To: NanamiKite <nanami@yosoro.hk>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [RFC PATCH v1 2/2] iio: imu: Add driver for QST QMI8658C
Date: Fri, 04 Dec 2026 09:10:56 +0000 [thread overview]
Message-ID: <sashiko-outbox-249468@kernel.org> (raw)
In-Reply-To: <tencent_9200994207A2F601959504D19340EC540707@qq.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] iio: qmi8658: missing POR delay after regulator enable in
qmi8658_probe()
- [Low] iio: imu: use named initializer in qmi8658_id table
--
commit a4708c7236bed9810ccaa2f7196cc6b1724f4a55
Author: NanamiKite <nanami@yosoro.hk>
iio: imu: Add driver for QST QMI8658C
This commit adds an I2C IIO driver for the QST QMI8658C 6-axis IMU,
supporting 3-axis accelerometer, 3-axis gyroscope, and die temperature
reads along with scale, 6DOF ODR configuration, and mount-matrix support.
> diff --git a/drivers/iio/imu/qmi8658.c b/drivers/iio/imu/qmi8658.c
> new file mode 100644
> index 0000000000000..6ccb67dcf7859
> --- /dev/null
> +++ b/drivers/iio/imu/qmi8658.c
[ ... ]
> + ret = devm_regulator_bulk_get_enable(dev,
> + ARRAY_SIZE(qmi8658_regulators),
> + qmi8658_regulators);
> + if (ret)
> + return dev_err_probe(dev, ret,
> + "Failed to enable regulators\n");
> +
> + ret = qmi8658_chip_init(data);
[Severity: Medium]
Does qmi8658_probe() need a power-on reset settling delay after enabling
the regulators before calling qmi8658_chip_init()?
devm_regulator_bulk_get_enable() only waits for each regulator's own
voltage ramp time, not the sensor's internal power-on reset latency.
qmi8658_chip_init() immediately reads QMI8658_REG_WHO_AM_I with no delay
or retry, so on boards with switched vdd or vddio supplies the first I2C
transfer can NACK or return an invalid ID and fail probe.
[ ... ]
> +static const struct i2c_device_id qmi8658_id[] = {
> + { "qmi8658c" },
> + { }
> +};
[Severity: Low]
New struct i2c_device_id entries should use named initializers per I2C
subsystem conventions, i.e. { .name = "qmi8658c" }.
--
Sashiko AI review · https://sashiko.dev/#/patchset/tencent_022CC05CE10211C280F48ABCE864A0552A06@qq.com?part=2
prev parent reply other threads:[~2026-12-04 9:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20261204085504.184447-1-nanami@yosoro.hk>
2026-12-04 8:55 ` [RFC PATCH v1 1/2] dt-bindings: iio: imu: Add QST QMI8658C NanamiKite
2026-12-04 8:55 ` [RFC PATCH v1 2/2] iio: imu: Add driver for " NanamiKite
2026-12-04 9:10 ` 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=sashiko-outbox-249468@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=nanami@yosoro.hk \
--cc=robh@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox