[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aYHYdIISTPbB6Qh8@smile.fi.intel.com>
Date: Tue, 3 Feb 2026 13:13:56 +0200
From: Andy Shevchenko <andriy.shevchenko@...el.com>
To: Antoniu Miclaus <antoniu.miclaus@...log.com>
Cc: Linus Walleij <linusw@...nel.org>, Jonathan Cameron <jic23@...nel.org>,
David Lechner <dlechner@...libre.com>,
Nuno Sá <nuno.sa@...log.com>,
Andy Shevchenko <andy@...nel.org>, linux-iio@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] iio: gyro: mpu3050-i2c: use pm_runtime_resume_and_get()
On Fri, Jan 30, 2026 at 05:32:26PM +0200, Antoniu Miclaus wrote:
> Use pm_runtime_resume_and_get() in bypass_select() and return its
> result directly. Unlike pm_runtime_get_sync(), it doesn't increment
> the refcount on failure.
...
> /* Just power up the device, that is all that is needed */
> - pm_runtime_get_sync(mpu3050->dev);
> - return 0;
> + return pm_runtime_resume_and_get(mpu3050->dev);
Will it also return positive values?
...
Same Q to the next change.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists