Re: [PATCH v3] iio: gyro: bmg160: Discard pm_runtime_put_autosuspend() return values
From: Jonathan Cameron
Date: Sun Nov 29 2026 - 19:55:08 EST
On Tue, 17 Nov 2026 03:28:14 +0000
Jonathan Cameron <jic23@xxxxxxxxxx> wrote:
> On Wed, 11 Nov 2026 10:20:34 -0800
> Brian Norris <briannorris@xxxxxxxxxxxx> wrote:
>
> > Hi Jonathan,
> >
> > On Mon, Nov 02, 2026 at 01:16:02PM -0800, Brian Norris wrote:
> > > On Mon, Nov 02, 2026 at 01:48:30AM +0000, Jonathan Cameron wrote:
> > > > --- a/drivers/iio/gyro/bmg160_core.c
> > > > +++ b/drivers/iio/gyro/bmg160_core.c
> >
> > > > - data->ev_enable_state = state;
> > >
> > > This is an unexpected (to me) delta vs v2: you've stopped setting
> > > data->ev_enable_state here. I think that's a regression.
> > >
> > > This is also one reason I think it's unwise to make so many changes
> > > together here. One person's "churn" (to apply several patches to similar
> > > code) is another person's "hard to review / easy to make mistakes".
> >
> > Gentle ping on this one. I'd like to advance my
> > pm_runtime_put_autosuspend() series one way or another. I'm willing to
> > respin this one for you if you'd like, even if I'm still personally
> > hesitant to make so many of these changes together.
> >
> > I'm also open to going back to a minimal series -- that only drops the
> > return codes, and inlines functions that are trivial candidates.
>
> I want to find a bit more time to look at these. No rush yet given
> we are only at rc3.
>
> One advantage of being the maintainer is I can always pick up
> the simple version you first posted at the last minute so that
> we don't become a blocker on forwards progress in general.
> I'd like to do better though if time allows.
Things are getting away from me, so I've picked up what still applies
of your original patch (mma8452 requires some tweaking).
Can work on top of that for further cleanups.
https://lore.kernel.org/all/20261006161337.3.If2263e6ae9eaa4493881b72922dcde031ce9d81d@changeid/
On the testing branch of iio.git so queued up for next merge window.
Thanks,
Jonathan
>
> Jonathan
>
>
> >
> > Your call.
> >
> > Brian
> >
> > >
> > > > - mutex_unlock(&data->mutex);
> > > > + pm_runtime_put_autosuspend(dev);
> > > > + }
> > > >
> > > > return 0;
> > > > }
>
>