ath79/mikrotik: use routerbootpart partitions
[oweals/openwrt.git] / target / linux / layerscape / patches-5.4 / 701-net-0288-staging-fsl_ppfe-eth-remove-unused-functions.patch
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
5
6 Remove unused functions hif_xmit_pkt & hif_lib_xmit_pkt.
7
8 Signed-off-by: Calvin Johnson <calvin.johnson@nxp.com>
9 ---
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(-)
13
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:
17         return;
18  }
19  
20 -int hif_xmit_pkt(struct pfe_hif *hif, unsigned int client_id, unsigned int q_no,
21 -                void *data, unsigned int len)
22 -{
23 -       int rc = 0;
24 -
25 -       spin_lock_bh(&hif->tx_lock);
26 -
27 -       if (!hif->txavail) {
28 -               rc = 1;
29 -       } else {
30 -               __hif_xmit_pkt(hif, client_id, q_no, data, len,
31 -                              HIF_FIRST_BUFFER | HIF_LAST_BUFFER);
32 -               hif_tx_dma_start();
33 -       }
34 -
35 -       if (hif->txavail < (hif->tx_ring_size >> 1))
36 -               __hif_tx_done_process(hif, TX_FREE_MAX_COUNT);
37 -
38 -       spin_unlock_bh(&hif->tx_lock);
39 -
40 -       return rc;
41 -}
42 -
43  static irqreturn_t wol_isr(int irq, void *dev_id)
44  {
45         pr_info("WoL\n");
46 @@ -907,6 +884,7 @@ static irqreturn_t hif_isr(int irq, void
47                         __napi_schedule(&hif->napi);
48                 }
49         }
50 +
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;
58  }
59  
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)
63 -{
64 -       struct hif_client_tx_queue *queue = &client->tx_q[qno];
65 -       struct tx_queue_desc *desc = queue->base + queue->write_idx;
66 -
67 -       if (queue->tx_pending < queue->size) {
68 -               /*Construct pkt header */
69 -
70 -               data -= sizeof(struct hif_hdr);
71 -               len += sizeof(struct hif_hdr);
72 -
73 -               hif_hdr_write(data, client->id, qno, client_ctrl);
74 -
75 -               desc->data = client_data;
76 -               desc->ctrl = CL_DESC_OWN | CL_DESC_FLAGS(HIF_FIRST_BUFFER |
77 -                               HIF_LAST_BUFFER | HIF_DATA_VALID);
78 -
79 -               if (hif_xmit_pkt(&pfe->hif, client->id, qno, data, len))
80 -                       return 1;
81 -
82 -               inc_cl_idx(queue->write_idx);
83 -               queue->tx_pending++;
84 -               queue->jiffies_last_packet = jiffies;
85 -
86 -               return 0;
87 -       }
88 -
89 -       pr_debug("%s Tx client %d qno %d is full\n", __func__, client->id,
90 -                qno);
91 -       return 1;
92 -}
93 -
94  void *hif_lib_tx_get_next_complete(struct hif_client_s *client, int qno,
95                                    unsigned int *flags, int count)
96  {