From: maxime.ripard@free-electrons.com (Maxime Ripard)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 2/9] clk: sunxi: Add driver for A80 MMC config clocks/resets
Date: Tue, 20 Jan 2015 09:16:07 +0100 [thread overview]
Message-ID: <20150120081607.GT4367@lukather> (raw)
In-Reply-To: <CAGb2v64fpt-iw7Yf5OjTeZSJUb4z48jMd5T5nvM1vCzf=xEF3Q@mail.gmail.com>
On Tue, Jan 20, 2015 at 10:13:05AM +0800, Chen-Yu Tsai wrote:
> >> + clk_parent = of_clk_get_parent_name(np, 0);
> >> + if (!clk_parent)
> >> + return -EINVAL;
> >> +
> >> + data->clk = devm_clk_get(&pdev->dev, NULL);
> >> + if (IS_ERR(data->clk)) {
> >> + dev_err(&pdev->dev, "Could not get clock\n");
> >> + return PTR_ERR(data->clk);
> >> + }
> >
> > I'm wondering, why are you using of_clk_get_parent_name here, instead
> > of __clk_get_name on data->clk? That would avoid parsing the DT while
> > we already have that info.
>
> I hadn't thought of that. I was sticking to public consumer APIs.
> Do you want me to respin this one?
I don't think it's really a !consumer API. All it does is returning
clk->name, which is accessible even to consumers.
But yeah, please resend it.
Thanks!
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150120/07529805/attachment.sig>
next prev parent reply other threads:[~2015-01-20 8:16 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-17 5:19 [PATCH v4 0/9] ARM: sun9i: Enable MMC support on Allwinner A80 Chen-Yu Tsai
2015-01-17 5:19 ` [PATCH v4 1/9] clk: sunxi: Add mod0 and mmc module clock support for A80 Chen-Yu Tsai
2015-01-19 21:49 ` Maxime Ripard
2015-01-17 5:19 ` [PATCH v4 2/9] clk: sunxi: Add driver for A80 MMC config clocks/resets Chen-Yu Tsai
2015-01-19 21:57 ` Maxime Ripard
2015-01-20 2:13 ` Chen-Yu Tsai
2015-01-20 8:16 ` Maxime Ripard [this message]
2015-01-17 5:19 ` [PATCH v4 3/9] ARM: dts: sun9i: Add clock-indices property for bus gate clocks Chen-Yu Tsai
2015-01-19 21:59 ` Maxime Ripard
2015-01-20 1:50 ` Chen-Yu Tsai
2015-01-17 5:19 ` [PATCH v4 4/9] ARM: dts: sun9i: Add mmc config clock nodes Chen-Yu Tsai
2015-01-19 22:02 ` Maxime Ripard
2015-01-17 5:19 ` [PATCH v4 5/9] ARM: dts: sun9i: Add mmc controller nodes to the A80 dtsi Chen-Yu Tsai
2015-01-19 22:05 ` Maxime Ripard
2015-01-17 5:19 ` [PATCH v4 6/9] ARM: dts: sun9i: Convert a80 optimus board dts to label referencing Chen-Yu Tsai
2015-01-19 22:05 ` Maxime Ripard
2015-01-17 5:19 ` [PATCH v4 7/9] ARM: dts: sun9i: Enable mmc0 on A80 Optimus Board Chen-Yu Tsai
2015-01-19 22:06 ` Maxime Ripard
2015-01-17 5:19 ` [PATCH v4 8/9] ARM: dts: sun9i: Add 8 bit mmc pinmux setting for mmc2 Chen-Yu Tsai
2015-01-19 22:06 ` Maxime Ripard
2015-01-17 5:19 ` [PATCH v4 9/9] ARM: dts: sun9i: Enable mmc2 on A80 Optimus Board Chen-Yu Tsai
2015-01-19 22:07 ` Maxime Ripard
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=20150120081607.GT4367@lukather \
--to=maxime.ripard@free-electrons.com \
--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;
as well as URLs for NNTP newsgroup(s).