remoteproc: k3-r5: Do not allow core1 to power up before core0 via sysfs
authorBeleswar Padhi <b-padhi@ti.com>
Tue, 30 Apr 2024 10:53:07 +0000 (16:23 +0530)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 30 Apr 2024 16:51:06 +0000 (10:51 -0600)
commit3c8a9066d584f5010b6f4ba03bf6b19d28973d52
tree6d868927a35c9803f82ca206bb5e70dbfebc24fc
parent61f6f68447aba08aeaa97593af3a7d85a114891f
remoteproc: k3-r5: Do not allow core1 to power up before core0 via sysfs

PSC controller has a limitation that it can only power-up the second
core when the first core is in ON state. Power-state for core0 should be
equal to or higher than core1.

Therefore, prevent core1 from powering up before core0 during the start
process from sysfs. Similarly, prevent core0 from shutting down before
core1 has been shut down from sysfs.

Fixes: 6dedbd1d5443 ("remoteproc: k3-r5: Add a remoteproc driver for R5F subsystem")
Signed-off-by: Beleswar Padhi <b-padhi@ti.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240430105307.1190615-3-b-padhi@ti.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/ti_k3_r5_remoteproc.c