[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170121001648.GJ20800@codeaurora.org>
Date: Fri, 20 Jan 2017 16:16:48 -0800
From: Stephen Boyd <sboyd@...eaurora.org>
To: Gregory CLEMENT <gregory.clement@...e-electrons.com>
Cc: Ulf Hansson <ulf.hansson@...aro.org>,
Adrian Hunter <adrian.hunter@...el.com>,
linux-mmc@...r.kernel.org, Jason Cooper <jason@...edaemon.net>,
Andrew Lunn <andrew@...n.ch>,
Sebastian Hesselbarth <sebastian.hesselbarth@...il.com>,
Thomas Petazzoni <thomas.petazzoni@...e-electrons.com>,
linux-arm-kernel@...ts.infradead.org,
Mike Turquette <mturquette@...libre.com>,
linux-clk@...r.kernel.org, linux-kernel@...r.kernel.org,
Rob Herring <robh+dt@...nel.org>, devicetree@...r.kernel.org,
Ziji Hu <huziji@...vell.com>, Jimmy Xu <zmxu@...vell.com>,
Jisheng Zhang <jszhang@...vell.com>,
Nadav Haklai <nadavh@...vell.com>, Ryan Gao <ygao@...vell.com>,
Doug Jones <dougj@...vell.com>, Victor Gu <xigu@...vell.com>,
"Wei(SOCP) Liu" <liuw@...vell.com>,
Wilson Ding <dingwei@...vell.com>,
Yehuda Yitschak <yehuday@...vell.com>,
Marcin Wojtas <mw@...ihalf.com>,
Hanna Hawa <hannah@...vell.com>,
Kostya Porotchkin <kostap@...vell.com>,
Russell King <rmk+kernel@...linux.org.uk>
Subject: Re: [PATCH v5 01/12] clk: apn806: Add eMMC clock to system
controller driver
On 01/11, Gregory CLEMENT wrote:
> From: Konstantin Porotchkin <kostap@...vell.com>
>
> Add fixed clock of 400MHz to system controller driver. This clock is
> used as SD/eMMC clock source.
>
> Signed-off-by: Konstantin Porotchkin <kostap@...vell.com>
> Reviewed-by: Omri Itach <omrii@...vell.com>
> Reviewed-by: Hanna Hawa <hannah@...vell.com>
> [fixed up conflicts, added error handling --rmk]
> Signed-off-by: Russell King <rmk+kernel@...linux.org.uk>
> Signed-off-by: Gregory CLEMENT <gregory.clement@...e-electrons.com>
> ---
Acked-by: Stephen Boyd <sboyd@...eaurora.org>
> diff --git a/drivers/clk/mvebu/ap806-system-controller.c b/drivers/clk/mvebu/ap806-system-controller.c
> index 8181b919f062..0a785076b0c6 100644
> --- a/drivers/clk/mvebu/ap806-system-controller.c
> +++ b/drivers/clk/mvebu/ap806-system-controller.c
> @@ -117,6 +117,17 @@ static int ap806_syscon_clk_probe(struct platform_device *pdev)
> goto fail3;
> }
>
> + /* eMMC Clock is fixed clock divided by 3 */
> + of_property_read_string_index(np, "clock-output-names",
> + 4, &name);
This could check for failure and not register the clk if the name
isn't there? Then dts can be backwards compatible.
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
Powered by blists - more mailing lists