From: Suman Anna Date: Wed, 16 Feb 2022 08:12:24 +0000 (+0530) Subject: remoteproc: wkup_m3: Set sysfs_read_only flag X-Git-Tag: v5.18-rc1~57^2~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=19e7bf836997f37b7c70cf8f3091e76b79769673;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Puranjay Mohan Link: https://lore.kernel.org/r/20220216081224.9956-3-p-mohan@ti.com Signed-off-by: Mathieu Poirier --- diff --git a/drivers/remoteproc/wkup_m3_rproc.c b/drivers/remoteproc/wkup_m3_rproc.c index 484f7605823ed..a0c204cb09798 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;