mirror of
https://github.com/breeze303/nss-packages.git
synced 2025-12-16 16:57:29 +00:00
Add NSS-DP from QSDK11.4. NSS-DP is the ethernet driver kernel module. It can be used in standalone mode or with NSS offloading. It includes patches to it in order to work under kernel 5.10. Made for and tested only for IPQ807x. Signed-off-by: Robert Marko <robimarko@gmail.com>
49 lines
1.9 KiB
Diff
49 lines
1.9 KiB
Diff
From c8c52512ff48bee578901c381a42f027e79eadf9 Mon Sep 17 00:00:00 2001
|
|
Message-Id: <c8c52512ff48bee578901c381a42f027e79eadf9.1620066716.git.baruch@tkos.co.il>
|
|
In-Reply-To: <40979666b4371012405715ffa61ab5760fcdc6b3.1620066716.git.baruch@tkos.co.il>
|
|
References: <40979666b4371012405715ffa61ab5760fcdc6b3.1620066716.git.baruch@tkos.co.il>
|
|
From: Baruch Siach <baruch@tkos.co.il>
|
|
Date: Mon, 3 May 2021 20:20:29 +0300
|
|
Subject: [PATCH 3/3] Drop _nocache variants of ioremap()
|
|
|
|
Recent kernels removed them.
|
|
---
|
|
hal/edma/edma_data_plane.c | 2 +-
|
|
hal/gmac_hal_ops/qcom/qcom_if.c | 2 +-
|
|
hal/gmac_hal_ops/syn/xgmac/syn_if.c | 2 +-
|
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
--- a/hal/edma/edma_data_plane.c
|
|
+++ b/hal/edma/edma_data_plane.c
|
|
@@ -797,7 +797,7 @@ int edma_init(void)
|
|
/*
|
|
* Remap register resource
|
|
*/
|
|
- edma_hw.reg_base = ioremap_nocache((edma_hw.reg_resource)->start,
|
|
+ edma_hw.reg_base = ioremap((edma_hw.reg_resource)->start,
|
|
resource_size(edma_hw.reg_resource));
|
|
if (!edma_hw.reg_base) {
|
|
pr_warn("Unable to remap EDMA register memory.\n");
|
|
--- a/hal/gmac_hal_ops/qcom/qcom_if.c
|
|
+++ b/hal/gmac_hal_ops/qcom/qcom_if.c
|
|
@@ -400,7 +400,7 @@ static void *qcom_init(struct gmac_hal_p
|
|
qhd->nghd.mac_id = gmacpdata->macid;
|
|
|
|
/* Populate the mac base addresses */
|
|
- qhd->nghd.mac_base = devm_ioremap_nocache(&dp_priv->pdev->dev,
|
|
+ qhd->nghd.mac_base = devm_ioremap(&dp_priv->pdev->dev,
|
|
res->start, resource_size(res));
|
|
if (!qhd->nghd.mac_base) {
|
|
netdev_dbg(ndev, "ioremap fail.\n");
|
|
--- a/hal/gmac_hal_ops/syn/xgmac/syn_if.c
|
|
+++ b/hal/gmac_hal_ops/syn/xgmac/syn_if.c
|
|
@@ -422,7 +422,7 @@ static void *syn_init(struct gmac_hal_pl
|
|
|
|
/* Populate the mac base addresses */
|
|
shd->nghd.mac_base =
|
|
- devm_ioremap_nocache(&dp_priv->pdev->dev, res->start,
|
|
+ devm_ioremap(&dp_priv->pdev->dev, res->start,
|
|
resource_size(res));
|
|
if (!shd->nghd.mac_base) {
|
|
netdev_dbg(ndev, "ioremap fail.\n");
|