From: Kevin Hilman <khilman@deeprootsystems.com>
To: "Premi, Sanjeev" <premi@ti.com>
Cc: "Nayak, Rajendra" <rnayak@ti.com>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH 2/2] OMAP3: PM: Configure CPUidle latencies/thresholds from board files
Date: Tue, 30 Jun 2009 15:58:45 -0700 [thread overview]
Message-ID: <87ab3p49cq.fsf@deeprootsystems.com> (raw)
In-Reply-To: <B85A65D85D7EB246BE421B3FB0FBB59301D83B1E1C@dbde02.ent.ti.com> (Sanjeev Premi's message of "Tue\, 30 Jun 2009 17\:11\:18 +0530")
"Premi, Sanjeev" <premi@ti.com> writes:
>> extern void omap1_map_common_io(void);
>> extern void omap1_init_common_hw(void);
>> @@ -234,7 +235,8 @@ extern void omap2_init_common_hw(struct
>> omap_sdrc_params *sp,
>> struct omap_opp *mpu_opps,
>> struct omap_opp *dsp_opps,
>> struct omap_opp *l3_opps,
>> - struct prm_setup_vc *setup_times);
>> + struct prm_setup_vc *setup_times,
>> + struct cpuidle_params *idle_params);
>
> Rajendra, all,
>
> Aren't we 'overloading' omap2_init_common_hw() each time we add another
> argument to it?
>
> Shouldn't we defined define a function specific for PM initialization?
> Some of the initialization actually doesn't even touch the HW.
>
Completely agree.
We are absolutely overloading init_common_hw() and this is on the list
of things I'd like to see changed before those change go upstream. I
just haven't got to that yet.
I would happily welcome any proposals or cleanups to this.
My current feeling is that I think these board-specific settings
should just be using platform_driver/platform_device model and then
board-specifics could be passed via platform_data. If not settings
are given, conservative defaults can be used. But honestly, I haven't
given it much more thought, other than I *really* don't like the
current overloading of that function.
Kevin
next prev parent reply other threads:[~2009-06-30 22:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-29 14:35 [PATCH 1/2] OMAP3: PM: Configure PRM setup times from board files Rajendra Nayak
2009-06-29 14:35 ` [PATCH 2/2] OMAP3: PM: Configure CPUidle latencies/thresholds " Rajendra Nayak
2009-06-29 20:18 ` Mike Chan
2009-06-30 11:41 ` Premi, Sanjeev
2009-06-30 22:58 ` Kevin Hilman [this message]
2009-09-30 19:13 ` [PATCH 1/2] OMAP3: PM: Configure PRM setup times " Kevin Hilman
2009-10-06 6:10 ` Nayak, Rajendra
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=87ab3p49cq.fsf@deeprootsystems.com \
--to=khilman@deeprootsystems.com \
--cc=linux-omap@vger.kernel.org \
--cc=premi@ti.com \
--cc=rnayak@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