All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: tidspbridge: replace mbox callback with notifier_call
@ 2011-01-05 22:55 Omar Ramirez Luna
  2011-01-14  1:40 ` Ramirez Luna, Omar
  0 siblings, 1 reply; 2+ messages in thread
From: Omar Ramirez Luna @ 2011-01-05 22:55 UTC (permalink / raw)
  To: Omar Ramirez Luna
  Cc: Felipe Contreras, Fernando Guzman Lugo, Rene Sapiens, devel,
	linux-kernel, Hari Kanigeri, Omar Ramirez Luna

Lately, mailbox callbacks have been replaced by notifier block
call chains, this needs to be changed in the users of mailbox,
otherwise compilation will break due to missing parameters.

Reported-by: Hari Kanigeri <h-kanigeri2@ti.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
---

To be pushed after mailbox dependencies.

 drivers/staging/tidspbridge/core/tiomap3430.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/tidspbridge/core/tiomap3430.c b/drivers/staging/tidspbridge/core/tiomap3430.c
index cacd30e..28bdce0 100644
--- a/drivers/staging/tidspbridge/core/tiomap3430.c
+++ b/drivers/staging/tidspbridge/core/tiomap3430.c
@@ -223,6 +223,10 @@ static struct bridge_drv_interface drv_interface_fxns = {
 	bridge_msg_set_queue_id,
 };
 
+static struct notifier_block dsp_mbox_notifier = {
+	.notifier_call = io_mbox_msg,
+};
+
 static inline void flush_all(struct bridge_dev_context *dev_context)
 {
 	if (dev_context->dw_brd_state == BRD_DSP_HIBERNATION ||
@@ -551,7 +555,7 @@ static int bridge_brd_start(struct bridge_dev_context *dev_ctxt,
 		 * Enable Mailbox events and also drain any pending
 		 * stale messages.
 		 */
-		dev_context->mbox = omap_mbox_get("dsp");
+		dev_context->mbox = omap_mbox_get("dsp", &dsp_mbox_notifier);
 		if (IS_ERR(dev_context->mbox)) {
 			dev_context->mbox = NULL;
 			pr_err("%s: Failed to get dsp mailbox handle\n",
@@ -561,8 +565,6 @@ static int bridge_brd_start(struct bridge_dev_context *dev_ctxt,
 
 	}
 	if (!status) {
-		dev_context->mbox->rxq->callback = (int (*)(void *))io_mbox_msg;
-
 /*PM_IVA2GRPSEL_PER = 0xC0;*/
 		temp = readl(resources->dw_per_pm_base + 0xA8);
 		temp = (temp & 0xFFFFFF30) | 0xC0;
@@ -683,7 +685,7 @@ static int bridge_brd_stop(struct bridge_dev_context *dev_ctxt)
 	/* Disable the mailbox interrupts */
 	if (dev_context->mbox) {
 		omap_mbox_disable_irq(dev_context->mbox, IRQ_RX);
-		omap_mbox_put(dev_context->mbox);
+		omap_mbox_put(dev_context->mbox, &dsp_mbox_notifier);
 		dev_context->mbox = NULL;
 	}
 	/* Reset IVA2 clocks*/
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] staging: tidspbridge: replace mbox callback with notifier_call
  2011-01-05 22:55 [PATCH] staging: tidspbridge: replace mbox callback with notifier_call Omar Ramirez Luna
@ 2011-01-14  1:40 ` Ramirez Luna, Omar
  0 siblings, 0 replies; 2+ messages in thread
From: Ramirez Luna, Omar @ 2011-01-14  1:40 UTC (permalink / raw)
  To: Omar Ramirez Luna
  Cc: Felipe Contreras, Fernando Guzman Lugo, Rene Sapiens, devel,
	linux-kernel, Hari Kanigeri

On Wed, Jan 5, 2011 at 4:55 PM, Omar Ramirez Luna <omar.ramirez@ti.com> wrote:
> Lately, mailbox callbacks have been replaced by notifier block
> call chains, this needs to be changed in the users of mailbox,
> otherwise compilation will break due to missing parameters.
>
> Reported-by: Hari Kanigeri <h-kanigeri2@ti.com>
> Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>

Pushed to for-gkh-2.6.38 branch.

Regards,

Omar

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-14  1:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-05 22:55 [PATCH] staging: tidspbridge: replace mbox callback with notifier_call Omar Ramirez Luna
2011-01-14  1:40 ` Ramirez Luna, Omar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.