public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Rajendra Nayak <rnayak@ti.com>
To: Kevin Hilman <khilman@ti.com>
Cc: Roger Quadros <rogerq@ti.com>,
	balbi@ti.com, "J, KEERTHY" <j-keerthy@ti.com>,
	Tony Lindgren <tony@atomide.com>,
	lm-sensors@lm-sensors.org, vishwanath.bs@ti.com,
	linux-omap@vger.kernel.org, b-cousson@ti.com,
	Russell King <linux@arm.linux.org.uk>,
	Linux ARM Kernel Mailing List
	<linux-arm-kernel@lists.infradead.org>,
	khali@linux-fr.org, guenter.roeck@ericsson.com
Subject: Re: [RFC PATCH 6/6] hwmon: OMAP4: On die temperature sensor driver
Date: Wed, 24 Aug 2011 09:37:50 +0530	[thread overview]
Message-ID: <4E547916.9090106@ti.com> (raw)
In-Reply-To: <87ei0chwwz.fsf@ti.com>

On 8/23/2011 10:45 PM, Kevin Hilman wrote:
> Rajendra Nayak<rnayak@ti.com>  writes:
>
>> On 8/23/2011 5:28 AM, Kevin Hilman wrote:
>>> Rajendra Nayak<rnayak@ti.com>   writes:
>>>
>>> [...]
>>>
>>>> FWIK, its a one time requirement to set the clock rate to the
>>>> right rate the device can operate in based on what a platform
>>>> supports.
>>>
>>> Except $SUBJECT patch hard-codes the clock rate for all platforms in the
>>> driver.
>>
>> The device has a requirement to operate in a 1Mhz to 2Mhz range.
>
> You mean the device on OMAP4 has this requirement.
>
> Will this requirement exist on every platform that uses any version of
> this IP (or future similar IPs)?  I suspect not.

I agree, the current limitation is specific to the IP rev used, and
might change for a never version of the IP.

>
>> So the driver is using a clk_round_rate() to get the closest rate
>> supported and sets it using a clk_set_rate().
>>
>>>
>>> If the clock rate is to be platform-specific, it should be done in
>>> platform-specific code.
>>
>> I am fine if this needs to be moved to platform-specific code, but I
>> wasn't quite sure this needs to be done in clock framework as was
>> suggested.
>
> No, it should't be in clock framework.  But since the frequency range is
> platform-specific, it should be initialized in platform-specific code.
> Having min/max parameters passed by platform data as suggested by
> J. Keerthy is fine.
>
> Probably even better is to have the driver have a default min/max rang
> which can be overridden by platform_data only if needed.

This sounds better since if the same IP rev is used on other platforms
which does not change the min/max, the driver can do with the default
and that would avoid duplications of same min/max having to be passed
for multiple platforms.

>
> Kevin


  reply	other threads:[~2011-08-24  4:08 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-10 12:25 [RFC PATCH 0/6] OMAP4: Temperature sensor driver Keerthy
2011-08-10 12:25 ` [RFC PATCH 1/6] OMAP4: Clock: Associate clocks for OMAP temperature sensor Keerthy
2011-08-10 12:25 ` [RFC PATCH 2/6] OMAP4: Adding the temperature sensor register set bit fields Keerthy
2011-08-10 12:25 ` [RFC PATCH 3/6] OMAP4: Hwmod: OMAP temperature sensor Keerthy
2011-08-10 12:25 ` [RFC PATCH 4/6] OMAP4: Temperature sensor device support Keerthy
2011-08-10 12:36   ` Felipe Balbi
2011-08-10 12:41     ` Tony Lindgren
2011-08-10 12:48       ` Felipe Balbi
2011-08-10 14:17         ` Cousson, Benoit
2011-08-10 21:37           ` Felipe Balbi
2011-08-11  2:40     ` J, KEERTHY
2011-08-11 10:30       ` Felipe Balbi
2011-08-11 11:01         ` J, KEERTHY
2011-08-11 14:05           ` Felipe Balbi
2011-08-11 14:15             ` J, KEERTHY
2011-08-10 12:25 ` [RFC PATCH 5/6] OMAP4460: Temperature sensor data Keerthy
2011-08-10 12:37   ` Felipe Balbi
2011-08-10 15:08     ` J, KEERTHY
2011-08-10 12:25 ` [RFC PATCH 6/6] hwmon: OMAP4: On die temperature sensor driver Keerthy
2011-08-10 12:46   ` Felipe Balbi
2011-08-11  9:57     ` J, KEERTHY
2011-08-11 10:36       ` Felipe Balbi
2011-08-11 13:00         ` J, KEERTHY
2011-08-11 14:12           ` Felipe Balbi
2011-08-11 14:25             ` Rajendra Nayak
2011-08-11 14:32             ` J, KEERTHY
2011-08-11 18:54               ` Felipe Balbi
2011-08-11 18:55                 ` Felipe Balbi
2011-08-11 21:37                   ` Roger Quadros
2011-08-12  1:02                     ` J, KEERTHY
2011-08-12  3:26                     ` Rajendra Nayak
2011-08-12  8:44                       ` Felipe Balbi
2011-08-22 23:58                       ` Kevin Hilman
2011-08-23  4:18                         ` Rajendra Nayak
2011-08-23  6:42                           ` J, KEERTHY
2011-08-23 17:15                           ` Kevin Hilman
2011-08-24  4:07                             ` Rajendra Nayak [this message]
2011-08-11 16:38           ` Guenter Roeck
2011-08-10 16:35   ` [lm-sensors] " R, Durgadoss
2011-08-15  6:22     ` J, KEERTHY
2011-08-17 10:37       ` J, KEERTHY
2011-08-17 13:45         ` Guenter Roeck
2011-08-17 15:03           ` [lm-sensors] " J, KEERTHY

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=4E547916.9090106@ti.com \
    --to=rnayak@ti.com \
    --cc=b-cousson@ti.com \
    --cc=balbi@ti.com \
    --cc=guenter.roeck@ericsson.com \
    --cc=j-keerthy@ti.com \
    --cc=khali@linux-fr.org \
    --cc=khilman@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=lm-sensors@lm-sensors.org \
    --cc=rogerq@ti.com \
    --cc=tony@atomide.com \
    --cc=vishwanath.bs@ti.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox