From: Peter Korsgaard <peter@korsgaard.com>
To: Boris Brezillon <boris.brezillon@free-electrons.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>,
Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>,
Alexandre Belloni <alexandre.belloni@free-electrons.com>,
Andrew Victor <linux@maxim.org.za>,
Peter Korsgaard <jacmet@sunsite.dk>,
Matt Mackall <mpm@selenic.com>,
Herbert Xu <herbert@gondor.apana.org.au>,
linux-arm-kernel@lists.infradead.org,
Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Kumar Gala <galak@codeaurora.org>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/6] hwrng: atmel: use clk_prepapre_enable/_disable_unprepare
Date: Tue, 30 Sep 2014 18:55:05 +0200 [thread overview]
Message-ID: <87k34loxp2.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <1412093987-30241-3-git-send-email-boris.brezillon@free-electrons.com> (Boris Brezillon's message of "Tue, 30 Sep 2014 18:19:43 +0200")
>>>>> "Boris" == Boris Brezillon <boris.brezillon@free-electrons.com> writes:
> Use clk_prepapre_enable/_disable_unprepare instead of clk_enable/disable
> to work properly with the CCF.
s/prepapre/prepare/
Other than that, looks fine to me.
Acked-by: Peter Korsgaard <peter@korsgaard.com>
> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
> ---
> drivers/char/hw_random/atmel-rng.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
> diff --git a/drivers/char/hw_random/atmel-rng.c b/drivers/char/hw_random/atmel-rng.c
> index 851bc7e..644ec48 100644
> --- a/drivers/char/hw_random/atmel-rng.c
> +++ b/drivers/char/hw_random/atmel-rng.c
> @@ -67,7 +67,7 @@ static int atmel_trng_probe(struct platform_device *pdev)
> if (IS_ERR(trng->clk))
> return PTR_ERR(trng->clk);
> - ret = clk_enable(trng->clk);
> + ret = clk_prepare_enable(trng->clk);
> if (ret)
> return ret;
> @@ -95,7 +95,7 @@ static int atmel_trng_remove(struct platform_device *pdev)
> hwrng_unregister(&trng->rng);
> writel(TRNG_KEY, trng->base + TRNG_CR);
> - clk_disable(trng->clk);
> + clk_disable_unprepare(trng->clk);
> return 0;
> }
> @@ -105,7 +105,7 @@ static int atmel_trng_suspend(struct device *dev)
> {
> struct atmel_trng *trng = dev_get_drvdata(dev);
> - clk_disable(trng->clk);
> + clk_disable_unprepare(trng->clk);
> return 0;
> }
> @@ -114,7 +114,7 @@ static int atmel_trng_resume(struct device *dev)
> {
> struct atmel_trng *trng = dev_get_drvdata(dev);
> - return clk_enable(trng->clk);
> + return clk_prepare_enable(trng->clk);
> }
> static const struct dev_pm_ops atmel_trng_pm_ops = {
> --
> 1.9.1
--
Bye, Peter Korsgaard
next prev parent reply other threads:[~2014-09-30 16:55 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-30 16:19 [PATCH 0/6] ARM: at91: remove at91sam9g45/9m10 legacy board support Boris Brezillon
2014-09-30 16:19 ` [PATCH 1/6] " Boris Brezillon
2014-09-30 16:56 ` Nicolas Ferre
2014-10-01 15:59 ` Alexandre Belloni
2014-09-30 16:19 ` [PATCH 2/6] hwrng: atmel: use clk_prepapre_enable/_disable_unprepare Boris Brezillon
2014-09-30 16:55 ` Peter Korsgaard [this message]
2014-10-01 7:13 ` [PATCH v2 " Boris Brezillon
2014-09-30 16:19 ` [PATCH 3/6] hwrng: atmel: add DT support Boris Brezillon
2014-09-30 16:57 ` Peter Korsgaard
2014-09-30 16:19 ` [PATCH 4/6] hwrng: atmel: Add TRNG DT binding doc Boris Brezillon
2014-09-30 17:12 ` Peter Korsgaard
2014-09-30 17:21 ` Boris Brezillon
2014-09-30 17:35 ` Peter Korsgaard
2014-09-30 16:19 ` [PATCH 5/6] ARM: at91/dt: add trng node Boris Brezillon
2014-11-19 15:57 ` Nicolas Ferre
2014-09-30 16:19 ` [PATCH 6/6] ARM: at91/dt: add ISI node Boris Brezillon
2014-11-19 15:51 ` Nicolas Ferre
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=87k34loxp2.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.com \
--cc=alexandre.belloni@free-electrons.com \
--cc=boris.brezillon@free-electrons.com \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=herbert@gondor.apana.org.au \
--cc=ijc+devicetree@hellion.org.uk \
--cc=jacmet@sunsite.dk \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@maxim.org.za \
--cc=mark.rutland@arm.com \
--cc=mpm@selenic.com \
--cc=nicolas.ferre@atmel.com \
--cc=pawel.moll@arm.com \
--cc=plagnioj@jcrosoft.com \
--cc=robh+dt@kernel.org \
/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
all inboxes | Powered by JetHome®