From patchwork Sat Sep 15 00:37:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Anna X-Patchwork-Id: 146738 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1279308ljw; Fri, 14 Sep 2018 17:37:55 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYqb6yuMCIR/H90EkWbUX8PGrNvHsQAP0Em2/NEtm6ZGIbv5sP6MI23q0f38q54A6qfSlf5 X-Received: by 2002:a63:ab0c:: with SMTP id p12-v6mr14186824pgf.190.1536971874992; Fri, 14 Sep 2018 17:37:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536971874; cv=none; d=google.com; s=arc-20160816; b=k4voeD12uekonSA/Ib96/iTNqIOudPzOMSlPOfTumhw81MFJnsUqZuxUx+osuINtdj dsZK6dxhfu6//k31AyvMl1qedonm+Oxl1IYb7CrqXdAVuNl9aY1wupvjKDw3xg04rotz /M8Gl8NvAPkHNW/KfBsJzr8VvSBiPKAdIgRLJavyRSyb+f/D9oIbQd3fuWdH2KqzhEOi YGC3N3KayFktEZ0UWeAJlqcE3vIVjin75UCmLTSeyiH4Nfi4MAGifEz+5GUq9eUs/6Y0 d8KDvajiryp673uLwIAXasLpxpQQ+LpvzT/jwe90YRr7k5aqoXPjSMFazHxkGA7TuFpe vVBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=U/URxLYk+u/unXsblN+t/eH+5kYwXM1lAsKzPedS5Ho=; b=wBh/4etmGQQrJJtVej0r0qtwyrAukGfdSn+OVY8Us6W+rM+0tlGElSjdBScDm+ic2B V9sg72WEc8T31AK+Sedr6xN3HmEUdrUigx5QL7A48JL1TuogyB+mwOrH2Fnhr3n4YogX BbYp6HGsopHA+/Uzq0Fnikzq+fScLUKMt4tXpQtN8Coyx8zHjfKbL9AwhPAnT0h0TMQg /PV7z1RZsWOZxKMs3xPe+nUhTns54jNdAS04u0K/QxWhzw3IpSWyow+b5JvpJhaI0ScG gk2uk1Xn3WQQduDFXwwRrIEExJLvs7uxgr/2UGd0Uc3DceGIXsJzkvyqS+kw/oxknsnT XTJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="nRoJ+O/G"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 30-v6si8312894pgt.678.2018.09.14.17.37.54; Fri, 14 Sep 2018 17:37:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="nRoJ+O/G"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727680AbeIOFyk (ORCPT + 32 others); Sat, 15 Sep 2018 01:54:40 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:37494 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725907AbeIOFyT (ORCPT ); Sat, 15 Sep 2018 01:54:19 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id w8F0bSur030654; Fri, 14 Sep 2018 19:37:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1536971848; bh=U/URxLYk+u/unXsblN+t/eH+5kYwXM1lAsKzPedS5Ho=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=nRoJ+O/GXT3mzr4/zEp9L/B9UeGQb13BDDQEC3BnBaAHsvRMeqzG8PDczZWieVwvH hFhzghnafEXZ8ogIoYRSM4MksG/mZkh4mqqIl/81tYdtGYfb0/ZYX49hTuxBmxhrjQ dI5iu+AsDFuAQKjx/jVILrFH8c8sTbD9UoSPFLmY= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w8F0bSkv032390; Fri, 14 Sep 2018 19:37:28 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Fri, 14 Sep 2018 19:37:28 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Fri, 14 Sep 2018 19:37:28 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w8F0bSVV010482; Fri, 14 Sep 2018 19:37:28 -0500 Received: from localhost (irmo.dhcp.ti.com [128.247.58.153]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id w8F0bSx13355; Fri, 14 Sep 2018 19:37:28 -0500 (CDT) From: Suman Anna To: Bjorn Andersson CC: Ohad Ben-Cohen , Loic Pallardy , Arnaud Pouliquen , , , Suman Anna Subject: [PATCH 5/5] remoteproc/wkup_m3: Set deny_sysfs_ops flag Date: Fri, 14 Sep 2018 19:37:25 -0500 Message-ID: <20180915003725.17549-6-s-anna@ti.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180915003725.17549-1-s-anna@ti.com> References: <20180915003725.17549-1-s-anna@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/remoteproc/wkup_m3_rproc.c | 1 + 1 file changed, 1 insertion(+) -- 2.18.0 diff --git a/drivers/remoteproc/wkup_m3_rproc.c b/drivers/remoteproc/wkup_m3_rproc.c index 1ada0e51fef6..327757fd4d8f 100644 --- a/drivers/remoteproc/wkup_m3_rproc.c +++ b/drivers/remoteproc/wkup_m3_rproc.c @@ -168,6 +168,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;