public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Omar Ramirez Luna <omar.ramirez@ti.com>
To: Felipe Contreras <felipe.contreras@gmail.com>
Cc: linux-omap <linux-omap@vger.kernel.org>,
	Jouni Hogander <jouni.hogander@nokia.com>,
	Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Subject: Re: [PATCH 1/2] DSPBRIDGE: Use enable_off_mode variable instead of dsp_test_sleepstate
Date: Tue, 26 Jan 2010 16:23:13 -0600	[thread overview]
Message-ID: <4B5F6B51.6050607@ti.com> (raw)
In-Reply-To: <1264241986-29071-2-git-send-email-felipe.contreras@gmail.com>

Hi,

On 1/23/2010 4:19 AM, Felipe Contreras wrote:
> From: Jouni Hogander<jouni.hogander@nokia.com>
>
> Signed-off-by: Jouni Hogander<jouni.hogander@nokia.com>
> Signed-off-by: Hiroshi DOYU<Hiroshi.DOYU@nokia.com>

This patch is missing to export enable_off_mode otherwise it will fail 
while linking.

FTR, I don't like to be exporting symbols of other subsystems, guess the 
same applies to:

http://marc.info/?l=linux-omap&m=126450677527042&w=2

> ---
>   drivers/dsp/bridge/rmgr/drv_interface.c |    5 -----
>   drivers/dsp/bridge/wmd/tiomap3430_pwr.c |    9 ++++-----
>   2 files changed, 4 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/dsp/bridge/rmgr/drv_interface.c b/drivers/dsp/bridge/rmgr/drv_interface.c
> index a02a32a..b20f77e 100644
> --- a/drivers/dsp/bridge/rmgr/drv_interface.c
> +++ b/drivers/dsp/bridge/rmgr/drv_interface.c
> @@ -78,8 +78,6 @@ s32 dsp_debug;
>
>   struct platform_device *omap_dspbridge_dev;
>
> -/* This is a test variable used by Bridge to test different sleep states */
> -s32 dsp_test_sleepstate;
>   struct bridge_dev {
>   	struct cdev cdev;
>   };
> @@ -129,9 +127,6 @@ module_param(dsp_debug, int, 0);
>   MODULE_PARM_DESC(dsp_debug, "Wait after loading DSP image. default = false");
>   #endif
>
> -module_param(dsp_test_sleepstate, int, 0);
> -MODULE_PARM_DESC(dsp_test_sleepstate, "DSP Sleep state = 0");
> -
>   module_param(base_img, charp, 0);
>   MODULE_PARM_DESC(base_img, "DSP base image, default = NULL");
>
> diff --git a/drivers/dsp/bridge/wmd/tiomap3430_pwr.c b/drivers/dsp/bridge/wmd/tiomap3430_pwr.c
> index 084f406..c0e0994 100644
> --- a/drivers/dsp/bridge/wmd/tiomap3430_pwr.c
> +++ b/drivers/dsp/bridge/wmd/tiomap3430_pwr.c
> @@ -54,10 +54,9 @@
>   #include<mach-omap2/cm-regbits-34xx.h>
>
>   #ifdef CONFIG_PM
> -extern s32 dsp_test_sleepstate;
> +extern unsigned short enable_off_mode;
>   #endif
>   extern struct MAILBOX_CONTEXT mboxsetting;
> -
>   /*
>    *  ======== handle_constraints_set ========
>    *  	Sets new DSP constraint
> @@ -196,7 +195,7 @@ DSP_STATUS SleepDSP(struct WMD_DEV_CONTEXT *pDevContext, IN u32 dwCmd,
>   	switch (pDevContext->dwBrdState) {
>   	case BRD_RUNNING:
>   		status = HW_MBOX_saveSettings(resources.dwMboxBase);
> -		if (dsp_test_sleepstate == HW_PWR_STATE_OFF) {
> +		if (enable_off_mode) {
>   			CHNLSM_InterruptDSP2(pDevContext,
>   					     MBX_PM_DSPHIBERNATE);
>   			DBG_Trace(DBG_LEVEL7,
> @@ -211,7 +210,7 @@ DSP_STATUS SleepDSP(struct WMD_DEV_CONTEXT *pDevContext, IN u32 dwCmd,
>   		break;
>   	case BRD_RETENTION:
>   		status = HW_MBOX_saveSettings(resources.dwMboxBase);
> -		if (dsp_test_sleepstate == HW_PWR_STATE_OFF) {
> +		if (enable_off_mode) {
>   			CHNLSM_InterruptDSP2(pDevContext,
>   					     MBX_PM_DSPHIBERNATE);
>   			targetPwrState = HW_PWR_STATE_OFF;
> @@ -261,7 +260,7 @@ DSP_STATUS SleepDSP(struct WMD_DEV_CONTEXT *pDevContext, IN u32 dwCmd,
>   			 pwrState);
>
>   		/* Update the Bridger Driver state */
> -		if (dsp_test_sleepstate == HW_PWR_STATE_OFF)
> +		if (enable_off_mode)
>   			pDevContext->dwBrdState = BRD_HIBERNATION;
>   		else
>   			pDevContext->dwBrdState = BRD_RETENTION;

- omar

  reply	other threads:[~2010-01-26 22:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-23 10:19 [PATCH 0/2] dspbridge: maemo lingering patches Felipe Contreras
2010-01-23 10:19 ` [PATCH 1/2] DSPBRIDGE: Use enable_off_mode variable instead of dsp_test_sleepstate Felipe Contreras
2010-01-26 22:23   ` Omar Ramirez Luna [this message]
2010-01-27 21:00     ` Felipe Contreras
2010-01-28  0:46     ` Nishanth Menon
2010-01-28 16:58       ` Omar Ramirez Luna
2010-01-23 10:19 ` [PATCH 2/2] DSPBRIDGE: Various compile warning fixes Felipe Contreras

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=4B5F6B51.6050607@ti.com \
    --to=omar.ramirez@ti.com \
    --cc=Hiroshi.DOYU@nokia.com \
    --cc=felipe.contreras@gmail.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