[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <57ef23b0-9c6b-cdd4-9a1a-41c6d5b3aa93@linaro.org>
Date: Tue, 18 Dec 2018 09:37:29 +0100
From: Jorge Ramirez <jorge.ramirez-ortiz@...aro.org>
To: Stephen Boyd <sboyd@...nel.org>, andy.gross@...aro.org,
david.brown@...aro.org, jassisinghbrar@...il.com,
mark.rutland@....com, mturquette@...libre.com, robh+dt@...nel.org,
will.deacon@....com
Cc: bjorn.andersson@...aro.org, vkoul@...nel.org,
niklas.cassel@...aro.org, sibis@...eaurora.org,
georgi.djakov@...aro.org, arnd@...db.de,
horms+renesas@...ge.net.au, heiko@...ech.de,
enric.balletbo@...labora.com, jagan@...rulasolutions.com,
olof@...om.net, amit.kucheria@...aro.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>, linux-clk@...r.kernel.org
Subject: Re: [PATCH 05/13] clk: qcom: apcs-msm8916: get parent clock names
from DT
On 12/18/18 00:37, Stephen Boyd wrote:
> Quoting Jorge Ramirez-Ortiz (2018-12-17 01:46:22)
>> Allow accessing the parent clock names required for the driver
>> operation by using the device tree node.
>>
>> This permits extending the driver to other platforms without having to
>> modify its source code.
>>
>> For backwards compatibility leave previous values as default.
> Why do we need to maintain backwards compatibility? Isn't is required
> that the nodes have clocks properties?
>
>
this driver -apcs clock controller- uses platform data (not DT) and
therefore it uses the DT from the parent node (mailbox).
And for the mailbox the clock property is optional.
So the APCS clock controller requires that the parent provides at least
one clock but the clock is not mandatory in the parent DT node.
For instance in the case of the msm8916, the parent only provides one
clock, just the pll.
am I required to modify that platform instead of maintaining backwards
compatibility?
Powered by blists - more mailing lists