@@ -197,7 +197,7 @@ static int is_mbox_irq(struct omap_mbox *mbox, omap_mbox_irq_t irq)
197
197
return (int )(enable & status & bit );
198
198
}
199
199
200
- static void _omap_mbox_enable_irq (struct omap_mbox * mbox , omap_mbox_irq_t irq )
200
+ static void omap_mbox_enable_irq (struct omap_mbox * mbox , omap_mbox_irq_t irq )
201
201
{
202
202
u32 l ;
203
203
struct omap_mbox_fifo * fifo = (irq == IRQ_TX ) ?
@@ -210,7 +210,7 @@ static void _omap_mbox_enable_irq(struct omap_mbox *mbox, omap_mbox_irq_t irq)
210
210
mbox_write_reg (mbox -> parent , l , irqenable );
211
211
}
212
212
213
- static void _omap_mbox_disable_irq (struct omap_mbox * mbox , omap_mbox_irq_t irq )
213
+ static void omap_mbox_disable_irq (struct omap_mbox * mbox , omap_mbox_irq_t irq )
214
214
{
215
215
struct omap_mbox_fifo * fifo = (irq == IRQ_TX ) ?
216
216
& mbox -> tx_fifo : & mbox -> rx_fifo ;
@@ -227,28 +227,6 @@ static void _omap_mbox_disable_irq(struct omap_mbox *mbox, omap_mbox_irq_t irq)
227
227
mbox_write_reg (mbox -> parent , bit , irqdisable );
228
228
}
229
229
230
- void omap_mbox_enable_irq (struct mbox_chan * chan , omap_mbox_irq_t irq )
231
- {
232
- struct omap_mbox * mbox = mbox_chan_to_omap_mbox (chan );
233
-
234
- if (WARN_ON (!mbox ))
235
- return ;
236
-
237
- _omap_mbox_enable_irq (mbox , irq );
238
- }
239
- EXPORT_SYMBOL (omap_mbox_enable_irq );
240
-
241
- void omap_mbox_disable_irq (struct mbox_chan * chan , omap_mbox_irq_t irq )
242
- {
243
- struct omap_mbox * mbox = mbox_chan_to_omap_mbox (chan );
244
-
245
- if (WARN_ON (!mbox ))
246
- return ;
247
-
248
- _omap_mbox_disable_irq (mbox , irq );
249
- }
250
- EXPORT_SYMBOL (omap_mbox_disable_irq );
251
-
252
230
/*
253
231
* Message receiver(workqueue)
254
232
*/
@@ -269,7 +247,7 @@ static void mbox_rx_work(struct work_struct *work)
269
247
spin_lock_irq (& mq -> lock );
270
248
if (mq -> full ) {
271
249
mq -> full = false;
272
- _omap_mbox_enable_irq (mq -> mbox , IRQ_RX );
250
+ omap_mbox_enable_irq (mq -> mbox , IRQ_RX );
273
251
}
274
252
spin_unlock_irq (& mq -> lock );
275
253
}
@@ -280,7 +258,7 @@ static void mbox_rx_work(struct work_struct *work)
280
258
*/
281
259
static void __mbox_tx_interrupt (struct omap_mbox * mbox )
282
260
{
283
- _omap_mbox_disable_irq (mbox , IRQ_TX );
261
+ omap_mbox_disable_irq (mbox , IRQ_TX );
284
262
ack_mbox_irq (mbox , IRQ_TX );
285
263
mbox_chan_txdone (mbox -> chan , 0 );
286
264
}
@@ -293,7 +271,7 @@ static void __mbox_rx_interrupt(struct omap_mbox *mbox)
293
271
294
272
while (!mbox_fifo_empty (mbox )) {
295
273
if (unlikely (kfifo_avail (& mq -> fifo ) < sizeof (msg ))) {
296
- _omap_mbox_disable_irq (mbox , IRQ_RX );
274
+ omap_mbox_disable_irq (mbox , IRQ_RX );
297
275
mq -> full = true;
298
276
goto nomem ;
299
277
}
@@ -375,7 +353,7 @@ static int omap_mbox_startup(struct omap_mbox *mbox)
375
353
if (mbox -> send_no_irq )
376
354
mbox -> chan -> txdone_method = TXDONE_BY_ACK ;
377
355
378
- _omap_mbox_enable_irq (mbox , IRQ_RX );
356
+ omap_mbox_enable_irq (mbox , IRQ_RX );
379
357
380
358
return 0 ;
381
359
@@ -386,7 +364,7 @@ static int omap_mbox_startup(struct omap_mbox *mbox)
386
364
387
365
static void omap_mbox_fini (struct omap_mbox * mbox )
388
366
{
389
- _omap_mbox_disable_irq (mbox , IRQ_RX );
367
+ omap_mbox_disable_irq (mbox , IRQ_RX );
390
368
free_irq (mbox -> irq , mbox );
391
369
flush_work (& mbox -> rxq -> work );
392
370
mbox_queue_free (mbox -> rxq );
@@ -533,10 +511,10 @@ static int omap_mbox_chan_send_noirq(struct omap_mbox *mbox, u32 msg)
533
511
int ret = - EBUSY ;
534
512
535
513
if (!mbox_fifo_full (mbox )) {
536
- _omap_mbox_enable_irq (mbox , IRQ_RX );
514
+ omap_mbox_enable_irq (mbox , IRQ_RX );
537
515
mbox_fifo_write (mbox , msg );
538
516
ret = 0 ;
539
- _omap_mbox_disable_irq (mbox , IRQ_RX );
517
+ omap_mbox_disable_irq (mbox , IRQ_RX );
540
518
541
519
/* we must read and ack the interrupt directly from here */
542
520
mbox_fifo_read (mbox );
@@ -556,7 +534,7 @@ static int omap_mbox_chan_send(struct omap_mbox *mbox, u32 msg)
556
534
}
557
535
558
536
/* always enable the interrupt */
559
- _omap_mbox_enable_irq (mbox , IRQ_TX );
537
+ omap_mbox_enable_irq (mbox , IRQ_TX );
560
538
return ret ;
561
539
}
562
540
0 commit comments