mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 01:11:14 +00:00
cddd459140
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>
88 lines
2.6 KiB
Diff
88 lines
2.6 KiB
Diff
From fb2390ac7b8fc635bc136a400419fd3eec1d006f Mon Sep 17 00:00:00 2001
|
|
From: Madalin Bucur <madalin.bucur@nxp.com>
|
|
Date: Wed, 7 Jun 2017 16:10:34 +0300
|
|
Subject: [PATCH] dpa_eth: remove unused code
|
|
|
|
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
|
|
---
|
|
.../ethernet/freescale/sdk_dpaa/dpaa_eth_base.c | 58 ----------------------
|
|
.../ethernet/freescale/sdk_dpaa/dpaa_eth_base.h | 1 -
|
|
2 files changed, 59 deletions(-)
|
|
|
|
--- a/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_base.c
|
|
+++ b/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_base.c
|
|
@@ -165,64 +165,6 @@ _return_of_node_put:
|
|
}
|
|
EXPORT_SYMBOL(dpa_bp_probe);
|
|
|
|
-int dpa_bp_shared_port_seed(struct dpa_bp *bp)
|
|
-{
|
|
- void __iomem **ptr;
|
|
-
|
|
- /* In MAC-less and Shared-MAC scenarios the physical
|
|
- * address of the buffer pool in device tree is set
|
|
- * to 0 to specify that another entity (USDPAA) will
|
|
- * allocate and seed the buffers
|
|
- */
|
|
- if (!bp->paddr)
|
|
- return 0;
|
|
-
|
|
- /* allocate memory region for buffers */
|
|
- devm_request_mem_region(bp->dev, bp->paddr,
|
|
- bp->size * bp->config_count, KBUILD_MODNAME);
|
|
- /* managed ioremap unmapping */
|
|
- ptr = devres_alloc(devm_ioremap_release, sizeof(*ptr), GFP_KERNEL);
|
|
- if (!ptr)
|
|
- return -EIO;
|
|
-#ifndef CONFIG_PPC
|
|
- bp->vaddr = ioremap_cache_ns(bp->paddr, bp->size * bp->config_count);
|
|
-#else
|
|
- bp->vaddr = ioremap_prot(bp->paddr, bp->size * bp->config_count, 0);
|
|
-#endif
|
|
- if (bp->vaddr == NULL) {
|
|
- pr_err("Could not map memory for pool %d\n", bp->bpid);
|
|
- devres_free(ptr);
|
|
- return -EIO;
|
|
- }
|
|
- *ptr = bp->vaddr;
|
|
- devres_add(bp->dev, ptr);
|
|
-
|
|
- /* seed pool with buffers from that memory region */
|
|
- if (bp->seed_pool) {
|
|
- int count = bp->target_count;
|
|
- dma_addr_t addr = bp->paddr;
|
|
-
|
|
- while (count) {
|
|
- struct bm_buffer bufs[8];
|
|
- uint8_t num_bufs = 0;
|
|
-
|
|
- do {
|
|
- BUG_ON(addr > 0xffffffffffffull);
|
|
- bufs[num_bufs].bpid = bp->bpid;
|
|
- bm_buffer_set64(&bufs[num_bufs++], addr);
|
|
- addr += bp->size;
|
|
-
|
|
- } while (--count && (num_bufs < 8));
|
|
-
|
|
- while (bman_release(bp->pool, bufs, num_bufs, 0))
|
|
- cpu_relax();
|
|
- }
|
|
- }
|
|
-
|
|
- return 0;
|
|
-}
|
|
-EXPORT_SYMBOL(dpa_bp_shared_port_seed);
|
|
-
|
|
int dpa_bp_create(struct net_device *net_dev, struct dpa_bp *dpa_bp,
|
|
size_t count)
|
|
{
|
|
--- a/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_base.h
|
|
+++ b/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_base.h
|
|
@@ -45,6 +45,5 @@ struct dpa_bp * __cold __must_check /* _
|
|
dpa_bp_probe(struct platform_device *_of_dev, size_t *count);
|
|
int dpa_bp_create(struct net_device *net_dev, struct dpa_bp *dpa_bp,
|
|
size_t count);
|
|
-int dpa_bp_shared_port_seed(struct dpa_bp *bp);
|
|
|
|
#endif /* __DPAA_ETH_BASE_H */
|