Re: [PATCH 5/5] iio: imu: icm20948: add runtime power management support

Greg KH
2025-09-01T06:08:06Z

On Sun, Aug 31, 2025 at 09:23:08PM +0200, Markus Elfring wrote:
> …
> > @@ -24,17 +24,24 @@ static const struct iio_chan_spec
> > static int inv_icm20948_temp_read_sensor(struct inv_icm20948_state *state,
> > s16 *temp)
> > {
> > - guard(mutex)(&state->lock);
> > + int ret;
> > +
> > + pm_runtime_get_sync(state->dev);
> > + mutex_lock(&state->lock);
> >
> > __be16 raw;
> > - int ret = regmap_bulk_read(state->regmap, INV_ICM20948_REG_TEMP_DATA,
> > + ret = regmap_bulk_read(state->regmap, INV_ICM20948_REG_TEMP_DATA,
> > &raw, sizeof(raw));
> > if (ret)
> > - return ret;
> > + goto out;
> >
> > *temp = __be16_to_cpu(raw);
> > + ret = 0;
> >
> > - return 0;
> > +out:
> > + mutex_unlock(&state->lock);
> > + pm_runtime_put_autosuspend(state->dev);
> > + return ret;
> > }
> …
>
> Does anything hinder you with the continued application of scope-based resource management
> for such a function implementation?
>
> Regards,
> Markus
>

Hi,

This is the friendly semi-automated patch-bot of Greg Kroah-Hartman.
You have sent him a patch that has triggered this response.

Right now, the development tree you have sent a patch for is "closed"
due to the timing of the merge window. Don't worry, the patch(es) you
have sent are not lost, and will be looked at after the merge window is
over (after the -rc1 kernel is released by Linus).

So thank you for your patience and your patches will be reviewed at this
later time, you do not have to do anything further, this is just a short
note to let you know the patch status and so you don't worry they didn't
make it through.

thanks,

greg k-h's patch email bot