Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4563026rwb; Mon, 31 Jul 2023 08:41:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlFhvrqkBWT70YJko8IC7guhbfpKxVWmB73N77DA3YXbWEohc4cn6f5RgxS5+k2yvYipa7ms X-Received: by 2002:a05:6870:6107:b0:1be:fab9:c1ce with SMTP id s7-20020a056870610700b001befab9c1cemr1430036oae.41.1690818096957; Mon, 31 Jul 2023 08:41:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690818096; cv=none; d=google.com; s=arc-20160816; b=SFLXZrTzHgBCFfU+nJqSGM8B1wbp24g+kOnuSvdiQRdBGOrgv7W5WKkx4DkqcHcu7Z spjVU+HF6eWRoRjiKo3WJBHdZuSVi26bEBqOA3zmj4NyCqaRp590vOhG7RCuWALOwr6j zfrgnDh+udzfJSd+MPWrcxz9sB0E3E5qMIB4H4mL+GWXxym9GXWttgnJ8okJzi78tBey 6SbT92rTrIrhnqkLePjqsISYIcvwNaXroq3LR9kThFGQlLdC4lZCj//81ByGPGumvmRI ZXNDE3mtiW1zCW0riVq1rwLC/P534lhAvCr4b2rYJX70vR6OK5UsP9jGHggLE4ONvFvu NXHg== 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:dkim-signature; bh=3VFHM6udpt+2hG2gmsidVdSbtufMntEuwvx1Y4jjJI4=; fh=pxegSza9erRGIHR4rBbtF2SUMDwKfYZICGSpeBHa7ys=; b=kYxzf5J6Zf+daIdjmo/Kp0D1H/BfW4nhEvL2r0MEkXdK8Nx1E1yiFmbPA3wPY5J+qH O1wVJcHwS10ZhQOOqqeYrYKREGETJYHKZUWmMCTlKj8H1n+zhYL/K7X8LVqiBtoOEAhj QazKq9YTEKDQL+nt0VV/3ql7bSv6DRAbE3zl5jXC2Ptvaz9NQopYgoWdCl5b5hlUPYcA JMi97YNp10KyfeKKp/bm2KSo0mk4c4HYzmYYIs4rMGVa/MYf5eQgCltynkQQswCwMgHE acLnwzFcdhdKXvyypnO3k6iYA4K8kHHZ1FbyceBEtUktpAUx/7tiGRRNjtaiF7iGi4uc u+eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qhqUrVvU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b19-20020a6567d3000000b0055acc7f805bsi7527129pgs.334.2023.07.31.08.41.24; Mon, 31 Jul 2023 08:41:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qhqUrVvU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232842AbjGaPJF (ORCPT + 99 others); Mon, 31 Jul 2023 11:09:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232452AbjGaPJA (ORCPT ); Mon, 31 Jul 2023 11:09:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDF091726; Mon, 31 Jul 2023 08:08:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BD57B6119A; Mon, 31 Jul 2023 15:08:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE470C433C7; Mon, 31 Jul 2023 15:08:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690816137; bh=oOqLznACyt0Ze2IndXFJD1mCt9TSZtRNhA9cISgtZXk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qhqUrVvU/jpadfIcIjeyew8oAopooOc0nuJYMPtyReqOMemjUriEaGM1gXynsSbrL tXD8KcsbgO+lmwA07fI2kLZY02ghDtoieDnPb9I67uv5pm8sr0syJEVU6e70o0t8IA Kk1myA92TRiaD755njdJp4wH0nHR8hLwz988qcDSSJ1eoMre2vWcPz87PemUpQir70 c1k0LjXhakjUp5ZyMWvrLX877WeRgkr3CxiDgm4AFqeEXZwmgIJXrB+pJa+A1LLk2k B0yWQBGNZUd+8PCXLdvbmAo1+3kJk4tCoEKM6hhqGRKlgkij14v47TOLDgd/CvKYR6 kLN9uCQ58Ijpg== Date: Mon, 31 Jul 2023 17:08:52 +0200 From: Simon Horman To: Bjorn Andersson Cc: Bjorn Andersson , Konrad Dybcio , Chris Lew , Alex Elder , "David S. Miller" , Jakub Kicinski , Mathieu Poirier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org Subject: Re: [PATCH 2/4] soc: qcom: aoss: Add debugfs interface for sending messages Message-ID: References: <20230731041013.2950307-1-quic_bjorande@quicinc.com> <20230731041013.2950307-3-quic_bjorande@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230731041013.2950307-3-quic_bjorande@quicinc.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Sun, Jul 30, 2023 at 09:10:11PM -0700, Bjorn Andersson wrote: > From: Chris Lew > > In addition to the normal runtime commands, the Always On Processor > (AOP) provides a number of debug commands which can be used during > system debugging for things such as preventing power collapse or placing > floor votes for certain resources. Some of these are documented in the > Robotics RB5 "Debug AOP ADB" linked below. > > Provide a debugfs interface for the developer/tester to send these > commands to the AOP. > > Link: https://docs.qualcomm.com/bundle/publicresource/topics/80-88500-3/85_Debugging_AOP_ADB.html > Signed-off-by: Chris Lew > [bjorn: Dropped debugfs guards, improve error codes, rewrote commit message] > Signed-off-by: Bjorn Andersson > --- > drivers/soc/qcom/qcom_aoss.c | 33 +++++++++++++++++++++++++++++++++ > 1 file changed, 33 insertions(+) > > diff --git a/drivers/soc/qcom/qcom_aoss.c b/drivers/soc/qcom/qcom_aoss.c > index 5e74332515cf..4c5bb7034fff 100644 > --- a/drivers/soc/qcom/qcom_aoss.c > +++ b/drivers/soc/qcom/qcom_aoss.c > @@ -3,6 +3,7 @@ > * Copyright (c) 2019, Linaro Ltd > */ > #include > +#include > #include > #include > #include > @@ -82,6 +83,7 @@ struct qmp { > > struct clk_hw qdss_clk; > struct qmp_cooling_device *cooling_devs; > + struct dentry *debugfs_file; Hi Bjorn, Please consider adding debugfs_file to the kernel doc for struct qmp. > }; > > static void qmp_kick(struct qmp *qmp) ...