Re: [RFC PATCH v1 2/2] iio: imu: Add driver for QST QMI8658C
From: NanamiKite
Date: Fri Dec 04 2026 - 06:00:29 EST
Hi Andy,
On Fri, 04 Dec 2026 11:49:17 +0200, Andy Shevchenko wrote:
> There are some mistakes people do for the last half a year for IIO drivers.
> Check the mailing list archives and act accordingly.
>
> In general code looks okay as for the first version.
Thanks for taking a look! I went through recent linux-iio reviews and
newly merged drivers (such as qmc5883l and qmc6308) and spotted several
things to clean up for v2:
- Headers / IWYU: switch <linux/byteorder/generic.h> to <asm/byteorder.h>,
add explicit <linux/errno.h> and <linux/time.h>, and replace
<linux/device.h> with <linux/dev_printk.h> and <linux/device/devres.h>.
- Drop the redundant struct device *dev from struct qmi8658_data and use
regmap_get_device() instead.
- Keep dev_err_probe() and devm_add_action_or_reset() in qmi8658_probe()
rather than mixing them into qmi8658_chip_init().
- Use fsleep() and add the datasheet t0 (150 ms) POR delay after
devm_regulator_bulk_get_enable().
- Use named initializer { .name = "qmi8658c" } in qmi8658_id[] and clean up
blank-line spacing around guard(mutex).
I'll wait a few days for any further feedback on RFC v1 before sending v2.
Thanks,
NanamiKite