Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp971965pxb; Fri, 22 Apr 2022 15:40:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQ5aq3607j4yTLK8/2sCndIECqshIu61UyWQmXXOnZEa1zea1sU4EZrNhmrjireMu23A0U X-Received: by 2002:a17:902:ef50:b0:156:486f:b593 with SMTP id e16-20020a170902ef5000b00156486fb593mr6744234plx.104.1650667225932; Fri, 22 Apr 2022 15:40:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650667225; cv=none; d=google.com; s=arc-20160816; b=KyYknrEc9FlahTaD/tvwDDS3ec3yEXPCfgQe1obkbLGnUNEKi5+5ioXMqzyDDfNZFZ GE0JI2pdxmue70oGz7OenyrbYNxv+LurJrFklR0sgjaGBYEbYOf517kLVgMS/AP/jafS jn8w4xEh1XZjJSt2h1u1YYxxzvVUpFKWjfm4w+21ihHXxN7aMxz+JYHm9DAxxiKIrRzU GiGopOgpbRWUtkvD3skfGx4BBuYumxGHCkdn5xl/VYiQkNy72pcAljm5IYQ3jdIH1g4d m/Gt1JdBRdZOnwp7wOKXglm809aj7cSKZaWkO5p5/M+Hm5bWM9Bm6f7RsXdZs3SYxGgZ BBNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=5/yt85GyFYhYGlFPRTStFPPCZZjBzr6MvehlEK4BXS4=; b=SqZFKtvFI/J8TbCPWse/FUp/gHmUtk65v+Q3rke79nyKIw9LJQeNisX8LL5arK0HDq +kZcx+/oIUNNYHM9sHRLIgCdsBaBl4A89o8t/qOiTFpjODU3AXUuUkDDpFTilb+gCOOH aKSaeT+EJwS3dYFOdi0+daig+C2+bpRRJpRqsDAt4FHr8Ufnpc4d6uowrCKuAbsROhB8 cOrbT8JzBCT6qLULhMsr1haU53w5Su91KXBcY5Iy8+5fbUQZT8+IX9hcINb4qxqqBwDs Xn5nIf3iCciUeH8AT4XDddKZFACvWndu9QOlrwZMoH3gxzlvO1oYjPi4/IfNPQeCLfee ei8A== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id kx16-20020a17090b229000b001bfb0db0879si10096849pjb.88.2022.04.22.15.40.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 15:40:25 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1699A27A198; Fri, 22 Apr 2022 13:28:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385273AbiDUGyc (ORCPT + 99 others); Thu, 21 Apr 2022 02:54:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1386059AbiDUGyA (ORCPT ); Thu, 21 Apr 2022 02:54:00 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1ED8EB37; Wed, 20 Apr 2022 23:51:12 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 704FC8106; Thu, 21 Apr 2022 06:48:20 +0000 (UTC) Date: Thu, 21 Apr 2022 09:51:10 +0300 From: Tony Lindgren To: Puranjay Mohan Cc: linux-kernel@vger.kernel.org, nm@ti.com, devicetree@vger.kernel.org, grygorii.strashko@ti.com, vigneshr@ti.com, mathieu.poirier@linaro.org, kishon@ti.com, linux-remoteproc@vger.kernel.org, bjorn.andersson@linaro.org, rogerq@kernel.org, krzysztof.kozlowski+dt@linaro.org, ssantosh@kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 5/6] soc: ti: pruss: Add helper function to enable OCP master ports Message-ID: References: <20220418123004.9332-1-p-mohan@ti.com> <20220418123004.9332-6-p-mohan@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220418123004.9332-6-p-mohan@ti.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Puranjay Mohan [220418 12:35]: > From: Suman Anna > +/** > + * pruss_cfg_ocp_master_ports() - configure PRUSS OCP master ports > + * @pruss: the pruss instance handle > + * @enable: set to true for enabling or false for disabling the OCP master ports > + * > + * This function programs the PRUSS_SYSCFG.STANDBY_INIT bit either to enable or > + * disable the OCP master ports (applicable only on SoCs using OCP interconnect > + * like the OMAP family). Clearing the bit achieves dual functionalities - one > + * is to deassert the MStandby signal to the device PRCM, and the other is to > + * enable OCP master ports to allow accesses outside of the PRU-ICSS. The > + * function has to wait for the PRCM to acknowledge through the monitoring of > + * the PRUSS_SYSCFG.SUB_MWAIT bit when enabling master ports. Setting the bit > + * disables the master access, and also signals the PRCM that the PRUSS is ready > + * for Standby. Looks OK to me, some comments regarding runtime PM though for future patching though. Eventually we may want to handle this in drivers/bus/ti-sysc.c so it gets toggled based on runtime PM. The PRUSS sysc register seems to be just a new variant of sysc_regbits_omap4_simple with the standby and status bits added. If using runtime PM for the PRUSS instance is not suitable for managing the standby and status bits, then some comments should be added describing why finer grained control is needed for these bits beyond runtime PM. As far as I'm concerned, these can be done in separate changes, no need to update this patch. Regards, Tony