From: Deepak Chitriki <deepak.chitriki@ti.com>
To: "Guzman Lugo, Fernando" <x0095840@ti.com>
Cc: linux-omap <linux-omap@vger.kernel.org>,
Hiroshi Doyu <hiroshi.doyu@nokia.com>,
Ameya Palande <ameya.palande@nokia.com>,
"Ramirez Luna, Omar" <omar.ramirez@ti.com>,
Felipe Contreras <felipe.contreras@nokia.com>
Subject: Re: [PATCH] DSPBRIDGE: Fix declaration and initialization of sync objects.
Date: Mon, 19 Apr 2010 17:58:53 -0500 [thread overview]
Message-ID: <4BCCE02D.6080407@ti.com> (raw)
In-Reply-To: <496565EC904933469F292DDA3F1663E602CB215E41@dlee06.ent.ti.com>
Guzman Lugo, Fernando wrote:
> From 2edd80839e6d3bbe6e92914c3097a6dedca23784 Mon Sep 17 00:00:00 2001
> From: Fernando Guzman Lugo <x0095840@ti.com>
> Date: Sun, 18 Apr 2010 00:32:01 -0500
> Subject: [PATCH] DSPBRIDGE: Fix declaration and initialization of sync objects.
>
> This patch fixes declaration of completions for sync in
> drv_interface and also initialize sync->done object in
> msg_sm.c
>
> Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com>
> ---
> drivers/dsp/bridge/rmgr/drv_interface.c | 4 ++--
> drivers/dsp/bridge/wmd/msg_sm.c | 6 +++---
> 2 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/dsp/bridge/rmgr/drv_interface.c b/drivers/dsp/bridge/rmgr/drv_interface.c
> index d62e508..1dd635e 100644
> --- a/drivers/dsp/bridge/rmgr/drv_interface.c
> +++ b/drivers/dsp/bridge/rmgr/drv_interface.c
> @@ -98,8 +98,8 @@ static int tc_wordswapon; /* Default value is always false */
> static atomic_t bridge_cref; /* number of bridge open handles */
> static struct workqueue_struct *bridge_rec_queue;
> static struct work_struct bridge_recovery_work;
> -static DECLARE_COMPLETION_ONSTACK(bridge_comp);
> -static DECLARE_COMPLETION_ONSTACK(bridge_open_comp);
> +static DECLARE_COMPLETION(bridge_comp);
> +static DECLARE_COMPLETION(bridge_open_comp);
> static bool recover;
> #endif
>
> diff --git a/drivers/dsp/bridge/wmd/msg_sm.c b/drivers/dsp/bridge/wmd/msg_sm.c
> index 19e3cee..6f00071 100644
> --- a/drivers/dsp/bridge/wmd/msg_sm.c
> +++ b/drivers/dsp/bridge/wmd/msg_sm.c
> @@ -185,8 +185,8 @@ dsp_status bridge_msg_create_queue(struct msg_mgr *hmsg_mgr,
> if (DSP_SUCCEEDED(status)) {
> msg_q->sync_done = kzalloc(sizeof(struct sync_object),
> GFP_KERNEL);
> - if (msg_q->sync_event)
> - sync_init_event(msg_q->sync_event);
> + if (msg_q->sync_done)
> + sync_init_event(msg_q->sync_done);
> else
> status = DSP_EMEMORY;
> }
> @@ -194,7 +194,7 @@ dsp_status bridge_msg_create_queue(struct msg_mgr *hmsg_mgr,
> if (DSP_SUCCEEDED(status)) {
> msg_q->sync_done_ack = kzalloc(sizeof(struct sync_object),
> GFP_KERNEL);
> - if (msg_q->sync_event)
> + if (msg_q->sync_done_ack)
> sync_init_event(msg_q->sync_done_ack);
> else
> status = DSP_EMEMORY;
>
Acked-by: Deepak Chitriki <deepak.chitriki@ti.com>
Deepak
next prev parent reply other threads:[~2010-04-19 22:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-19 22:51 [PATCH] DSPBRIDGE: Fix declaration and initialization of sync objects Guzman Lugo, Fernando
2010-04-19 22:58 ` Deepak Chitriki [this message]
2010-04-21 19:50 ` Omar Ramirez Luna
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=4BCCE02D.6080407@ti.com \
--to=deepak.chitriki@ti.com \
--cc=ameya.palande@nokia.com \
--cc=felipe.contreras@nokia.com \
--cc=hiroshi.doyu@nokia.com \
--cc=linux-omap@vger.kernel.org \
--cc=omar.ramirez@ti.com \
--cc=x0095840@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