[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <53B18984.7010607@collabora.co.uk>
Date: Mon, 30 Jun 2014 18:00:04 +0200
From: Javier Martinez Canillas <javier.martinez@...labora.co.uk>
To: Russell King - ARM Linux <linux@....linux.org.uk>
CC: Yadwinder Singh Brar <yadi.brar01@...il.com>,
Alessandro Zummo <a.zummo@...ertech.it>,
Krzysztof Kozlowski <k.kozlowski@...sung.com>,
Kukjin Kim <kgene.kim@...sung.com>,
Mike Turquette <mturquette@...aro.org>,
Samuel Ortiz <sameo@...ux.intel.com>,
Tomeu Vizoso <tomeu.vizoso@...labora.com>,
devicetree <devicetree@...r.kernel.org>,
linux-kernel <linux-kernel@...r.kernel.org>,
Liam Girdwood <lgirdwood@...il.com>,
Doug Anderson <dianders@...omium.org>,
linux-samsung-soc <linux-samsung-soc@...r.kernel.org>,
Sjoerd Simons <sjoerd.simons@...labora.co.uk>,
Mark Brown <broonie@...nel.org>,
Olof Johansson <olof@...om.net>,
Lee Jones <lee.jones@...aro.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
Daniel Stone <daniels@...labora.com>
Subject: Re: [PATCH v5 05/14] clk: Add generic driver for Maxim PMIC clocks
Hello Russell,
Thanks a lot for your suggestion.
On 06/30/2014 01:35 PM, Russell King - ARM Linux wrote:
> On Mon, Jun 30, 2014 at 12:58:57PM +0200, Javier Martinez Canillas wrote:
>> >> + if (!max_gen->lookup)
>> >> + return ERR_PTR(-ENOMEM);
>> >> +
>> >> + max_gen->lookup->con_id = hw->init->name;
>> >
>> > Also IMO, init->name should be over-written if name is provided in DT,
>> > otherwise generic "clock-output-names" property will go futile,
>> > perhaps it should be done before clk_register.
>> >
>>
>> Even though Documentation/devicetree/bindings/clock/clock-bindings.txt says that
>> the "clock-output-names" property is optional I agree with you that will be
>> better to support it. So I'll add it on the next version as well.
>
> However, remember that con_id is the _DEVICE_ specific connection name,
> not the _CLOCK_ name. You will get a NAK from me if you violate this
> rule.
>
Yes I know that con_id is the device specific connection name that is set by the
consumers using the "clock-names" property. But AFAIU the clk_lookup structs
added by clockdev_add() are only used by legacy non-DT drivers which don't set
their clock names and instead is the clock driver the one that set con_id to the
struct clk_init_data .name field.
I see that other drivers do the same, is that wrong as well? What value should
have con_id when registering clkdevs for legacy non-DT drivers?
DT enabled drivers whose devices define their "clock-names" are not affected by
this since the clock lookup is made by matching OF "clock-names" property + and
index.
Best regards,
Javier
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists