1 From 92ee95e52191107f8c8adea810232920358ae0e0 Mon Sep 17 00:00:00 2001
2 From: Razvan Stefanescu <razvan.stefanescu@nxp.com>
3 Date: Thu, 12 Apr 2018 15:19:10 +0300
4 Subject: [PATCH] staging: dpaa2-evb: change mc_command in fsl_mc_command
6 Adapt to the upstream changes.
8 Signed-off-by: Razvan Stefanescu <razvan.stefanescu@nxp.com>
10 drivers/staging/fsl-dpaa2/evb/dpdmux.c | 60 +++++++++++++++++-----------------
11 1 file changed, 30 insertions(+), 30 deletions(-)
13 --- a/drivers/staging/fsl-dpaa2/evb/dpdmux.c
14 +++ b/drivers/staging/fsl-dpaa2/evb/dpdmux.c
15 @@ -55,7 +55,7 @@ int dpdmux_open(struct fsl_mc_io *mc_io,
19 - struct mc_command cmd = { 0 };
20 + struct fsl_mc_command cmd = { 0 };
21 struct dpdmux_cmd_open *cmd_params;
24 @@ -92,7 +92,7 @@ int dpdmux_close(struct fsl_mc_io *mc_io
28 - struct mc_command cmd = { 0 };
29 + struct fsl_mc_command cmd = { 0 };
32 cmd.header = mc_encode_cmd_header(DPDMUX_CMDID_CLOSE,
33 @@ -131,7 +131,7 @@ int dpdmux_create(struct fsl_mc_io *mc_i
34 const struct dpdmux_cfg *cfg,
37 - struct mc_command cmd = { 0 };
38 + struct fsl_mc_command cmd = { 0 };
39 struct dpdmux_cmd_create *cmd_params;
42 @@ -180,7 +180,7 @@ int dpdmux_destroy(struct fsl_mc_io *mc_
46 - struct mc_command cmd = { 0 };
47 + struct fsl_mc_command cmd = { 0 };
48 struct dpdmux_cmd_destroy *cmd_params;
51 @@ -206,7 +206,7 @@ int dpdmux_enable(struct fsl_mc_io *mc_i
55 - struct mc_command cmd = { 0 };
56 + struct fsl_mc_command cmd = { 0 };
59 cmd.header = mc_encode_cmd_header(DPDMUX_CMDID_ENABLE,
60 @@ -229,7 +229,7 @@ int dpdmux_disable(struct fsl_mc_io *mc_
64 - struct mc_command cmd = { 0 };
65 + struct fsl_mc_command cmd = { 0 };
68 cmd.header = mc_encode_cmd_header(DPDMUX_CMDID_DISABLE,
69 @@ -254,7 +254,7 @@ int dpdmux_is_enabled(struct fsl_mc_io *
73 - struct mc_command cmd = { 0 };
74 + struct fsl_mc_command cmd = { 0 };
75 struct dpdmux_rsp_is_enabled *rsp_params;
78 @@ -287,7 +287,7 @@ int dpdmux_reset(struct fsl_mc_io *mc_io
82 - struct mc_command cmd = { 0 };
83 + struct fsl_mc_command cmd = { 0 };
86 cmd.header = mc_encode_cmd_header(DPDMUX_CMDID_RESET,
87 @@ -319,7 +319,7 @@ int dpdmux_set_irq_enable(struct fsl_mc_
91 - struct mc_command cmd = { 0 };
92 + struct fsl_mc_command cmd = { 0 };
93 struct dpdmux_cmd_set_irq_enable *cmd_params;
96 @@ -350,7 +350,7 @@ int dpdmux_get_irq_enable(struct fsl_mc_
100 - struct mc_command cmd = { 0 };
101 + struct fsl_mc_command cmd = { 0 };
102 struct dpdmux_cmd_get_irq_enable *cmd_params;
103 struct dpdmux_rsp_get_irq_enable *rsp_params;
105 @@ -396,7 +396,7 @@ int dpdmux_set_irq_mask(struct fsl_mc_io
109 - struct mc_command cmd = { 0 };
110 + struct fsl_mc_command cmd = { 0 };
111 struct dpdmux_cmd_set_irq_mask *cmd_params;
113 /* prepare command */
114 @@ -430,7 +430,7 @@ int dpdmux_get_irq_mask(struct fsl_mc_io
118 - struct mc_command cmd = { 0 };
119 + struct fsl_mc_command cmd = { 0 };
120 struct dpdmux_cmd_get_irq_mask *cmd_params;
121 struct dpdmux_rsp_get_irq_mask *rsp_params;
123 @@ -472,7 +472,7 @@ int dpdmux_get_irq_status(struct fsl_mc_
127 - struct mc_command cmd = { 0 };
128 + struct fsl_mc_command cmd = { 0 };
129 struct dpdmux_cmd_get_irq_status *cmd_params;
130 struct dpdmux_rsp_get_irq_status *rsp_params;
132 @@ -515,7 +515,7 @@ int dpdmux_clear_irq_status(struct fsl_m
136 - struct mc_command cmd = { 0 };
137 + struct fsl_mc_command cmd = { 0 };
138 struct dpdmux_cmd_clear_irq_status *cmd_params;
140 /* prepare command */
141 @@ -544,7 +544,7 @@ int dpdmux_get_attributes(struct fsl_mc_
143 struct dpdmux_attr *attr)
145 - struct mc_command cmd = { 0 };
146 + struct fsl_mc_command cmd = { 0 };
147 struct dpdmux_rsp_get_attr *rsp_params;
150 @@ -585,7 +585,7 @@ int dpdmux_if_enable(struct fsl_mc_io *m
153 struct dpdmux_cmd_if *cmd_params;
154 - struct mc_command cmd = { 0 };
155 + struct fsl_mc_command cmd = { 0 };
157 /* prepare command */
158 cmd.header = mc_encode_cmd_header(DPDMUX_CMDID_IF_ENABLE,
159 @@ -613,7 +613,7 @@ int dpdmux_if_disable(struct fsl_mc_io *
162 struct dpdmux_cmd_if *cmd_params;
163 - struct mc_command cmd = { 0 };
164 + struct fsl_mc_command cmd = { 0 };
166 /* prepare command */
167 cmd.header = mc_encode_cmd_header(DPDMUX_CMDID_IF_DISABLE,
168 @@ -645,7 +645,7 @@ int dpdmux_set_max_frame_length(struct f
170 u16 max_frame_length)
172 - struct mc_command cmd = { 0 };
173 + struct fsl_mc_command cmd = { 0 };
174 struct dpdmux_cmd_set_max_frame_length *cmd_params;
176 /* prepare command */
177 @@ -671,7 +671,7 @@ int dpdmux_ul_reset_counters(struct fsl_
181 - struct mc_command cmd = { 0 };
182 + struct fsl_mc_command cmd = { 0 };
184 /* prepare command */
185 cmd.header = mc_encode_cmd_header(DPDMUX_CMDID_UL_RESET_COUNTERS,
186 @@ -705,7 +705,7 @@ int dpdmux_if_set_accepted_frames(struct
188 const struct dpdmux_accepted_frames *cfg)
190 - struct mc_command cmd = { 0 };
191 + struct fsl_mc_command cmd = { 0 };
192 struct dpdmux_cmd_if_set_accepted_frames *cmd_params;
194 /* prepare command */
195 @@ -739,7 +739,7 @@ int dpdmux_if_get_attributes(struct fsl_
197 struct dpdmux_if_attr *attr)
199 - struct mc_command cmd = { 0 };
200 + struct fsl_mc_command cmd = { 0 };
201 struct dpdmux_cmd_if *cmd_params;
202 struct dpdmux_rsp_if_get_attr *rsp_params;
204 @@ -786,7 +786,7 @@ int dpdmux_if_remove_l2_rule(struct fsl_
206 const struct dpdmux_l2_rule *rule)
208 - struct mc_command cmd = { 0 };
209 + struct fsl_mc_command cmd = { 0 };
210 struct dpdmux_cmd_if_l2_rule *cmd_params;
212 /* prepare command */
213 @@ -826,7 +826,7 @@ int dpdmux_if_add_l2_rule(struct fsl_mc_
215 const struct dpdmux_l2_rule *rule)
217 - struct mc_command cmd = { 0 };
218 + struct fsl_mc_command cmd = { 0 };
219 struct dpdmux_cmd_if_l2_rule *cmd_params;
221 /* prepare command */
222 @@ -865,7 +865,7 @@ int dpdmux_if_get_counter(struct fsl_mc_
223 enum dpdmux_counter_type counter_type,
226 - struct mc_command cmd = { 0 };
227 + struct fsl_mc_command cmd = { 0 };
228 struct dpdmux_cmd_if_get_counter *cmd_params;
229 struct dpdmux_rsp_if_get_counter *rsp_params;
231 @@ -906,7 +906,7 @@ int dpdmux_if_set_link_cfg(struct fsl_mc
233 struct dpdmux_link_cfg *cfg)
235 - struct mc_command cmd = { 0 };
236 + struct fsl_mc_command cmd = { 0 };
237 struct dpdmux_cmd_if_set_link_cfg *cmd_params;
239 /* prepare command */
240 @@ -938,7 +938,7 @@ int dpdmux_if_get_link_state(struct fsl_
242 struct dpdmux_link_state *state)
244 - struct mc_command cmd = { 0 };
245 + struct fsl_mc_command cmd = { 0 };
246 struct dpdmux_cmd_if_get_link_state *cmd_params;
247 struct dpdmux_rsp_if_get_link_state *rsp_params;
249 @@ -989,7 +989,7 @@ int dpdmux_set_custom_key(struct fsl_mc_
252 struct dpdmux_set_custom_key *cmd_params;
253 - struct mc_command cmd = { 0 };
254 + struct fsl_mc_command cmd = { 0 };
256 /* prepare command */
257 cmd.header = mc_encode_cmd_header(DPDMUX_CMDID_SET_CUSTOM_KEY,
258 @@ -1025,7 +1025,7 @@ int dpdmux_add_custom_cls_entry(struct f
259 struct dpdmux_cls_action *action)
261 struct dpdmux_cmd_add_custom_cls_entry *cmd_params;
262 - struct mc_command cmd = { 0 };
263 + struct fsl_mc_command cmd = { 0 };
265 /* prepare command */
266 cmd.header = mc_encode_cmd_header(DPDMUX_CMDID_ADD_CUSTOM_CLS_ENTRY,
267 @@ -1062,7 +1062,7 @@ int dpdmux_remove_custom_cls_entry(struc
268 struct dpdmux_rule_cfg *rule)
270 struct dpdmux_cmd_remove_custom_cls_entry *cmd_params;
271 - struct mc_command cmd = { 0 };
272 + struct fsl_mc_command cmd = { 0 };
274 /* prepare command */
275 cmd.header = mc_encode_cmd_header(DPDMUX_CMDID_REMOVE_CUSTOM_CLS_ENTRY,
276 @@ -1091,7 +1091,7 @@ int dpdmux_get_api_version(struct fsl_mc
280 - struct mc_command cmd = { 0 };
281 + struct fsl_mc_command cmd = { 0 };
282 struct dpdmux_rsp_get_api_version *rsp_params;