diff options
author | Arun Murthy <arun.murthy@stericsson.com> | 2011-09-30 14:21:55 +0530 |
---|---|---|
committer | Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com> | 2011-09-30 11:29:11 +0200 |
commit | 7076f3f9150973c05f8687cc5b97b8944350f54b (patch) | |
tree | 1a0cad3ecb84b3572867dba2f933c3f4e43027f2 /arch/arm/mach-ux500/include | |
parent | 9a901dfdc8c1b1dfda8bfe777e3a4445692dabf7 (diff) |
ux500-mbox: Proper shutdown of mailbox
Implement clean shutdown of mailbox, which includes, unmapping the io mapped
memory, free the requested interrupt, reset all state machine and remove from
list. A function has been added to reset the mailbox which will be used in
case of MSR.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 341807
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I1435345d155717a5276a7a5d74da84d3eeef7f61
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32680
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Diffstat (limited to 'arch/arm/mach-ux500/include')
-rw-r--r-- | arch/arm/mach-ux500/include/mach/mbox-db5500.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/include/mach/mbox-db5500.h b/arch/arm/mach-ux500/include/mach/mbox-db5500.h index 7f9da4d2fbd..24af854befe 100644 --- a/arch/arm/mach-ux500/include/mach/mbox-db5500.h +++ b/arch/arm/mach-ux500/include/mach/mbox-db5500.h @@ -40,6 +40,7 @@ typedef void mbox_recv_cb_t (u32 mbox_msg, void *priv); * @lock: Spinlock to protect this mailbox instance. * @write_index: Index in internal buffer to write to. * @read_index: Index in internal buffer to read from. + * @irq: mailbox interrupt. * @allocated: Indicates whether this particular mailbox * id has been allocated by someone. */ @@ -57,7 +58,11 @@ struct mbox { spinlock_t lock; u8 write_index; u8 read_index; + int irq; bool allocated; +#if defined(CONFIG_DEBUG_FS) + struct dentry *dentry; +#endif }; /** |