From: robert.jarzmik@free.fr (Robert Jarzmik)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/7] mtd: pxa3xx_nand: add a non mandatory ECC clock
Date: Wed, 03 Jun 2015 21:23:58 +0200 [thread overview]
Message-ID: <87bngw61f5.fsf@belgarion.home> (raw)
In-Reply-To: <1433266351-22587-2-git-send-email-antoine.tenart@free-electrons.com> (Antoine Tenart's message of "Tue, 2 Jun 2015 19:32:25 +0200")
Antoine Tenart <antoine.tenart@free-electrons.com> writes:
> Some controllers (as the coming Berlin nand controller) need to enable
> an ECC clock. Add support for this clock in the pxa3xx nand driver, and
> leave it as non mandatory.
> - info->clk = devm_clk_get(&pdev->dev, NULL);
> + info->clk = devm_clk_get(&pdev->dev, "nfc");
> if (IS_ERR(info->clk)) {
> - dev_err(&pdev->dev, "failed to get nand clock\n");
> - return PTR_ERR(info->clk);
> + info->clk = devm_clk_get(&pdev->dev, NULL);
> +
> + if (IS_ERR(info->clk)) {
> + dev_err(&pdev->dev, "failed to get nand clock\n");
> + return PTR_ERR(info->clk);
> + }
I suppose this is done to keep the compatibility with existing pxa3xx/berlin
clock code, which was defined without a con_id. More specifically I'm thinking
of the function clk_find().
Now maybe it would be cleaner to keep you "nfc" change, remove the failback plan
with NULL as an con_id, and change the clock providers. I cannot speak for
berlin/others, but for pxa3xx, this is one 3 hunks change in :
- drivers/clk/pxa/clk-pxa3xx.c
Cheers.
--
Robert
next prev parent reply other threads:[~2015-06-03 19:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-02 17:32 [PATCH 0/7] ARM: berlin: nand support Antoine Tenart
2015-06-02 17:32 ` [PATCH 1/7] mtd: pxa3xx_nand: add a non mandatory ECC clock Antoine Tenart
2015-06-03 19:23 ` Robert Jarzmik [this message]
2015-06-02 17:32 ` [PATCH 2/7] Documentation: bindings: document the clocks for pxa3xx-nand Antoine Tenart
2015-06-03 19:12 ` Robert Jarzmik
2015-06-02 17:32 ` [PATCH 3/7] mtd: pxa3xx_nand: add support for the Marvell Berlin nand controller Antoine Tenart
2015-06-02 17:32 ` [PATCH 4/7] Documentation: bindings: add the Berlin nand controller compatible Antoine Tenart
2015-06-02 17:32 ` [PATCH 5/7] mtd: nand: let Marvell Berlin SoCs select the pxa3xx driver Antoine Tenart
2015-06-02 17:32 ` [PATCH 6/7] ARM: berlin: add BG2Q node for the nand Antoine Tenart
2015-06-02 17:32 ` [PATCH 7/7] ARM: berlin: enable flash on the BG2Q DMP Antoine Tenart
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=87bngw61f5.fsf@belgarion.home \
--to=robert.jarzmik@free.fr \
--cc=linux-arm-kernel@lists.infradead.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