aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/layerscape/patches-5.4/701-net-0166-staging-fsl-dpaa2-mac-make-compatible-with-upstream-.patch
blob: d2e5bf45440682a2d518bdcaa586daeb7d2dd463 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
From 642686661c3324b4ae6c14f1cdbd2ea613525f09 Mon Sep 17 00:00:00 2001
From: Razvan Stefanescu <razvan.stefanescu@nxp.com>
Date: Fri, 13 Apr 2018 09:57:12 +0300
Subject: [PATCH] staging: fsl-dpaa2/mac: make compatible with upstream MC bus

Update the mc.h include path.
Rename struct mc_command to struct fsl_mc_command.

Signed-off-by: Razvan Stefanescu <razvan.stefanescu@nxp.com>
---
 drivers/staging/fsl-dpaa2/mac/dpmac.c | 34 +++++++++++++++++-----------------
 drivers/staging/fsl-dpaa2/mac/mac.c   |  2 +-
 2 files changed, 18 insertions(+), 18 deletions(-)

--- a/drivers/staging/fsl-dpaa2/mac/dpmac.c
+++ b/drivers/staging/fsl-dpaa2/mac/dpmac.c
@@ -29,7 +29,7 @@
  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGE.
  */
-#include "../../fsl-mc/include/mc.h"
+#include <linux/fsl/mc.h>
 #include "dpmac.h"
 #include "dpmac-cmd.h"
 
