OMAP: mailbox: add notification support for multiple readers
authorKanigeri, Hari <h-kanigeri2@ti.com>
Mon, 29 Nov 2010 20:24:14 +0000 (20:24 +0000)
committerHari Kanigeri <h-kanigeri2@ti.com>
Thu, 2 Dec 2010 11:43:16 +0000 (05:43 -0600)
commit582563074a691eb45cb22d2eca70eed8f2091c5f
treea10cfb02f1dd2c35f773d7892e6a8f75c3c7544c
parenta42743c26a53a2a5f2b2018a9659ab3fb604d5bc
OMAP: mailbox: add notification support for multiple readers

In the current mailbox driver, the mailbox internal pointer for
callback can be directly manipulated by the Users, so a second
User can easily corrupt the first user's callback pointer.
The initial effort to correct this issue can be referred here:
https://patchwork.kernel.org/patch/107520/

Along with fixing the above stated issue, this patch  adds the
flexibility option to register notifications from
multiple readers to the events received on a mailbox instance.
The discussion regarding this can be referred here.
http://www.mail-archive.com/linux-omap@vger.kernel.org/msg30671.html

Signed-off-by: Hari Kanigeri <h-kanigeri2@ti.com>
Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com>
Acked-by: Hiroshi Doyu <hiroshi.doyu@nokia.com>
arch/arm/plat-omap/include/plat/mailbox.h
arch/arm/plat-omap/mailbox.c