mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: NanamiKite <nanami@yosoro.hk>
To: Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: "Jonathan Cameron" <jic23@kernel.org>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH v1 2/2] iio: imu: Add driver for QST QMI8658C
Date: Fri, 04 Dec 2026 19:00:03 +0800	[thread overview]
Message-ID: <tencent_03014C0B5D885E066656E844EB021352E109@qq.com> (raw)
In-Reply-To: <axKMnSvgykw7nF9s@ashevche-desk.local>

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


  reply	other threads:[~2026-12-04 11:00 UTC|newest]

Thread overview: 7+ 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 " NanamiKite
2026-12-05 15:32   ` Krzysztof Kozlowski
2026-12-05 15:57     ` NanamiKite
2026-12-04  8:55 ` [RFC PATCH v1 2/2] iio: imu: Add driver for " NanamiKite
2026-12-04  9:49   ` Andy Shevchenko
2026-12-04 11:00     ` NanamiKite [this message]
2026-12-05  9:41   ` Uwe Kleine-König

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=tencent_03014C0B5D885E066656E844EB021352E109@qq.com \
    --to=nanami@yosoro.hk \
    --cc=andriy.shevchenko@intel.com \
    --cc=andy@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=jic23@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nuno.sa@analog.com \
    --cc=robh@kernel.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®