Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp895877pxb; Tue, 1 Feb 2022 12:40:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzsXmVpGOp2Ro06+1tdNkGEKCFMnDtk8NpXRyGzV9LQDOc2GhU75ZwUHhCKJs7F7B5Hvu7W X-Received: by 2002:a17:90b:1bcf:: with SMTP id oa15mr4346775pjb.67.1643748019281; Tue, 01 Feb 2022 12:40:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643748019; cv=none; d=google.com; s=arc-20160816; b=m6mrDO/c3IVNsQlMxEqBC7jwFq+3dlId5u8s7nyEMiL1ylddY95Rk1FM7MOfqPTQDT iLFXKaz6JLUoch3L/7wuW6w3JdgavcZjC4RVUWRdHD8x03g4yTvAAYsDl7gHeBrpl1BH Y3nOuqjMuQt2YNO3JuY+SsQVoikH7+hLiKLt3qgPwvhdrpf/pGmNjwX5AcclyAM8k7Rs s30GE0fGgpBtjfkMQGb8A80B5FUQU/QReNNeVkx642KlXztPqupMR4eraC6wG2iXpNPa 15J6p5YTdZWgdTVNLp4w9uM5GE9L3UeLNp07A2uyspq4AECcRppqCMW3Up6vODNt8Zjl LH7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=/I6TXSAhpwpx43zy+1D3LjupIF/S0HrCdtr/QJiuKck=; b=SIs95XO2KrJcKO0tc/r3uDQufMlxW40xJaIi0b4KmI0laEgEkG9ktRn+a3op6jzbze 1qdMlDSo5ihcRy2qQ0W00TSwv2oQFBKHMySXfamLdSRZghacMsGXk5kEsu/husDIbbbP Buk5mj6ReUEyfXc+XlZOOoJPFdvKlHNJkoymB04aTnjQgdrYLnFgpKQwrufaqhpajXds VlQE08Y/R5QAK9CNvQ1KLxwD9aNdFXnCDiNAhS3RiiSpEEYxfzABJ/m+9OAeDs41ZxKG LCQSlHa6eXgQNS+halKRUAWG207KPMyHMP26DfkX4tkbjriOXDjgYo49Kcb1jnxR1Q4L euVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RCRWOyCm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u9si16880922pfi.368.2022.02.01.12.40.07; Tue, 01 Feb 2022 12:40:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RCRWOyCm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379285AbiAaOMX (ORCPT + 99 others); Mon, 31 Jan 2022 09:12:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379295AbiAaOMV (ORCPT ); Mon, 31 Jan 2022 09:12:21 -0500 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF848C06173B; Mon, 31 Jan 2022 06:12:20 -0800 (PST) Received: by mail-pf1-x42a.google.com with SMTP id i65so12947723pfc.9; Mon, 31 Jan 2022 06:12:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/I6TXSAhpwpx43zy+1D3LjupIF/S0HrCdtr/QJiuKck=; b=RCRWOyCmmNz2Ji7dxlsRcIJXL6LRRLXTf71zMxpCuThhJun4nnbgxUIcDLzZzw4gps m/MhttSa7rSau6iOdYCMRS/NLssIlUxNThsjBADigz3gccESpLWobZlC08I/NeU2JteX QbJu90hoJfiKVzDwxMl6lzFe6/zuSmc2DITe/jtpy8JJV+KnxTxrlSECLTp52yIJHIiI DdkCvaWK0WYkxGbKutZUEnsMydcLZEskLFSvXTgx1972MNQ/Y5eINKLjcMB152dah0jT fHzQ793HagYg+foOSOw1dJU8taj7emJVgpSx+b09/VBu/zaewLLCJNQ2UHDX9Q96VQbB ZNmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/I6TXSAhpwpx43zy+1D3LjupIF/S0HrCdtr/QJiuKck=; b=4soTBiERBTaG/da6cYcE9j0LXz5TvPqQWYm1yABYmEGLVzkl7s4PdVBlgLugGqYgQW gDqcd5jVhK0Ul+kOwwOJvftqci3UWMFTXnlCxEx23Wui2SY5LBx6GDoQ+A3UzcO9BsTu uvo4FrRfNPxRZni03s3/YS8r1Fn2hblaFKBwVs+8IdoXEww1E0B2ND7Gbx2QX339YL5t Q03apbkzGyElukBU58jZGGUINpsSwlNQOK4aYGw0Pnis+L9C/Vi9xfdm2J/tCnQ6iYu+ sLVbMDAZl3ArfHRMpJnAhFvgYvE9leNSSUWSusQMg58hTFpRc5kJ9k7c9aZofN7Ek7dO lYdg== X-Gm-Message-State: AOAM531DVWydryEvjG0kxgherLgmvmr0i6VqrnIBFX3HgP4A4/fB/CVF f1015WcpT0faKAqmdyP2LocryinYHfI= X-Received: by 2002:a05:6a00:24d6:: with SMTP id d22mr20079569pfv.36.1643638340321; Mon, 31 Jan 2022 06:12:20 -0800 (PST) Received: from localhost.localdomain ([124.253.246.115]) by smtp.googlemail.com with ESMTPSA id g12sm18101682pfm.119.2022.01.31.06.12.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Jan 2022 06:12:19 -0800 (PST) From: Puranjay Mohan X-Google-Original-From: Puranjay Mohan To: kishon@ti.com, vigneshr@ti.com, s-anna@ti.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Puranjay Mohan Subject: [PATCH 2/2] remoteproc: wkup_m3: Set deny_sysfs_ops flag Date: Mon, 31 Jan 2022 19:41:52 +0530 Message-Id: <1643638312-3912-3-git-send-email-p-mohan@ti.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1643638312-3912-1-git-send-email-p-mohan@ti.com> References: <1643638312-3912-1-git-send-email-p-mohan@ti.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Suman Anna The Wakeup M3 remote processor is controlled by the wkup_m3_ipc client driver, so set the newly introduced 'deny_sysfs_ops' flag to not allow any overriding of the remoteproc firmware or state from userspace. Signed-off-by: Suman Anna Signed-off-by: Puranjay Mohan --- 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..bbb84bb28af8 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->deny_sysfs_ops = true; wkupm3 = rproc->priv; wkupm3->rproc = rproc; -- 2.24.3