Linux Kernel Mentees list
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: David Lechner <dlechner@baylibre.com>
Cc: Aldo Conte <aldocontelk@gmail.com>,
	Andy Shevchenko <andriy.shevchenko@intel.com>,
	nuno.sa@analog.com, andy@kernel.org, shuah@kernel.org,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-kernel-mentees@lists.linux.dev
Subject: Re: [PATCH v2 5/5] iio: light: tcs3472: move standalone return to default case
Date: Thu, 21 May 2026 12:31:25 +0100	[thread overview]
Message-ID: <20260521123125.4000a67a@jic23-huawei> (raw)
In-Reply-To: <bfd9d999-57cb-45fc-a7e1-369905896770@baylibre.com>

On Wed, 20 May 2026 20:03:26 -0500
David Lechner <dlechner@baylibre.com> wrote:

> On 5/20/26 12:12 PM, Aldo Conte wrote:
> > On 16/05/26 14:25, Jonathan Cameron wrote:  
> >> On Sat, 16 May 2026 13:04:13 +0200
> >> Aldo Conte <aldocontelk@gmail.com> wrote:
> >>  
> >>> On 15/05/26 20:05, Jonathan Cameron wrote:  
> >>>> On Wed, 13 May 2026 20:58:40 +0300
> >>>> Andy Shevchenko <andriy.shevchenko@intel.com> wrote:  
> >>>
> >>> ...
> >>>  
> >>>>
> >>>> I would add for this that, to reduce churn it's fine to add the
> >>>> struct device *dev = ... bit and use it in new devm calls. Just do the
> >>>> remainder in the follow on commit.
> >>>>     
> >>>>>
> >>>>>     
> >>>>      
> >>>
> >>> Hi Jonathan, Andy and all!
> >>>
> >>> Thanks for your reviews! they’re teaching me so much!
> >>> If I understand correctly, I need to wait a week before submitting version v3
> >>> such that other reviewers can comment right?
> >>>
> >>> I’d like to take this opportunity to suggest two alternative lists of what
> >>> version v3 might look like in terms of patch order:
> >>>
> >>> First option does not consider the "== NULL with !" patch and so:
> >>> 1. iio: tcs3472: power down chip on probe failure (NEW precursor, bug fix)
> >>> 2. iio: tcs3472: sort headers alphabetically (same)
> >>> 3. iio: tcs3472: convert several functions to use guard(mutex)() (modified)
> >>> 4. iio: tcs3472: use devm for resource management (slimmed down)
> >>> 5. iio: tcs3472: use locale struct device * for remaining cases (NEW)
> >>> 6. iio: tcs3472: implement wait time and sampling frequency (revised)
> >>> 7. iio: tcs3472: move standalone return to default case (same as v2)
> >>>
> >>> Second version will consider it:
> >>> 1. iio: tcs3472: power down chip on probe failure (NEW precursor, bug fix)
> >>> 2. iio: tcs3472: sort headers alphabetically (same as v2)
> >>> 3. iio: tcs3472: convert several functions to use guard(mutex)() (modified)
> >>> 4. iio: tcs3472: replace == NULL with ! (NEW, optional)
> >>> 5. iio: tcs3472: use devm for resource management (slimmed down)
> >>> 6. iio: tcs3472: use locale struct device * for remaining cases (NEW)
> >>> 7. iio: tcs3472: implement wait time and sampling frequency (revised)
> >>> 8. iio: tcs3472: move standalone return to default case (same as v2)
> >>>
> >>>
> >>> What do you think?  
> >> Either is fine but swap the last two patches.  The wait time one is
> >> more complex than that trivial cleanup so might take more revisions.
> >>
> >> I frequently pick up the first part of series just to avoid people
> >> having to keep sending the same unchanged code to the list (that I've
> >> often forgotten about completely by the next version!)
> >>
> >> Jonathan
> >>  
> >>>
> >>>
> >>> Thanks,
> >>> Aldo  
> >>  
> > 
> > Hi Jonathan,
> > 
> > I have two quick questions.
> > 
> > First, Uwe's "[PATCH v2 0/7] iio: Rework i2c_device_id initialisation" also touches tcs3472.c. My series modifies the same file for unrelated reasons. Should I wait for Uwe's series to land and rebase on top, or is it fine to send now and let you handle the overlap? How does it work in  case?  
> 
> Just add a patch to your series that does the same change
> for that one file. Then it won't matter which one gets picked
> up first.
> 
Normally I'd say don't bother unless you are modifying that specific code.
If there is an actual conflict (rather than lines moving around a bit) then
indeed having such a patch is good.

If minor conflicts occur I'll just fix them up whilst applying.
Gets messy if conflict between a fix and a non fix if I don't notice
it, but otherwise it is easy enough.

J
> > 
> > Second, the first patch in my series fixes missing power-down on probe failure (goto err_powerdown). Do I need to add the “Fixes” tag?  
> 
> Sounds like it.
> 
> > 
> > Thanks for your time.
> > 
> > Aldo Conte
> >   
> 
> 


  reply	other threads:[~2026-05-21 11:31 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-12 22:32 [PATCH v2 0/5] devm conversion, wait time, locking cleanup Aldo Conte
2026-05-12 22:32 ` [PATCH v2 1/5] iio: light: tcs3472: sort headers alphabetically Aldo Conte
2026-05-13  8:15   ` Joshua Crofts
2026-05-12 22:32 ` [PATCH v2 2/5] iio: light: tcs3472: convert remaining locking to guard(mutex) Aldo Conte
2026-05-13  7:47   ` Joshua Crofts
2026-05-13 11:00     ` Andy Shevchenko
2026-05-13 10:58   ` Andy Shevchenko
2026-05-15 15:18   ` Jonathan Cameron
2026-05-12 22:32 ` [PATCH v2 3/5] iio: light: tcs3472: use devm for resource management Aldo Conte
2026-05-13  8:07   ` Joshua Crofts
2026-05-13 11:02   ` Andy Shevchenko
2026-05-13 20:29   ` Aldo Conte
2026-05-15 15:21     ` Jonathan Cameron
2026-05-15 17:19   ` Jonathan Cameron
2026-05-12 22:32 ` [PATCH v2 4/5] iio: light: tcs3472: implement wait time and sampling frequency Aldo Conte
2026-05-13 11:17   ` Andy Shevchenko
2026-05-15 15:57     ` Aldo Conte
2026-05-17  7:38       ` Andy Shevchenko
2026-05-15 18:01   ` Jonathan Cameron
2026-05-12 22:32 ` [PATCH v2 5/5] iio: light: tcs3472: move standalone return to default case Aldo Conte
2026-05-13  8:16   ` Joshua Crofts
2026-05-13 11:23   ` Andy Shevchenko
2026-05-13 16:12     ` Aldo Conte
2026-05-13 17:58       ` Andy Shevchenko
2026-05-15 18:05         ` Jonathan Cameron
2026-05-16 11:04           ` Aldo Conte
2026-05-16 12:25             ` Jonathan Cameron
2026-05-20 17:12               ` Aldo Conte
2026-05-21  1:03                 ` David Lechner
2026-05-21 11:31                   ` Jonathan Cameron [this message]
2026-05-15 15:11 ` [PATCH v2 0/5] devm conversion, wait time, locking cleanup Jonathan Cameron

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=20260521123125.4000a67a@jic23-huawei \
    --to=jic23@kernel.org \
    --cc=aldocontelk@gmail.com \
    --cc=andriy.shevchenko@intel.com \
    --cc=andy@kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel-mentees@lists.linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nuno.sa@analog.com \
    --cc=shuah@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