From: Jonathan Cameron <jic23@kernel.org>
To: Pan Chuang <panchuang@vivo.com>
Cc: m32285159@gmail.com, andy@kernel.org, dlechner@baylibre.com,
email@sirat.me, gustavograzs@gmail.com,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
maxwell@maxwelld.cc, mazziesaccount@gmail.com,
nuno.sa@analog.com, tduszyns@gmail.com,
u.kleine-koenig@baylibre.com
Subject: Re: [PATCH 03/13] iio: chemical: Remove redundant dev_err()/dev_err_probe()
Date: Fri, 24 Jul 2026 00:37:14 +0100 [thread overview]
Message-ID: <20260724003714.4dc81d56@jic23-huawei> (raw)
In-Reply-To: <20260720074543.616062-1-panchuang@vivo.com>
On Mon, 20 Jul 2026 15:45:43 +0800
Pan Chuang <panchuang@vivo.com> wrote:
> On 2026/7/18 17:11, Maxwell Doose wrote:
> > On Fri, Jul 17, 2026 at 6:24 PM Jonathan Cameron
> > <jonathan.cameron@oss.qualcomm.com> wrote:
> >>
> >> On Fri, 17 Jul 2026 17:05:22 -0500
> >> "Maxwell Doose" <maxwell@maxwelld.cc> wrote:
> >>
> >>> Hi Pan,
> >>>
> >>> On Fri Jul 17, 2026 at 4:42 AM CDT
> >>> Pan Chuang <panchuang@vivo.com> wrote:
> >>>
> >>>> Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
> >>>> devm_request_*_irq()"),
> >>>> devm_request_irq() and devm_request_threaded_irq() automatically log
> >>>> detailed error messages on failure. Remove the now-redundant
> >>>> driver-specific dev_err() and dev_err_probe() calls.
> >>>>
> >>>> Signed-off-by: Pan Chuang <panchuang@vivo.com>
> >>>> ---
> >>>> drivers/iio/chemical/ccs811.c | 4 +---
> >>>> drivers/iio/chemical/ens160_core.c | 2 +-
> >>>> drivers/iio/chemical/scd30_core.c | 2 +-
> >>>> 3 files changed, 3 insertions(+), 5 deletions(-)
> >>>>
> >>> ...
> >>>>
> >>>> diff --git a/drivers/iio/chemical/scd30_core.c b/drivers/iio/chemical/scd30_core.c
> >>>> index f85cdd8bd84f..770571c21521 100644
> >>>> --- a/drivers/iio/chemical/scd30_core.c
> >>>> +++ b/drivers/iio/chemical/scd30_core.c
> >>>> @@ -686,7 +686,7 @@ static int scd30_setup_trigger(struct iio_dev *indio_dev)
> >>>> IRQF_NO_AUTOEN,
> >>>> indio_dev->name, indio_dev);
> >>>> if (ret)
> >>>> - return dev_err_probe(dev, ret, "failed to request irq\n");
> >>>> + return ret;
> >>>>
> >>>> return 0;
> >>>> }
> >>>
> >>> Please split per driver and resubmit and feel free to add
> >>
> >> For large and simple repeat actions like this it's a trade off between
> >> the noise of a lot of patches vs easy handling of any future conflicts in
> >> backports. Given there are 60ish patches if this is broken up, it is a
> >> bit marginal for which approach is preferable.
> >>
> >> For more complex changes I would entirely agree that one patch per driver.
> >>
> >> So I think I'm fine either way for this particular series. One patch
> >> per directory, or one patch per driver.
> >
> > Just personal preference given multiple drivers and multiple
> > maintainers. I suppose either is fine but I would prefer it split for
> > this one.
>
> Hi Jonathan, Maxwell, and Andy,
>
> Thank you for the feedback. I completely understand the trade-off, and
> I've been struggling with the same question myself: whether to split by
> driver or submit as a larger series.
>
> My primary goal is to make the patches as easy to merge and as maintainable
> as possible in the long run. I know that different subsystems have different
> preferences on this.
>
> Therefore, I would like to ask for your guidance specifically for the IIO
> subsystem: would you prefer one patch per driver, or one patch per directory?
For this change (not a hard rule!) one per directory is fine.
>
> Also, for directories with many changes, like light, would it be better to
> submit them separately in a follow-up series to keep the initial series
> more focused?
No it is fine to do them in this series.
Jonathan
>
> Additionally, I will also adopt all the other suggestions from this patchset
> and resubmit in v2.
>
> Looking forward to your reply.
>
>
> Best Regards,
>
> PanChuang
>
next prev parent reply other threads:[~2026-07-23 23:37 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-17 9:42 [PATCH 00/13] iio: Remove redundant error messages on IRQ request failure Pan Chuang
2026-07-17 9:42 ` [PATCH 01/13] iio: accel: Remove redundant dev_err()/dev_err_probe() Pan Chuang
2026-07-17 23:21 ` Jonathan Cameron
2026-07-18 6:30 ` Andy Shevchenko
2026-07-17 9:42 ` [PATCH 02/13] iio: addac: Remove redundant dev_err_probe() Pan Chuang
2026-07-17 9:42 ` [PATCH 03/13] iio: chemical: Remove redundant dev_err()/dev_err_probe() Pan Chuang
2026-07-17 22:05 ` Maxwell Doose
2026-07-17 23:24 ` Jonathan Cameron
2026-07-18 9:11 ` Maxwell Doose
2026-07-20 7:45 ` Pan Chuang
2026-07-23 23:37 ` Jonathan Cameron [this message]
2026-07-18 6:28 ` Andy Shevchenko
2026-07-17 9:42 ` [PATCH 04/13] iio: common: Remove redundant dev_err() Pan Chuang
2026-07-17 23:26 ` Jonathan Cameron
2026-07-18 6:35 ` Andy Shevchenko
2026-07-17 9:42 ` [PATCH 05/13] iio: gyro: Remove redundant dev_err_probe() Pan Chuang
2026-07-17 9:42 ` [PATCH 06/13] iio: health: Remove redundant dev_err() Pan Chuang
2026-07-17 9:42 ` [PATCH 07/13] iio: humidity: Remove redundant dev_err()/dev_err_probe() Pan Chuang
2026-07-17 9:42 ` [PATCH 08/13] iio: imu: " Pan Chuang
2026-07-17 9:42 ` [PATCH 09/13] iio: magnetometer: Remove redundant dev_err() Pan Chuang
2026-07-17 9:42 ` [PATCH 10/13] iio: pressure: Remove redundant dev_err()/dev_err_probe() Pan Chuang
2026-07-17 9:42 ` [PATCH 11/13] iio: proximity: " Pan Chuang
2026-07-17 9:42 ` [PATCH 12/13] iio: light: " Pan Chuang
2026-07-17 9:42 ` [PATCH 13/13] iio: temperature: " Pan Chuang
2026-07-17 10:30 ` [PATCH 00/13] iio: Remove redundant error messages on IRQ request failure Andy Shevchenko
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=20260724003714.4dc81d56@jic23-huawei \
--to=jic23@kernel.org \
--cc=andy@kernel.org \
--cc=dlechner@baylibre.com \
--cc=email@sirat.me \
--cc=gustavograzs@gmail.com \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=m32285159@gmail.com \
--cc=maxwell@maxwelld.cc \
--cc=mazziesaccount@gmail.com \
--cc=nuno.sa@analog.com \
--cc=panchuang@vivo.com \
--cc=tduszyns@gmail.com \
--cc=u.kleine-koenig@baylibre.com \
/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