@@ -56,7 +56,7 @@ int dpmac_open(struct fsl_mc_io *mc_io,
 	       u16 *token)
 {
 	struct dpmac_cmd_open *cmd_params;
-	struct mc_command cmd = { 0 };
+	struct fsl_mc_command cmd = { 0 };
 	int err;
 
 	/* prepare command */
@@ -92,7 +92,7 @@ int dpmac_close(struct fsl_mc_io *mc_io,
 		u32 cmd_flags,
 		u16 token)
 {
-	struct mc_command cmd = { 0 };
+	struct fsl_mc_command cmd = { 0 };
 
 	/* prepare command */
 	cmd.header = mc_encode_cmd_header(DPMAC_CMDID_CLOSE, cmd_flags,
@@ -128,7 +128,7 @@ int dpmac_create(struct fsl_mc_io *mc_io
 		 u32 *obj_id)
 {
 	struct dpmac_cmd_create *cmd_params;
-	struct mc_command cmd = { 0 };
+	struct fsl_mc_command cmd = { 0 };
 	int err;
 
 	/* prepare command */
@@ -170,7 +170,7 @@ int dpmac_destroy(struct fsl_mc_io *mc_i
 		  u32 object_id)
 {
 	struct dpmac_cmd_destroy *cmd_params;
-	struct mc_command cmd = { 0 };
+	struct fsl_mc_command cmd = { 0 };
 
 	/* prepare command */
 	cmd.header = mc_encode_cmd_header(DPMAC_CMDID_DESTROY,
@@ -205,7 +205,7 @@ int dpmac_set_irq_enable(struct fsl_mc_i
 			 u8 en)
 {
 	struct dpmac_cmd_set_irq_enable *cmd_params;
-	struct mc_command cmd = { 0 };
+	struct fsl_mc_command cmd = { 0 };
 
 	/* prepare command */
 	cmd.header = mc_encode_cmd_header(DPMAC_CMDID_SET_IRQ_ENABLE,
@@ -237,7 +237,7 @@ int dpmac_get_irq_enable(struct fsl_mc_i
 {
 	struct dpmac_cmd_get_irq_enable *cmd_params;
 	struct dpmac_rsp_get_irq_enable *rsp_params;
-	struct mc_command cmd = { 0 };
+	struct fsl_mc_command cmd = { 0 };
 	int err;
 
 	/* prepare command */
@@ -282,7 +282,7 @@ int dpmac_set_irq_mask(struct fsl_mc_io
 		       u32 mask)
 {
 	struct dpmac_cmd_set_irq_mask *cmd_params;
-	struct mc_command cmd = { 0 };
+	struct fsl_mc_command cmd = { 0 };
 
 	/* prepare command */
 	cmd.header = mc_encode_cmd_header(DPMAC_CMDID_SET_IRQ_MASK,
@@ -317,7 +317,7 @@ int dpmac_get_irq_mask(struct fsl_mc_io
 {
 	struct dpmac_cmd_get_irq_mask *cmd_params;
 	struct dpmac_rsp_get_irq_mask *rsp_params;
-	struct mc_command cmd = { 0 };
+	struct fsl_mc_command cmd = { 0 };
 	int err;
 
 	/* prepare command */
@@ -360,7 +360,7 @@ int dpmac_get_irq_status(struct fsl_mc_i
 {
 	struct dpmac_cmd_get_irq_status *cmd_params;
 	struct dpmac_rsp_get_irq_status *rsp_params;
-	struct mc_command cmd = { 0 };
+	struct fsl_mc_command cmd = { 0 };
 	int err;
 
 	/* prepare command */
@@ -403,7 +403,7 @@ int dpmac_clear_irq_status(struct fsl_mc
 			   u32 status)
 {
 	struct dpmac_cmd_clear_irq_status *cmd_params;
-	struct mc_command cmd = { 0 };
+	struct fsl_mc_command cmd = { 0 };
 
 	/* prepare command */
 	cmd.header = mc_encode_cmd_header(DPMAC_CMDID_CLEAR_IRQ_STATUS,
@@ -433,7 +433,7 @@ int dpmac_get_attributes(struct fsl_mc_i
 			 struct dpmac_attr *attr)
 {
 	struct dpmac_rsp_get_attributes *rsp_params;
-	struct mc_command cmd = { 0 };
+	struct fsl_mc_command cmd = { 0 };
 	int err;
 
 	/* prepare command */
@@ -471,7 +471,7 @@ int dpmac_get_link_cfg(struct fsl_mc_io
 		       struct dpmac_link_cfg *cfg)
 {
 	struct dpmac_rsp_get_link_cfg *rsp_params;
-	struct mc_command cmd = { 0 };
+	struct fsl_mc_command cmd = { 0 };
 	int err = 0;
 
 	/* prepare command */
@@ -506,7 +506,7 @@ int dpmac_set_link_state(struct fsl_mc_i
 			 struct dpmac_link_state *link_state)
 {
 	struct dpmac_cmd_set_link_state *cmd_params;
-	struct mc_command cmd = { 0 };
+	struct fsl_mc_command cmd = { 0 };
 
 	/* prepare command */
 	cmd.header = mc_encode_cmd_header(DPMAC_CMDID_SET_LINK_STATE,
@@ -539,7 +539,7 @@ int dpmac_get_counter(struct fsl_mc_io *
 {
 	struct dpmac_cmd_get_counter *dpmac_cmd;
 	struct dpmac_rsp_get_counter *dpmac_rsp;
-	struct mc_command cmd = { 0 };
+	struct fsl_mc_command cmd = { 0 };
 	int err = 0;
 
 	/* prepare command */
@@ -567,7 +567,7 @@ int dpmac_set_port_mac_addr(struct fsl_m
 			    const u8 addr[6])
 {
 	struct dpmac_cmd_set_port_mac_addr *dpmac_cmd;
-	struct mc_command cmd = { 0 };
+	struct fsl_mc_command cmd = { 0 };
 
 	/* prepare command */
 	cmd.header = mc_encode_cmd_header(DPMAC_CMDID_SET_PORT_MAC_ADDR,
@@ -600,7 +600,7 @@ int dpmac_get_api_version(struct fsl_mc_
 			  u16 *minor_ver)
 {
 	struct dpmac_rsp_get_api_version *rsp_params;
-	struct mc_command cmd = { 0 };
+	struct fsl_mc_command cmd = { 0 };
 	int err;
 
 	cmd.header = mc_encode_cmd_header(DPMAC_CMDID_GET_API_VERSION,
--- a/drivers/staging/fsl-dpaa2/mac/mac.c
+++ b/drivers/staging/fsl-dpaa2/mac/mac.c
@@ -46,7 +46,7 @@
 #include <linux/phy.h>
 #include <linux/phy_fixed.h>
 
-#include "../../fsl-mc/include/mc.h"
+#include <linux/fsl/mc.h>
 
 #include "dpmac.h"
 #include "dpmac-cmd.h"