From: Andy Shevchenko <andriy.shevchenko@intel.com>
To: Antoniu Miclaus <antoniu.miclaus@analog.com>
Cc: "Linus Walleij" <linusw@kernel.org>,
"Jonathan Cameron" <jic23@kernel.org>,
"David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] iio: gyro: mpu3050-i2c: use pm_runtime_resume_and_get()
Date: Tue, 3 Feb 2026 13:13:56 +0200 [thread overview]
Message-ID: <aYHYdIISTPbB6Qh8@smile.fi.intel.com> (raw)
In-Reply-To: <20260130153227.213413-1-antoniu.miclaus@analog.com>
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
prev parent reply other threads:[~2026-02-03 11:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-30 15:32 Antoniu Miclaus
2026-01-30 15:32 ` [PATCH] iio: gyro: mpu3050-core: " Antoniu Miclaus
2026-02-03 0:21 ` Linus Walleij
2026-01-31 16:41 ` [PATCH] iio: gyro: mpu3050-i2c: " Jonathan Cameron
2026-02-03 9:39 ` Nuno Sá
2026-02-03 11:13 ` Andy Shevchenko [this message]
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=aYHYdIISTPbB6Qh8@smile.fi.intel.com \
--to=andriy.shevchenko@intel.com \
--cc=andy@kernel.org \
--cc=antoniu.miclaus@analog.com \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=linusw@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.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
Powered by JetHome