kernel_samsung_a53x/drivers/remoteproc
Beleswar Padhi 491f3d1dd8 remoteproc: k3-r5: Jump to error handling labels in start/stop errors
commit 1dc7242f6ee0c99852cb90676d7fe201cf5de422 upstream.

In case of errors during core start operation from sysfs, the driver
directly returns with the -EPERM error code. Fix this to ensure that
mailbox channels are freed on error before returning by jumping to the
'put_mbox' error handling label. Similarly, jump to the 'out' error
handling label to return with required -EPERM error code during the
core stop operation from sysfs.

Fixes: 3c8a9066d584 ("remoteproc: k3-r5: Do not allow core1 to power up before core0 via sysfs")
Signed-off-by: Beleswar Padhi <b-padhi@ti.com>
Link: https://lore.kernel.org/r/20240506141849.1735679-1-b-padhi@ti.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-19 14:19:05 +01:00
..
da8xx_remoteproc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx_rproc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ingenic_rproc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig remoteproc: stm32: use correct format strings on 64-bit 2024-11-19 08:44:58 +01:00
keystone_remoteproc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_scp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_scp_ipi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap_remoteproc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap_remoteproc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_pil_info.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_pil_info.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_q6v5.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_q6v5.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_q6v5_adsp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_q6v5_mss.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_q6v5_pas.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_q6v5_wcss.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_sysmon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_wcnss.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_wcnss.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom_wcnss_iris.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
remoteproc_cdev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
remoteproc_core.c remoteproc: Add new get_loaded_rsc_table() to rproc_ops 2024-11-19 08:44:58 +01:00
remoteproc_coredump.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
remoteproc_debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
remoteproc_elf_helpers.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
remoteproc_elf_loader.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
remoteproc_internal.h remoteproc: Add new get_loaded_rsc_table() to rproc_ops 2024-11-19 08:44:58 +01:00
remoteproc_sysfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
remoteproc_virtio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
st_remoteproc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
st_slim_rproc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stm32_rproc.c remoteproc: stm32: fix phys_addr_t format string 2024-11-19 08:45:00 +01:00
ti_k3_dsp_remoteproc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ti_k3_r5_remoteproc.c remoteproc: k3-r5: Jump to error handling labels in start/stop errors 2024-11-19 14:19:05 +01:00
ti_sci_proc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wkup_m3_rproc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00