/* Return: 0 if all goes good, else appropriate error message.  */
static int k3_dsp_of_to_priv(struct udevice *dev, struct k3_dsp_privdata *dsp)
/* Return: 0 if all goes good, else appropriate error message.  */
static int k3_dsp_of_to_priv(struct udevice *dev, struct k3_dsp_privdata *dsp)
{
	int ret;
	dev_dbg(dev, "%s\n", __func__);
	ret = reset_get_by_index(dev, 0, &dsp->dsp_rst);
	if (ret) {
		dev_err(dev, "reset_get() failed: %d\n", ret);
		return ret;
	}
	ret = ti_sci_proc_of_to_priv(dev, &dsp->tsp);
	if (ret)
		return ret;
	ret =  k3_dsp_of_get_memories(dev);
	if (ret)
		return ret;
	return 0;
}