aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuman Anna <[email protected]>2022-02-16 13:42:24 +0530
committerMathieu Poirier <[email protected]>2022-03-04 09:28:32 -0700
commit19e7bf836997f37b7c70cf8f3091e76b79769673 (patch)
tree1858b8732899befa844a158ab9c253b5fe77ecb3
parent26c9da51949916b73d995a2c89412c346903273d (diff)
remoteproc: wkup_m3: Set sysfs_read_only flag
The Wakeup M3 remote processor is controlled by the wkup_m3_ipc client driver, so set the newly introduced 'sysfs_read_only' flag to not allow any overriding of the remoteproc firmware, state, recovery, or coredump from userspace. Signed-off-by: Suman Anna <[email protected]> Signed-off-by: Puranjay Mohan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mathieu Poirier <[email protected]>
-rw-r--r--drivers/remoteproc/wkup_m3_rproc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/remoteproc/wkup_m3_rproc.c b/drivers/remoteproc/wkup_m3_rproc.c
index 484f7605823e..a0c204cb0979 100644
--- a/drivers/remoteproc/wkup_m3_rproc.c
+++ b/drivers/remoteproc/wkup_m3_rproc.c
@@ -163,6 +163,7 @@ static int wkup_m3_rproc_probe(struct platform_device *pdev)
}
rproc->auto_boot = false;
+ rproc->sysfs_read_only = true;
wkupm3 = rproc->priv;
wkupm3->rproc = rproc;