From: "Rajendra Nayak" <rnayak@ti.com>
To: 'Jouni Hogander' <jouni.hogander@nokia.com>, linux-omap@vger.kernel.org
Subject: RE: [PATCH 1/4] 34XX: PM: Workaround to check wether any fck is active before entering sleep
Date: Thu, 21 Aug 2008 15:11:12 +0530 [thread overview]
Message-ID: <00f101c90372$0d1a43f0$LocalHost@wipultra1382> (raw)
In-Reply-To: <00cb01c90366$50605d90$LocalHost@wipultra1382>
> -----Original Message-----
> From: linux-omap-owner@vger.kernel.org
> [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of Rajendra Nayak
> Sent: Thursday, August 21, 2008 1:47 PM
> To: 'Jouni Hogander'; linux-omap@vger.kernel.org
> Subject: RE: [PATCH 1/4] 34XX: PM: Workaround to check wether
> any fck is active before entering sleep
>
> Jouni,
>
> I am having some issues applying these patches. Any idea whats wrong?
Ok.. so I figured this out. It was some mail client issue at my end..
sorry for the trouble.
>
> (Stripping trailing CRs from patch.)
> patching file arch/arm/mach-omap2/pm34xx.c
> patch: **** malformed patch at line 66: return 1;
>
> regards,
> Rajendra
>
>
> > -----Original Message-----
> > From: linux-omap-owner@vger.kernel.org
> > [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of
> Jouni Hogander
> > Sent: Friday, August 15, 2008 1:17 PM
> > To: linux-omap@vger.kernel.org
> > Subject: [PATCH 1/4] 34XX: PM: Workaround to check wether any
> > fck is active before entering sleep
> >
> > This workaround shouldn't be needed when all drivers are
> > configuring their sysconfig registers properly and using
> > their clocks properly.
> >
> > Signed-off-by: Jouni Hogander <jouni.hogander@nokia.com>
> > ---
> > arch/arm/mach-omap2/pm34xx.c | 37
> > +++++++++++++++++++++++++++++++++++++
> > 1 files changed, 37 insertions(+), 0 deletions(-)
> >
> > diff --git a/arch/arm/mach-omap2/pm34xx.c
> > b/arch/arm/mach-omap2/pm34xx.c index a57cf41..f30fa9e 100644
> > --- a/arch/arm/mach-omap2/pm34xx.c
> > +++ b/arch/arm/mach-omap2/pm34xx.c
> > @@ -174,10 +174,47 @@ static void omap_sram_idle(void)
> > omap2_gpio_resume_after_retention();
> > }
> >
> > +/* XXX This workaround shouldn't be needed when all drivers are
> > +configuring
> > + * their sysconfig registers properly and using their clocks
> > + * properly. */
> > +static int omap3_fclks_active(void)
> > +{
> > + u32 fck_core1 = 0, fck_core3 = 0, fck_sgx = 0, fck_dss = 0,
> > + fck_cam = 0, fck_per = 0, fck_usbhost = 0;
> > +
> > + fck_core1 = cm_read_mod_reg(CORE_MOD,
> > + CM_FCLKEN1);
> > + if (is_sil_rev_greater_than(OMAP3430_REV_ES1_0)) {
> > + fck_core3 = cm_read_mod_reg(CORE_MOD,
> > + OMAP3430ES2_CM_FCLKEN3);
> > + fck_sgx = cm_read_mod_reg(OMAP3430ES2_SGX_MOD,
> > + CM_FCLKEN);
> > + fck_usbhost = cm_read_mod_reg(OMAP3430ES2_USBHOST_MOD,
> > + CM_FCLKEN);
> > + } else
> > + fck_sgx = cm_read_mod_reg(GFX_MOD,
> > + OMAP3430ES2_CM_FCLKEN3);
> > + fck_dss = cm_read_mod_reg(OMAP3430_DSS_MOD,
> > + CM_FCLKEN);
> > + fck_cam = cm_read_mod_reg(OMAP3430_CAM_MOD,
> > + CM_FCLKEN);
> > + fck_per = cm_read_mod_reg(OMAP3430_PER_MOD,
> > + CM_FCLKEN);
> > + if (fck_core1 | fck_core3 | fck_sgx | fck_dss |
> > + fck_cam | fck_per | fck_usbhost)
> > + return 1;
> > + return 0;
> > +}
> > +
> > static int omap3_can_sleep(void)
> > {
> > if (!enable_dyn_sleep)
> > return 0;
> > + /* XXX This workaround shouldn't be needed when all drivers are
> > + * configuring their sysconfig registers properly and
> > using their
> > + * clocks properly. */
> > + if (omap3_fclks_active())
> > + return 0;
> > if (atomic_read(&sleep_block) > 0)
> > return 0;
> > return 1;
> > --
> > 1.5.5
> >
> > --
> > 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
> >
> >
>
> --
> 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:[~2008-08-21 9:41 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-15 7:44 [PATCH 0/4] Refreshed PM workaround patches 2 Högander Jouni
2008-08-15 7:47 ` [PATCH 1/4] 34XX: PM: Workaround to check wether any fck is active before entering sleep Jouni Hogander
2008-08-20 11:35 ` Tony Lindgren
2008-08-22 5:45 ` Högander Jouni
2008-08-22 18:07 ` Tony Lindgren
2008-08-21 8:17 ` Rajendra Nayak
2008-08-21 9:41 ` Rajendra Nayak [this message]
2008-08-15 7:47 ` [PATCH 2/4] PM: Workaround for taking care of gpio clocks Jouni Hogander
2008-08-20 11:37 ` Tony Lindgren
2008-08-21 11:07 ` Tero.Kristo
2008-08-22 18:06 ` Tony Lindgren
2008-08-15 7:47 ` [PATCH 3/4] Added sleep support to UART Jouni Hogander
2008-08-20 11:40 ` Tony Lindgren
2008-08-20 12:26 ` Tero.Kristo
2008-08-15 7:47 ` [PATCH 4/4] 34XX: PM: Workaround to enable autoidle for clocks and plls Jouni Hogander
2008-08-20 11:51 ` Tony Lindgren
2008-08-15 7:49 ` [PATCH 0/4] Refreshed PM workaround patches 2 Felipe Balbi
2008-08-18 13:23 ` Tony Lindgren
-- strict thread matches above, loose matches on Subject: below --
2008-08-07 8:43 [PATCH 1/4] 34XX: PM: Workaround to check wether any fck is active before entering sleep Kalle Jokiniemi
2008-08-06 13:01 Rajendra Nayak
2008-06-30 8:50 [PATCH 0/6] 34XX: PM: Workarounds to get omap3 to retention 4th Högander Jouni
2008-08-15 6:18 ` [PATCH 1/4] 34XX: PM: Workaround to check wether any fck is active before entering sleep Jouni Hogander
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='00f101c90372$0d1a43f0$LocalHost@wipultra1382' \
--to=rnayak@ti.com \
--cc=jouni.hogander@nokia.com \
--cc=linux-omap@vger.kernel.org \
/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