From: Juan Gutierrez Date: Sun, 13 May 2012 12:33:04 +0000 (+0300) Subject: ARM: OMAP: enable mailbox irq per instance X-Git-Tag: omap-fixes-non-critical-for-v3.6~9^2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d8a0e963ac532e038d93ab0d30bbfad072f3bf8;p=pandora-kernel.git ARM: OMAP: enable mailbox irq per instance The machine-specific omap2_mbox_startup is called only once to initialize the whole mbox module, and as a result, enabling the mbox irq at that point only works for the very first mailbox instance opened. Instead, this patch makes sure enable_irq() is called every time a new mbox instance is opened. In addition, we're now enabling the mbox's irq only after its notifier_block is registered, to avoid possible race of receiving an interrupt without invoking the user's notifier callback. Signed-off-by: Juan Gutierrez Signed-off-by: Suman Anna [ohad@wizery.com: slightly reworded the commit log] Signed-off-by: Ohad Ben-Cohen --- Reading git-diff-tree failed