From: "J, KEERTHY" <j-keerthy@ti.com>
To: Paul Walmsley <paul@pwsan.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH 3/6] OMAP4460: Temperature sensor data
Date: Mon, 26 Sep 2011 09:55:19 +0530 [thread overview]
Message-ID: <CAJ6a13YCkps5R4drFVp=it2cv1eMP1=hVX0ArccF3Hej4EwRPg@mail.gmail.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1109240141310.22872@utopia.booyaka.com>
On Sat, Sep 24, 2011 at 1:18 PM, Paul Walmsley <paul@pwsan.com> wrote:
> On Fri, 23 Sep 2011, J, KEERTHY wrote:
>
>> On Fri, Sep 23, 2011 at 11:33 AM, Paul Walmsley <paul@pwsan.com> wrote:
>> >
>> > On Thu, 22 Sep 2011, Keerthy wrote:
>> >
>> >> @@ -0,0 +1,175 @@
>> >> +/*
>> >> + * OMAP system control module header file
>> >> + *
>> >> + * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
>> >> + * Author: J Keerthy <j-keerthy@ti.com>
>> >> + *
>> >> + * This program is free software; you can redistribute it and/or
>> >> + * modify it under the terms of the GNU General Public License
>> >> + * version 2 as published by the Free Software Foundation.
>> >> + *
>> >> + * This program is distributed in the hope that it will be useful, but
>> >> + * WITHOUT ANY WARRANTY; without even the implied warranty of
>> >> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
>> >> + * General Public License for more details.
>> >> + *
>> >> + * You should have received a copy of the GNU General Public License
>> >> + * along with this program; if not, write to the Free Software
>> >> + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
>> >> + * 02110-1301 USA
>> >> + *
>> >> + */
>> >> +
>> >> +#ifndef __ARCH_ARM_PLAT_OMAP_INCLUDE_PLAT_TEMPERATURE_SENSOR_H
>> >> +#define __ARCH_ARM_PLAT_OMAP_INCLUDE_PLAT_TEMPERATURE_SENSOR_H
>> >
>> > You're also missing important #includes here for things like mutexes
>> > and kernel types that you use later on in the file.
>>
>> Those header files are included in c files.
>
> And how does that affect my comment?
>
>> >> +#define OMAP_ADC_START_VALUE 530
>> >> +#define OMAP_ADC_END_VALUE 923
>> >
>> > Are these OMAP4460, OMAP4xxx, or OMAP2+ specific?
>>
>> OMAP4460. I will pass even these values through pdata
>> since they differ from platform to platform.
>
> So then the macro names need to include "OMAP4460" or whatever SoC
> they are first valid for.
>
>> >> +
>> >> +/**
>> >> + * struct omap4460plus_scm_dev_attr - device attributes for scm
>> >
>> > There are loads of references to 'omap4460plus' when it seems to me that
>> > much of this driver should also apply to OMAP4430 also. Shouldn't this
>> > driver be named something like 'omap4430plus_scm' or even
>> > better 'omap4_scm' ?
>>
>> This is used by hwmod. Hence keeping it in the header file.
>
> Did you even read my comment before responding?
Sorry about this. OMAP4430 and OMAP4460 temperature sensors are different.
The register layout and the functionalities differ. The OMAP4430 temperature
sensor is not accurate. The SCM driver can be generic but the temperature
sensor driver should be OMAP4460 onwards. Please let me know if this is fine?
>
>
> - Paul
--
Regards and Thanks,
Keerthy
--
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
next prev parent reply other threads:[~2011-09-26 4:25 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-22 15:29 [PATCH 0/6] system control module device and support for temperature sensor Keerthy
2011-09-22 15:29 ` [PATCH 1/6] OMAP4: Adding the temperature sensor register set bit fields Keerthy
2011-09-23 5:16 ` Paul Walmsley
2011-09-23 5:56 ` J, KEERTHY
2011-09-22 15:29 ` [PATCH 2/6] OMAP4: Clock: Associate clocks for OMAP temperature sensor Keerthy
2011-09-23 5:18 ` Paul Walmsley
2011-09-23 5:53 ` J, KEERTHY
2011-09-23 5:58 ` Paul Walmsley
2011-09-23 13:22 ` J, KEERTHY
2011-09-24 7:38 ` Paul Walmsley
2011-09-22 15:29 ` [PATCH 3/6] OMAP4460: Temperature sensor data Keerthy
2011-09-23 6:03 ` Paul Walmsley
2011-09-23 13:47 ` J, KEERTHY
2011-09-24 7:48 ` Paul Walmsley
2011-09-26 4:25 ` J, KEERTHY [this message]
2011-09-24 7:59 ` Paul Walmsley
2011-09-24 9:02 ` J, KEERTHY
2011-09-22 15:29 ` [PATCH 4/6] OMAP4: Hwmod: system control module hwmod Keerthy
2011-09-23 6:15 ` Paul Walmsley
2011-09-23 13:49 ` J, KEERTHY
2011-09-22 15:29 ` [PATCH 5/6] OMAP4: System control module device support Keerthy
2011-09-22 15:29 ` [PATCH 6/6] OMAP4460: Clock: Adding support for 4460 specific clocks Keerthy
2011-09-23 5:49 ` Paul Walmsley
2011-09-23 19:45 ` Paul Walmsley
2011-09-30 1:12 ` Paul Walmsley
2011-10-04 0:43 ` Tony Lindgren
2011-10-04 3:51 ` Paul Walmsley
2011-10-04 6:24 ` Shilimkar, Santosh
2011-10-06 18:24 ` Tony Lindgren
2011-09-23 5:15 ` [PATCH 0/6] system control module device and support for temperature sensor Paul Walmsley
2011-09-23 5:54 ` J, KEERTHY
2011-09-23 6:35 ` Paul Walmsley
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='CAJ6a13YCkps5R4drFVp=it2cv1eMP1=hVX0ArccF3Hej4EwRPg@mail.gmail.com' \
--to=j-keerthy@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=paul@pwsan.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;
as well as URLs for NNTP newsgroup(s).