All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rajendra Nayak <rnayak@ti.com>
To: Paul Walmsley <paul@pwsan.com>
Cc: Keerthy <j-keerthy@ti.com>,
	linux-omap@vger.kernel.org, tony@atomide.com, "Cousson,
	Benoit" <b-cousson@ti.com>
Subject: Re: [PATCH 1/6 V4] OMAP4: Clock: Associate clocks for OMAP temperature sensor
Date: Fri, 02 Sep 2011 12:42:40 +0530	[thread overview]
Message-ID: <4E6081E8.3090509@ti.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1108311757260.26173@utopia.booyaka.com>

Hi Paul,

On Thursday 01 September 2011 05:30 AM, Paul Walmsley wrote:
> Hi,
>
> a comment:
>
> On Wed, 31 Aug 2011, Keerthy wrote:
>
>> div_ts_ck feeds only the temperature sensor functional clock
>> and also has a clksel associated (for divider selection). Mapping this
>> as the functional clock for the temperature sensor in clkdev table,
>> so a clk_set_rate() in the driver would have the effect of changing the
>> temperature sensor clock rate indirectly.
>>
>> Signed-off-by: Keerthy<j-keerthy@ti.com>
>> Reviewed-by: Rajendra Nayak<rnayak@ti.com>
>> Cc: tony@atomide.com
>> Cc: rnayak@ti.com
>> ---
>>   arch/arm/mach-omap2/clock44xx_data.c |    2 +-
>>   1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/arch/arm/mach-omap2/clock44xx_data.c b/arch/arm/mach-omap2/clock44xx_data.c
>> index 2af0e3f..4a788f4 100644
>> --- a/arch/arm/mach-omap2/clock44xx_data.c
>> +++ b/arch/arm/mach-omap2/clock44xx_data.c
>> @@ -3187,7 +3187,7 @@ static struct omap_clk omap44xx_clks[] = {
>>   	CLK(NULL,	"bandgap_fclk",			&bandgap_fclk,	CK_443X),
>>   	CLK(NULL,	"bandgap_ts_fclk",		&bandgap_ts_fclk,	CK_446X),
>>   	CLK(NULL,	"des3des_fck",			&des3des_fck,	CK_443X),
>> -	CLK(NULL,	"div_ts_ck",			&div_ts_ck,	CK_446X),
>> +	CLK("omap_temp_sensor.0",	"fck",			&div_ts_ck,	CK_446X),
>
> It shouldn't be necessary to add the device name/ID here.  We're trying
> to get rid of these.  The omap_device code should take care of adding the
> appropriate alias.

The problem seems to be that we have 2 clock nodes modeled,
bandgap_ts_fclk with enable/disable ops, (which also happens
to be the main_clk for the bandgap hwmod) and div_ts_ck (as
parent of bandgap_ts_fclk) with clksel for divider selection.
Like you said, the clkdev entries are added by omap_device code
for bandgap_ts_fclk, however doing a clk_set_rate on it from
the driver has no effect as the clksel information is missing
and is modeled in the parent (div_ts_ck) node.
 From looking at it, it makes sense to merge these 2 nodes and fix
the autogen scripts which currently generate 2 separate nodes.
what do you think?

regards,
Rajendra


>
>
>>   	CLK(NULL,	"dmic_sync_mux_ck",		&dmic_sync_mux_ck,	CK_443X),
>>   	CLK(NULL,	"dmic_fck",			&dmic_fck,	CK_443X),
>>   	CLK(NULL,	"dsp_fck",			&dsp_fck,	CK_443X),
>> --
>> 1.7.0.4
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>
>
> - Paul


  reply	other threads:[~2011-09-02  7:12 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-31 17:25 [PATCH 0/6 V4] OMAP4: Temperature sensor driver Keerthy
2011-08-31 17:25 ` [PATCH 1/6 V4] OMAP4: Clock: Associate clocks for OMAP temperature sensor Keerthy
2011-09-01  0:00   ` Paul Walmsley
2011-09-02  7:12     ` Rajendra Nayak [this message]
2011-08-31 17:25 ` [PATCH 2/6 V4] OMAP4: Adding the temperature sensor register set bit fields Keerthy
2011-09-01  0:04   ` Paul Walmsley
2011-09-01  2:57     ` J, KEERTHY
2011-08-31 17:25 ` [PATCH 3/6 V4] OMAP4460: Temperature sensor data Keerthy
2011-08-31 17:25 ` [PATCH 4/6 V4] OMAP4: Hwmod: OMAP temperature sensor Keerthy
2011-08-31 23:16   ` Paul Walmsley
2011-09-06 18:24     ` J, KEERTHY
2011-08-31 17:25 ` [PATCH 5/6 V4] OMAP4: Temperature sensor device support Keerthy
2011-09-09  9:28   ` Jean Pihet
2011-08-31 17:25 ` [PATCH 6/6 V4] hwmon: OMAP4: On die temperature sensor driver Keerthy
2011-08-31 17:37   ` [lm-sensors] [PATCH 6/6 V4] hwmon: OMAP4: On die temperature sensor Keerthy
2011-08-31 23:56   ` [PATCH 6/6 V4] hwmon: OMAP4: On die temperature sensor driver Paul Walmsley
2011-08-31 23:56     ` [lm-sensors] [PATCH 6/6 V4] hwmon: OMAP4: On die temperature Paul Walmsley
2011-09-06 11:49     ` [PATCH 6/6 V4] hwmon: OMAP4: On die temperature sensor driver J, KEERTHY
2011-09-06 11:52       ` [lm-sensors] [PATCH 6/6 V4] hwmon: OMAP4: On die temperature J, KEERTHY
2011-09-01  0:36   ` [PATCH 6/6 V4] hwmon: OMAP4: On die temperature sensor driver Paul Walmsley
2011-09-01  0:36     ` [lm-sensors] [PATCH 6/6 V4] hwmon: OMAP4: On die temperature Paul Walmsley
2011-09-01  1:49     ` [PATCH 6/6 V4] hwmon: OMAP4: On die temperature sensor driver Guenter Roeck
2011-09-01  1:49       ` [lm-sensors] [PATCH 6/6 V4] hwmon: OMAP4: On die temperature Guenter Roeck
2011-09-01  4:09       ` [PATCH 6/6 V4] hwmon: OMAP4: On die temperature sensor driver Paul Walmsley
2011-09-01  4:09         ` [lm-sensors] [PATCH 6/6 V4] hwmon: OMAP4: On die temperature Paul Walmsley
2011-09-01  4:40         ` [PATCH 6/6 V4] hwmon: OMAP4: On die temperature sensor driver Guenter Roeck
2011-09-01  4:40           ` [lm-sensors] [PATCH 6/6 V4] hwmon: OMAP4: On die temperature Guenter Roeck
2011-09-06 18:02           ` [PATCH 6/6 V4] hwmon: OMAP4: On die temperature sensor driver J, KEERTHY
2011-09-06 18:14             ` [lm-sensors] [PATCH 6/6 V4] hwmon: OMAP4: On die temperature J, KEERTHY
2011-09-06 18:12             ` [PATCH 6/6 V4] hwmon: OMAP4: On die temperature sensor driver Guenter Roeck
2011-09-06 18:12               ` [lm-sensors] [PATCH 6/6 V4] hwmon: OMAP4: On die temperature Guenter Roeck
2011-09-06 18:41               ` [PATCH 6/6 V4] hwmon: OMAP4: On die temperature sensor driver J, KEERTHY
2011-09-06 18:53                 ` [lm-sensors] [PATCH 6/6 V4] hwmon: OMAP4: On die temperature J, KEERTHY
2011-09-07 14:32                 ` [PATCH 6/6 V4] hwmon: OMAP4: On die temperature sensor driver J, KEERTHY
2011-09-07 14:44                   ` [lm-sensors] [PATCH 6/6 V4] hwmon: OMAP4: On die temperature J, KEERTHY
2011-09-08 18:39           ` [PATCH 6/6 V4] hwmon: OMAP4: On die temperature sensor driver Mark Brown
2011-09-08 18:39             ` [lm-sensors] [PATCH 6/6 V4] hwmon: OMAP4: On die temperature Mark Brown
2011-09-06 17:57         ` [PATCH 6/6 V4] hwmon: OMAP4: On die temperature sensor driver J, KEERTHY
2011-09-06 17:58           ` [lm-sensors] [PATCH 6/6 V4] hwmon: OMAP4: On die temperature J, KEERTHY
2011-09-06 17:50     ` [PATCH 6/6 V4] hwmon: OMAP4: On die temperature sensor driver J, KEERTHY
2011-09-06 17:53       ` [lm-sensors] [PATCH 6/6 V4] hwmon: OMAP4: On die temperature J, KEERTHY
2011-09-01  4:38   ` [PATCH 6/6 V4] hwmon: OMAP4: On die temperature sensor driver Guenter Roeck
2011-09-01  4:38     ` [lm-sensors] [PATCH 6/6 V4] hwmon: OMAP4: On die temperature Guenter Roeck

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=4E6081E8.3090509@ti.com \
    --to=rnayak@ti.com \
    --cc=b-cousson@ti.com \
    --cc=j-keerthy@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=paul@pwsan.com \
    --cc=tony@atomide.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.