Lines Matching refs:reset

17 #include <linux/reset.h>
55 * @uses_lreset: flag to denote the need for local reset management
72 * @reset: reset control handle
87 struct reset_control *reset;
165 /* Put the DSP processor into reset */
171 ret = reset_control_assert(kproc->reset);
173 dev_err(dev, "local-reset assert failed, ret = %d\n", ret);
183 dev_err(dev, "module-reset assert failed, ret = %d\n", ret);
184 if (reset_control_deassert(kproc->reset))
185 dev_warn(dev, "local-reset deassert back failed\n");
191 /* Release the DSP processor from reset */
203 dev_err(dev, "module-reset deassert failed, ret = %d\n", ret);
208 ret = reset_control_deassert(kproc->reset);
210 dev_err(dev, "local-reset deassert failed, ret = %d\n", ret);
213 dev_warn(dev, "module-reset assert back failed\n");
220 * The C66x DSP cores have a local reset that affects only the CPU, and a
221 * generic module reset that powers on the device and allows the DSP internal
222 * memories to be accessed while the local reset is asserted. This function is
223 * used to release the global reset on C66x DSPs to allow loading into the DSP
237 dev_err(dev, "module-reset deassert failed, cannot enable internal RAM loading, ret = %d\n",
246 * global reset on applicable C66x cores. This completes the second portion of
248 * .stop() callback through the local reset, and the .unprepare() ops is invoked
250 * reset.
261 dev_err(dev, "module-reset assert failed, ret = %d\n", ret);
335 * This function puts the DSP processor into reset, and finishes processing
642 kproc->reset = devm_reset_control_get_exclusive(dev, NULL);
643 if (IS_ERR(kproc->reset)) {
644 ret = PTR_ERR(kproc->reset);
645 dev_err(dev, "failed to get reset, status = %d\n", ret);
674 * ensure the DSP local reset is asserted to ensure the DSP doesn't
675 * execute bogus code in .prepare() when the module reset is released.
678 ret = reset_control_status(kproc->reset);
680 dev_err(dev, "failed to get reset status, status = %d\n",
684 dev_warn(dev, "local reset is deasserted for device\n");