aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/mailbox.c
diff options
context:
space:
mode:
authorHiroshi DOYU <Hiroshi.DOYU@nokia.com>2009-11-22 13:11:22 -0500
committerTony Lindgren <tony@atomide.com>2009-11-22 13:24:33 -0500
commiteb18858ebda7f4ef3d7de33e1b9bf11ac4cc137b (patch)
tree45c9d37c4a02946916a177ec60c1b41c8ac7eece /arch/arm/plat-omap/mailbox.c
parentb2b6362e6c5f744776da633218029e99f1244694 (diff)
omap: mailbox: Expose omap_mbox_enable()/disable_irq()
Expose omap_mbox_enable()/disable_irq() Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Diffstat (limited to 'arch/arm/plat-omap/mailbox.c')
-rw-r--r--arch/arm/plat-omap/mailbox.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/arch/arm/plat-omap/mailbox.c b/arch/arm/plat-omap/mailbox.c
index 99ecf8037ddf..e6b31159f08b 100644
--- a/arch/arm/plat-omap/mailbox.c
+++ b/arch/arm/plat-omap/mailbox.c
@@ -50,14 +50,6 @@ static inline int mbox_fifo_full(struct omap_mbox *mbox)
50} 50}
51 51
52/* Mailbox IRQ handle functions */ 52/* Mailbox IRQ handle functions */
53static inline void enable_mbox_irq(struct omap_mbox *mbox, omap_mbox_irq_t irq)
54{
55 mbox->ops->enable_irq(mbox, irq);
56}
57static inline void disable_mbox_irq(struct omap_mbox *mbox, omap_mbox_irq_t irq)
58{
59 mbox->ops->disable_irq(mbox, irq);
60}
61static inline void ack_mbox_irq(struct omap_mbox *mbox, omap_mbox_irq_t irq) 53static inline void ack_mbox_irq(struct omap_mbox *mbox, omap_mbox_irq_t irq)
62{ 54{
63 if (mbox->ops->ack_irq) 55 if (mbox->ops->ack_irq)
@@ -144,7 +136,7 @@ static void mbox_tx_work(struct work_struct *work)
144 136
145 ret = __mbox_msg_send(mbox, tx_data->msg); 137 ret = __mbox_msg_send(mbox, tx_data->msg);
146 if (ret) { 138 if (ret) {
147 enable_mbox_irq(mbox, IRQ_TX); 139 omap_mbox_enable_irq(mbox, IRQ_TX);
148 spin_lock(q->queue_lock); 140 spin_lock(q->queue_lock);
149 blk_requeue_request(q, rq); 141 blk_requeue_request(q, rq);
150 spin_unlock(q->queue_lock); 142 spin_unlock(q->queue_lock);
@@ -196,7 +188,7 @@ static void mbox_rxq_fn(struct request_queue *q)
196 188
197static void __mbox_tx_interrupt(struct omap_mbox *mbox) 189static void __mbox_tx_interrupt(struct omap_mbox *mbox)
198{ 190{
199 disable_mbox_irq(mbox, IRQ_TX); 191 omap_mbox_disable_irq(mbox, IRQ_TX);
200 ack_mbox_irq(mbox, IRQ_TX); 192 ack_mbox_irq(mbox, IRQ_TX);
201 schedule_work(&mbox->txq->work); 193 schedule_work(&mbox->txq->work);
202} 194}