From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2B57FC433EF for ; Wed, 16 Feb 2022 08:14:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vFOzx+yiunxarMN/epnY2TeYMTxlznKt+Dvfmeq6vns=; b=l6h2egreorAVuM xruQr+47QRlddVnflUPthE548rh/QMM4A8BWPnBgSWb12b/2QWod9u8Sg7a/1Hqgxby8te/jfWpGT glyHnpiF3shfVZDIPO8PR1bln69Nws+YW07pvidwM1gHPWEryzJENt1/vdt1dVbONNt8Y04FgAqKU mKK8LCktdzbEZ/IiZzabFGPIUV2OtPJf1bP3tJ22bVq0i2Jsi2hvi7yj3z+l8qFvsX1UP/HJfHzgX Bovmwx/UzJltu3avCpulpMf6AJ6VesRLm0YfWyHi1DbESN4g7CPf0yNS6bJHoKki269iOB9XMw9Xm S1HKu6+BZpAbZ0fc7zhA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nKFRT-0063OV-FR; Wed, 16 Feb 2022 08:13:39 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nKFQY-00632u-36 for linux-arm-kernel@lists.infradead.org; Wed, 16 Feb 2022 08:12:47 +0000 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 21G8CfOT020144; Wed, 16 Feb 2022 02:12:41 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1644999161; bh=L3o6viKp+9KP+Ivv8wMZofS9DdBqsiGNMjqvAUCvnec=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=uIBjswu6fJqUiDp1DWkFd0gpTvEvi9Y9PLk9Gm1YqD0Ft2q9/8gv6XzrCmUK1pWmR 14iC7DaBBvyzNOFMQ3mFuha2ECqkecQ2OiCZGUp44ocnEYmwUZfUJD9h5ZetcIx1/n EQLx4Wj2KuYGW3HF/wuzEMAb7RXw/1pFBZlNfHq4= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 21G8CfSh009945 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 16 Feb 2022 02:12:41 -0600 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Wed, 16 Feb 2022 02:12:40 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Wed, 16 Feb 2022 02:12:40 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 21G8CdW4032955; Wed, 16 Feb 2022 02:12:40 -0600 From: Puranjay Mohan To: , , , , , , , CC: Puranjay Mohan Subject: [PATCH v5 2/2] remoteproc: wkup_m3: Set sysfs_read_only flag Date: Wed, 16 Feb 2022 13:42:24 +0530 Message-ID: <20220216081224.9956-3-p-mohan@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220216081224.9956-1-p-mohan@ti.com> References: <20220216081224.9956-1-p-mohan@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220216_001242_263850_2964AC4F X-CRM114-Status: GOOD ( 10.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Suman Anna 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 Reviewed-by: Mathieu Poirier --- Changes in v4->v5 rename deny_sysfs_ops to sysfs_read_only --- drivers/remoteproc/wkup_m3_rproc.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel