|
21 | 21 | #include "ti_sci_proc.h" |
22 | 22 | #include "ti_k3_common.h" |
23 | 23 |
|
24 | | -/* |
25 | | - * This function implements the .unprepare() ops and performs the complimentary |
26 | | - * operations to that of the .prepare() ops. The function is used to assert the |
27 | | - * global reset on applicable cores. This completes the second portion of |
28 | | - * powering down the remote core. The cores themselves are only halted in the |
29 | | - * .stop() callback through the local reset, and the .unprepare() ops is invoked |
30 | | - * by the remoteproc core after the remoteproc is stopped to balance the global |
31 | | - * reset. |
32 | | - */ |
33 | | -static int k3_m4_rproc_unprepare(struct rproc *rproc) |
34 | | -{ |
35 | | - struct k3_rproc *kproc = rproc->priv; |
36 | | - struct device *dev = kproc->dev; |
37 | | - int ret; |
38 | | - |
39 | | - /* If the core is going to be detached do not assert the module reset */ |
40 | | - if (rproc->state == RPROC_DETACHED) |
41 | | - return 0; |
42 | | - |
43 | | - ret = kproc->ti_sci->ops.dev_ops.put_device(kproc->ti_sci, |
44 | | - kproc->ti_sci_id); |
45 | | - if (ret) { |
46 | | - dev_err(dev, "module-reset assert failed\n"); |
47 | | - return ret; |
48 | | - } |
49 | | - |
50 | | - return 0; |
51 | | -} |
52 | | - |
53 | 24 | /* |
54 | 25 | * This function implements the .get_loaded_rsc_table() callback and is used |
55 | 26 | * to provide the resource table for a booted remote processor in IPC-only |
@@ -326,7 +297,7 @@ static int k3_m4_rproc_detach(struct rproc *rproc) |
326 | 297 |
|
327 | 298 | static const struct rproc_ops k3_m4_rproc_ops = { |
328 | 299 | .prepare = k3_rproc_prepare, |
329 | | - .unprepare = k3_m4_rproc_unprepare, |
| 300 | + .unprepare = k3_rproc_unprepare, |
330 | 301 | .start = k3_m4_rproc_start, |
331 | 302 | .stop = k3_m4_rproc_stop, |
332 | 303 | .attach = k3_m4_rproc_attach, |
|
0 commit comments