1 From accfaecbbcb882dcc2d47660a644c353ae337861 Mon Sep 17 00:00:00 2001
2 From: Calvin Johnson <calvin.johnson@nxp.com>
3 Date: Wed, 18 Oct 2017 14:29:30 +0530
4 Subject: [PATCH] staging: fsl_ppfe/eth: remove unused functions
6 Remove unused functions hif_xmit_pkt & hif_lib_xmit_pkt.
8 Signed-off-by: Calvin Johnson <calvin.johnson@nxp.com>
10 drivers/staging/fsl_ppfe/pfe_hif.c | 24 +-----------------------
11 drivers/staging/fsl_ppfe/pfe_hif_lib.c | 34 ----------------------------------
12 2 files changed, 1 insertion(+), 57 deletions(-)
14 --- a/drivers/staging/fsl_ppfe/pfe_hif.c
15 +++ b/drivers/staging/fsl_ppfe/pfe_hif.c
16 @@ -844,29 +844,6 @@ skip_tx:
20 -int hif_xmit_pkt(struct pfe_hif *hif, unsigned int client_id, unsigned int q_no,
21 - void *data, unsigned int len)
25 - spin_lock_bh(&hif->tx_lock);
27 - if (!hif->txavail) {
30 - __hif_xmit_pkt(hif, client_id, q_no, data, len,
31 - HIF_FIRST_BUFFER | HIF_LAST_BUFFER);
35 - if (hif->txavail < (hif->tx_ring_size >> 1))
36 - __hif_tx_done_process(hif, TX_FREE_MAX_COUNT);
38 - spin_unlock_bh(&hif->tx_lock);
43 static irqreturn_t wol_isr(int irq, void *dev_id)
46 @@ -907,6 +884,7 @@ static irqreturn_t hif_isr(int irq, void
47 __napi_schedule(&hif->napi);
51 if (int_status & HIF_TXPKT_INT) {
52 int_status &= ~(HIF_TXPKT_INT);
53 int_enable_mask &= ~(HIF_TXPKT_INT);
54 --- a/drivers/staging/fsl_ppfe/pfe_hif_lib.c
55 +++ b/drivers/staging/fsl_ppfe/pfe_hif_lib.c
56 @@ -512,40 +512,6 @@ void __hif_lib_xmit_pkt(struct hif_clien
57 queue->jiffies_last_packet = jiffies;
60 -/*This function puts the given packet in the specific client queue */
61 -int hif_lib_xmit_pkt(struct hif_client_s *client, unsigned int qno, void *data,
62 - unsigned int len, u32 client_ctrl, void *client_data)
64 - struct hif_client_tx_queue *queue = &client->tx_q[qno];
65 - struct tx_queue_desc *desc = queue->base + queue->write_idx;
67 - if (queue->tx_pending < queue->size) {
68 - /*Construct pkt header */
70 - data -= sizeof(struct hif_hdr);
71 - len += sizeof(struct hif_hdr);
73 - hif_hdr_write(data, client->id, qno, client_ctrl);
75 - desc->data = client_data;
76 - desc->ctrl = CL_DESC_OWN | CL_DESC_FLAGS(HIF_FIRST_BUFFER |
77 - HIF_LAST_BUFFER | HIF_DATA_VALID);
79 - if (hif_xmit_pkt(&pfe->hif, client->id, qno, data, len))
82 - inc_cl_idx(queue->write_idx);
83 - queue->tx_pending++;
84 - queue->jiffies_last_packet = jiffies;
89 - pr_debug("%s Tx client %d qno %d is full\n", __func__, client->id,
94 void *hif_lib_tx_get_next_complete(struct hif_client_s *client, int qno,
95 unsigned int *flags, int count)