diff options
author | Yangbo Lu <yangbo.lu@nxp.com> | 2020-04-10 10:47:05 +0800 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2020-05-07 12:53:06 +0200 |
commit | cddd4591404fb4c53dc0b3c0b15b942cdbed4356 (patch) | |
tree | 392c1179de46b0f804e3789edca19069b64e6b44 /target/linux/layerscape/patches-5.4/701-net-0288-staging-fsl_ppfe-eth-remove-unused-functions.patch | |
parent | d1d2c0b5579ea4f69a42246c9318539d61ba1999 (diff) | |
download | upstream-cddd4591404fb4c53dc0b3c0b15b942cdbed4356.tar.gz upstream-cddd4591404fb4c53dc0b3c0b15b942cdbed4356.tar.bz2 upstream-cddd4591404fb4c53dc0b3c0b15b942cdbed4356.zip |
layerscape: add patches-5.4
Add patches for linux-5.4. The patches are from NXP LSDK-20.04 release
which was tagged LSDK-20.04-V5.4.
https://source.codeaurora.org/external/qoriq/qoriq-components/linux/
For boards LS1021A-IOT, and Traverse-LS1043 which are not involved in
LSDK, port the dts patches from 4.14.
The patches are sorted into the following categories:
301-arch-xxxx
302-dts-xxxx
303-core-xxxx
701-net-xxxx
801-audio-xxxx
802-can-xxxx
803-clock-xxxx
804-crypto-xxxx
805-display-xxxx
806-dma-xxxx
807-gpio-xxxx
808-i2c-xxxx
809-jailhouse-xxxx
810-keys-xxxx
811-kvm-xxxx
812-pcie-xxxx
813-pm-xxxx
814-qe-xxxx
815-sata-xxxx
816-sdhc-xxxx
817-spi-xxxx
818-thermal-xxxx
819-uart-xxxx
820-usb-xxxx
821-vfio-xxxx
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Diffstat (limited to 'target/linux/layerscape/patches-5.4/701-net-0288-staging-fsl_ppfe-eth-remove-unused-functions.patch')
-rw-r--r-- | target/linux/layerscape/patches-5.4/701-net-0288-staging-fsl_ppfe-eth-remove-unused-functions.patch | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/target/linux/layerscape/patches-5.4/701-net-0288-staging-fsl_ppfe-eth-remove-unused-functions.patch b/target/linux/layerscape/patches-5.4/701-net-0288-staging-fsl_ppfe-eth-remove-unused-functions.patch new file mode 100644 index 0000000000..2e9f4900f4 --- /dev/null +++ b/target/linux/layerscape/patches-5.4/701-net-0288-staging-fsl_ppfe-eth-remove-unused-functions.patch @@ -0,0 +1,96 @@ +From accfaecbbcb882dcc2d47660a644c353ae337861 Mon Sep 17 00:00:00 2001 +From: Calvin Johnson <calvin.johnson@nxp.com> +Date: Wed, 18 Oct 2017 14:29:30 +0530 +Subject: [PATCH] staging: fsl_ppfe/eth: remove unused functions + +Remove unused functions hif_xmit_pkt & hif_lib_xmit_pkt. + +Signed-off-by: Calvin Johnson <calvin.johnson@nxp.com> +--- + drivers/staging/fsl_ppfe/pfe_hif.c | 24 +----------------------- + drivers/staging/fsl_ppfe/pfe_hif_lib.c | 34 ---------------------------------- + 2 files changed, 1 insertion(+), 57 deletions(-) + +--- a/drivers/staging/fsl_ppfe/pfe_hif.c ++++ b/drivers/staging/fsl_ppfe/pfe_hif.c +@@ -844,29 +844,6 @@ skip_tx: + return; + } + +-int hif_xmit_pkt(struct pfe_hif *hif, unsigned int client_id, unsigned int q_no, +- void *data, unsigned int len) +-{ +- int rc = 0; +- +- spin_lock_bh(&hif->tx_lock); +- +- if (!hif->txavail) { +- rc = 1; +- } else { +- __hif_xmit_pkt(hif, client_id, q_no, data, len, +- HIF_FIRST_BUFFER | HIF_LAST_BUFFER); +- hif_tx_dma_start(); +- } +- +- if (hif->txavail < (hif->tx_ring_size >> 1)) +- __hif_tx_done_process(hif, TX_FREE_MAX_COUNT); +- +- spin_unlock_bh(&hif->tx_lock); +- +- return rc; +-} +- + static irqreturn_t wol_isr(int irq, void *dev_id) + { + pr_info("WoL\n"); +@@ -907,6 +884,7 @@ static irqreturn_t hif_isr(int irq, void + __napi_schedule(&hif->napi); + } + } ++ + if (int_status & HIF_TXPKT_INT) { + int_status &= ~(HIF_TXPKT_INT); + int_enable_mask &= ~(HIF_TXPKT_INT); +--- a/drivers/staging/fsl_ppfe/pfe_hif_lib.c ++++ b/drivers/staging/fsl_ppfe/pfe_hif_lib.c +@@ -512,40 +512,6 @@ void __hif_lib_xmit_pkt(struct hif_clien + queue->jiffies_last_packet = jiffies; + } + +-/*This function puts the given packet in the specific client queue */ +-int hif_lib_xmit_pkt(struct hif_client_s *client, unsigned int qno, void *data, +- unsigned int len, u32 client_ctrl, void *client_data) +-{ +- struct hif_client_tx_queue *queue = &client->tx_q[qno]; +- struct tx_queue_desc *desc = queue->base + queue->write_idx; +- +- if (queue->tx_pending < queue->size) { +- /*Construct pkt header */ +- +- data -= sizeof(struct hif_hdr); +- len += sizeof(struct hif_hdr); +- +- hif_hdr_write(data, client->id, qno, client_ctrl); +- +- desc->data = client_data; +- desc->ctrl = CL_DESC_OWN | CL_DESC_FLAGS(HIF_FIRST_BUFFER | +- HIF_LAST_BUFFER | HIF_DATA_VALID); +- +- if (hif_xmit_pkt(&pfe->hif, client->id, qno, data, len)) +- return 1; +- +- inc_cl_idx(queue->write_idx); +- queue->tx_pending++; +- queue->jiffies_last_packet = jiffies; +- +- return 0; +- } +- +- pr_debug("%s Tx client %d qno %d is full\n", __func__, client->id, +- qno); +- return 1; +-} +- + void *hif_lib_tx_get_next_complete(struct hif_client_s *client, int qno, + unsigned int *flags, int count) + { |