From: Lukasz Stelmach <l.stelmach@samsung.com> To: Tian Tao <tiantao6@hisilicon.com> Cc: <krzysztof.kozlowski@canonical.com>, <linux-samsung-soc@vger.kernel.org>, <linux-crypto@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org> Subject: Re: [PATCH v2] hwrng: exynos: Use pm_runtime_resume_and_get() to replace open coding Date: Tue, 25 May 2021 16:43:28 +0200 [thread overview] Message-ID: <dleftjcztezxf3.fsf%l.stelmach@samsung.com> (raw) In-Reply-To: <1621857218-28590-1-git-send-email-tiantao6@hisilicon.com> (Tian Tao's message of "Mon, 24 May 2021 19:53:38 +0800") [-- Attachment #1: Type: text/plain, Size: 1121 bytes --] It was <2021-05-24 pon 19:53>, when Tian Tao wrote: > use pm_runtime_resume_and_get() to replace pm_runtime_get_sync and > pm_runtime_put_noidle. this change is just to simplify the code, no > actual functional changes. > > Signed-off-by: Tian Tao <tiantao6@hisilicon.com> > --- > v2: drop unnecessary change about if condition. > --- > drivers/char/hw_random/exynos-trng.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > Acked-by: Łukasz Stelmach <l.stelmach@samsung.com> > diff --git a/drivers/char/hw_random/exynos-trng.c b/drivers/char/hw_random/exynos-trng.c > index c8db62b..9cc3d54 100644 > --- a/drivers/char/hw_random/exynos-trng.c > +++ b/drivers/char/hw_random/exynos-trng.c > @@ -196,10 +196,9 @@ static int __maybe_unused exynos_trng_resume(struct device *dev) > { > int ret; > > - ret = pm_runtime_get_sync(dev); > + ret = pm_runtime_resume_and_get(dev); > if (ret < 0) { > dev_err(dev, "Could not get runtime PM.\n"); > - pm_runtime_put_noidle(dev); > return ret; > } -- Łukasz Stelmach Samsung R&D Institute Poland Samsung Electronics [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 487 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Lukasz Stelmach <l.stelmach@samsung.com> To: Tian Tao <tiantao6@hisilicon.com> Cc: <krzysztof.kozlowski@canonical.com>, <linux-samsung-soc@vger.kernel.org>, <linux-crypto@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org> Subject: Re: [PATCH v2] hwrng: exynos: Use pm_runtime_resume_and_get() to replace open coding Date: Tue, 25 May 2021 16:43:28 +0200 [thread overview] Message-ID: <dleftjcztezxf3.fsf%l.stelmach@samsung.com> (raw) In-Reply-To: <1621857218-28590-1-git-send-email-tiantao6@hisilicon.com> (Tian Tao's message of "Mon, 24 May 2021 19:53:38 +0800") [-- Attachment #1.1: Type: text/plain, Size: 1121 bytes --] It was <2021-05-24 pon 19:53>, when Tian Tao wrote: > use pm_runtime_resume_and_get() to replace pm_runtime_get_sync and > pm_runtime_put_noidle. this change is just to simplify the code, no > actual functional changes. > > Signed-off-by: Tian Tao <tiantao6@hisilicon.com> > --- > v2: drop unnecessary change about if condition. > --- > drivers/char/hw_random/exynos-trng.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > Acked-by: Łukasz Stelmach <l.stelmach@samsung.com> > diff --git a/drivers/char/hw_random/exynos-trng.c b/drivers/char/hw_random/exynos-trng.c > index c8db62b..9cc3d54 100644 > --- a/drivers/char/hw_random/exynos-trng.c > +++ b/drivers/char/hw_random/exynos-trng.c > @@ -196,10 +196,9 @@ static int __maybe_unused exynos_trng_resume(struct device *dev) > { > int ret; > > - ret = pm_runtime_get_sync(dev); > + ret = pm_runtime_resume_and_get(dev); > if (ret < 0) { > dev_err(dev, "Could not get runtime PM.\n"); > - pm_runtime_put_noidle(dev); > return ret; > } -- Łukasz Stelmach Samsung R&D Institute Poland Samsung Electronics [-- Attachment #1.2: signature.asc --] [-- Type: application/pgp-signature, Size: 487 bytes --] [-- Attachment #2: Type: text/plain, Size: 176 bytes --] _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2021-05-25 14:43 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-05-24 11:53 [PATCH v2] hwrng: exynos: Use pm_runtime_resume_and_get() to replace open coding Tian Tao 2021-05-24 11:53 ` Tian Tao 2021-05-25 11:23 ` Krzysztof Kozlowski 2021-05-25 11:23 ` Krzysztof Kozlowski [not found] ` <CGME20210525144338eucas1p1ffe21ffce47146203dd1f6211a0e5408@eucas1p1.samsung.com> 2021-05-25 14:43 ` Lukasz Stelmach [this message] 2021-05-25 14:43 ` Lukasz Stelmach 2021-06-03 12:29 ` Herbert Xu 2021-06-03 12:29 ` Herbert Xu
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=dleftjcztezxf3.fsf%l.stelmach@samsung.com \ --to=l.stelmach@samsung.com \ --cc=krzysztof.kozlowski@canonical.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-crypto@vger.kernel.org \ --cc=linux-samsung-soc@vger.kernel.org \ --cc=tiantao6@hisilicon.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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.