[PATCH v4 1/2] omap: mailbox: enable mailbox irq per instance

Ohad Ben-Cohen ohad at wizery.com
Thu May 10 16:39:48 EDT 2012


On Thu, May 10, 2012 at 11:09 PM, Juan Gutierrez <jgutierrez at ti.com> wrote:
> The machine-specific omap2_mbox_startup is called only once
> to initialize the whole mbox module. Enabling mbox irq at
> startup is only enabling the irq of the very first mailbox
> instance created.
>
> The enable_irq function should be called every time a
> new mbox instance is created/opened, in the generic
> platform mailbox layer.
>
> Also, the notifier_block registration is called before
> enabling the mbox's irq to avoid possible race of receiving
> an interrupt without invoking the user's notifier callback.
>
> Signed-off-by: Juan Gutierrez <jgutierrez at ti.com>

Acked-by: Ohad Ben-Cohen <ohad at wizery.com>



More information about the linux-arm-kernel mailing list