lkml.org 
[lkml]   [2022]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3/7] mailbox: ti-msgmgr Remove unused ti_msgmgr_queue_peek_data
Date
This op was ambiguously specified, and the way it was interpreted for
this implementation is not useful. It has no users, so remove it.

Signed-off-by: Hector Martin <marcan@marcan.st>
---
drivers/mailbox/ti-msgmgr.c | 28 ----------------------------
1 file changed, 28 deletions(-)

diff --git a/drivers/mailbox/ti-msgmgr.c b/drivers/mailbox/ti-msgmgr.c
index ddac423ac1a9..10881b812df2 100644
--- a/drivers/mailbox/ti-msgmgr.c
+++ b/drivers/mailbox/ti-msgmgr.c
@@ -309,33 +309,6 @@ static irqreturn_t ti_msgmgr_queue_rx_interrupt(int irq, void *p)
return IRQ_HANDLED;
}

-/**
- * ti_msgmgr_queue_peek_data() - Peek to see if there are any rx messages.
- * @chan: Channel Pointer
- *
- * Return: 'true' if there is pending rx data, 'false' if there is none.
- */
-static bool ti_msgmgr_queue_peek_data(struct mbox_chan *chan)
-{
- struct ti_queue_inst *qinst = chan->con_priv;
- struct device *dev = chan->mbox->dev;
- struct ti_msgmgr_inst *inst = dev_get_drvdata(dev);
- const struct ti_msgmgr_desc *desc = inst->desc;
- int msg_count;
-
- if (qinst->is_tx)
- return false;
-
- if (ti_msgmgr_queue_is_error(desc, qinst)) {
- dev_err(dev, "Error on channel %s\n", qinst->name);
- return false;
- }
-
- msg_count = ti_msgmgr_queue_get_num_messages(desc, qinst);
-
- return msg_count ? true : false;
-}
-
/**
* ti_msgmgr_last_tx_done() - See if all the tx messages are sent
* @chan: Channel pointer
@@ -744,7 +717,6 @@ static DEFINE_SIMPLE_DEV_PM_OPS(ti_msgmgr_pm_ops, ti_msgmgr_suspend, ti_msgmgr_r
static const struct mbox_chan_ops ti_msgmgr_chan_ops = {
.startup = ti_msgmgr_queue_startup,
.shutdown = ti_msgmgr_queue_shutdown,
- .peek_data = ti_msgmgr_queue_peek_data,
.last_tx_done = ti_msgmgr_last_tx_done,
.send_data = ti_msgmgr_send_data,
};
--
2.35.1
\
 
 \ /
  Last update: 2022-05-02 11:04    [W:0.143 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site