- To: "J\, KEERTHY" <j-keerthy@xxxxxx>
- Subject: Re: [PATCH V3 04/10] ARM: OMAP3: hwmod: rename the smartreflex entries
- From: Kevin Hilman <khilman@xxxxxx>
- Date: Mon, 07 May 2012 16:39:53 -0700
- Cc: "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>, "AnilKumar, Chimata" <anilkumar@xxxxxx>, "linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx" <linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx>, "linux-omap@xxxxxxxxxxxxxxx" <linux-omap@xxxxxxxxxxxxxxx>, "Pihet-XID, Jean" <j-pihet@xxxxxx>, "linux-arm-kernel@xxxxxxxxxxxxxxxxxxx" <linux-arm-kernel@xxxxxxxxxxxxxxxxxxx>
- Delivered-to: linux-pm@xxxxxxxxxxxxxxxxxxxxxxxx
- In-reply-to: <CAJ6a13ZSWSa_RpGB9NxtfyChUba9NGivGogpsfyk7oT9pNayjg@mail.gmail.com> (KEERTHY J.'s message of "Fri, 4 May 2012 15:41:34 +0530")
- Organization: Texas Instruments, Inc.
- References: <1335462041-4949-1-git-send-email-j-keerthy@ti.com> <1335462041-4949-5-git-send-email-j-keerthy@ti.com> <331ABD5ECB02734CA317220B2BBEABC13E9B1AA2@DBDE01.ent.ti.com> <CAJ6a13ZSWSa_RpGB9NxtfyChUba9NGivGogpsfyk7oT9pNayjg@mail.gmail.com>
- User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)
"J, KEERTHY" <j-keerthy@xxxxxx> writes:
> Hi AnilKumar,
>
> Thanks for reviewing.
>
> On Fri, May 4, 2012 at 2:00 PM, AnilKumar, Chimata <anilkumar@xxxxxx> wrote:
>> On Thu, Apr 26, 2012 at 23:10:35, J, KEERTHY wrote:
>>> From: Jean Pihet <j-pihet@xxxxxx>
>>>
>>> Change the name field value to better reflect the smartreflex
>>> integration in the system.
>>>
>>> Signed-off-by: Jean Pihet <j-pihet@xxxxxx>
>>> Signed-off-by: J Keerthy <j-keerthy@xxxxxx>
>>> ---
>>> arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 8 ++++----
>>> arch/arm/mach-omap2/smartreflex.c | 2 +-
>>> 2 files changed, 5 insertions(+), 5 deletions(-)
>>>
>>> diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
>>> index 144d118..15907b0 100644
>>> --- a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
>>> +++ b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
>>> @@ -1324,7 +1324,7 @@ static struct omap_hwmod_irq_info omap3_smartreflex_mpu_irqs[] = {
>>> };
>>>
>>> static struct omap_hwmod omap34xx_sr1_hwmod = {
>>> - .name = "sr1",
>>> + .name = "smartreflex_mpu_iva",
>>> .class = &omap34xx_smartreflex_hwmod_class,
>>> .main_clk = "sr1_fck",
>>> .prcm = {
>>> @@ -1342,7 +1342,7 @@ static struct omap_hwmod omap34xx_sr1_hwmod = {
>>> };
>>>
>>> static struct omap_hwmod omap36xx_sr1_hwmod = {
>>> - .name = "sr1",
>>> + .name = "smartreflex_mpu_iva",
>>> .class = &omap36xx_smartreflex_hwmod_class,
>>> .main_clk = "sr1_fck",
>>> .prcm = {
>>> @@ -1369,7 +1369,7 @@ static struct omap_hwmod_irq_info omap3_smartreflex_core_irqs[] = {
>>> };
>>>
>>> static struct omap_hwmod omap34xx_sr2_hwmod = {
>>> - .name = "sr2",
>>> + .name = "smartreflex_core",
>>> .class = &omap34xx_smartreflex_hwmod_class,
>>> .main_clk = "sr2_fck",
>>> .prcm = {
>>> @@ -1387,7 +1387,7 @@ static struct omap_hwmod omap34xx_sr2_hwmod = {
>>> };
>>>
>>> static struct omap_hwmod omap36xx_sr2_hwmod = {
>>> - .name = "sr2",
>>> + .name = "smartreflex_core",
>>> .class = &omap36xx_smartreflex_hwmod_class,
>>> .main_clk = "sr2_fck",
>>> .prcm = {
>>> diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c
>>> index 2edd1e2..d859277 100644
>>> --- a/arch/arm/mach-omap2/smartreflex.c
>>> +++ b/arch/arm/mach-omap2/smartreflex.c
>>> @@ -183,7 +183,7 @@ static void sr_set_regfields(struct omap_sr *sr)
>>> sr->err_weight = OMAP3430_SR_ERRWEIGHT;
>>> sr->err_maxlimit = OMAP3430_SR_ERRMAXLIMIT;
>>> sr->accum_data = OMAP3430_SR_ACCUMDATA;
>>> - if (!(strcmp(sr->name, "sr1"))) {
>>> + if (!(strcmp(sr->name, "smartreflex_mpu_iva"))) {
>>
>> What if voltage rail is different for mpu and iva? I have seen some devices
>> supports SmartReflex have different voltage rails for mpu and iva.
>>
>
> I get the point. OMAP3 iva and mpu have a common rail. OMAP4 onwards
> even we have different rails for mpu and iva. I will enhance the checks here.
Rather than enhancing the checks, this SoC specific data should probably
just be made part of the SoC specific hwmod dev_attr.
Kevin
_______________________________________________
linux-pm mailing list
linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/linux-pm
[Netdev]
[Ethernet Bridging]
[Linux Wireless]
[CPU Freq]
[Kernel Newbies]
[Fedora Kernel]
[Security]
[Linux for Hams]
[Netfilter]
[Bugtraq]
[Photo]
[Yosemite]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux RAID]
[Linux Admin]
[Samba]
[Video 4 Linux]
[Linux Resources]
[Free Dating]
[Archives]