Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp905357pxk; Thu, 3 Sep 2020 16:10:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxV1X8dg5tB5euGwLi4W8ioW2hw1lY8/3pEbzTgLrIw5dQDuPXcZ37iosJLxbu/rJm8Fj4X X-Received: by 2002:a17:906:f1d5:: with SMTP id gx21mr4316022ejb.165.1599174636024; Thu, 03 Sep 2020 16:10:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599174636; cv=none; d=google.com; s=arc-20160816; b=lyMUJG+5a6vxkirh7DsheZ1fVQgvlz2d4YNC0UFiW6TF2e3cgvcu0OfklOz5I3B1ce yx2ODbj8sIh9JBAoboejpXmIW+mnrkimBwF9P2VvbdvqkTVodKeeRlpfSWTmYJQoWITu 0g3iQZ8A+2JXS/yanKjVRunq9d/aiQNdeoPma9F0NIZ1/ma3jPdBfEGInCMOYuvG6z9a +F7wKEpXbHomnbX+dz3vSzx2Jzm1xWxCsAPfuzOnRxsXwcGe/l7x5TUQeCaXwSfzsYjX iGbMCEcrgqSZI2QPmPYXCvMKs4cp/+kjwlvZdSkaGW2m6FcBVAF9mfvikAjbPUiXHULf 0d5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature; bh=ITkDaxREYGc2Fpx4JbCEsP9Ch+zk9WIZG7TMYH8pznI=; b=p1aug/b644oF5fky+C8UDGFkQT8dN7aGrZlg2fYq4DsfmKR3Rp+FVcpkm70vfaMvE7 3dDAWMAAzr6jZlFL4ZlYnYq0a5sHny0tnmXvxbzlRf/ct/CktP7oOg/Kmoxk9LW2F+H9 PxpEH2idl5Wrww9Kj2O4ZndqD84Z7PtLh2T8PwaiP7JigUM/qrQvozbdRaUgCpw5JjAN 628ZWRjEwc0e/LLxonXVy/bzH+xnvzsqb5V06fNgHS8ZnrNuP46+dJ4egx0tLE5EK5XT 8/HWfNNszGLN8ItMqv/cl8+9FihpIyXcBxcDH8/0MAHc/iixTcgYMs0sQtgL+gHffxRH CpBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b="eFU/Watk"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nr22si2806906ejb.535.2020.09.03.16.10.13; Thu, 03 Sep 2020 16:10:36 -0700 (PDT) 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=fail header.i=@mg.codeaurora.org header.s=smtp header.b="eFU/Watk"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729352AbgICXGj (ORCPT + 99 others); Thu, 3 Sep 2020 19:06:39 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:15551 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728129AbgICXGh (ORCPT ); Thu, 3 Sep 2020 19:06:37 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1599174397; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=ITkDaxREYGc2Fpx4JbCEsP9Ch+zk9WIZG7TMYH8pznI=; b=eFU/Watki29vdv3akPa/pJrOb/4jnGrIoKHMD5aWB3GiU3AkN+GNlKc2yrtuUzMUfywMJwok RD/YUbaCkBUU+kDc01tY3mBaxEgOH5SNr2LIjM0VGEKp2vQyI54YeaAtljTzVXBzA3JodMGO 2bma3M6nKKjZl4+NZJ4otVnGOh0= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n01.prod.us-west-2.postgun.com with SMTP id 5f51767b25e1ee7586181db7 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 03 Sep 2020 23:04:27 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 4B4AFC43391; Thu, 3 Sep 2020 23:04:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from rishabhb-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: rishabhb) by smtp.codeaurora.org (Postfix) with ESMTPSA id 68109C433C8; Thu, 3 Sep 2020 23:04:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 68109C433C8 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=rishabhb@codeaurora.org From: Rishabh Bhatnagar To: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: bjorn.andersson@linaro.org, tsoni@codeaurora.org, psodagud@codeaurora.org, sidgup@codeaurora.org, Rishabh Bhatnagar Subject: [PATCH v3 1/3] remoteproc: Expose remoteproc configuration through sysfs Date: Thu, 3 Sep 2020 16:03:43 -0700 Message-Id: <1599174226-2307-2-git-send-email-rishabhb@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1599174226-2307-1-git-send-email-rishabhb@codeaurora.org> References: <1599174226-2307-1-git-send-email-rishabhb@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a feature flag to expose some of the remoteproc configuration through sysfs. This feature is helpful in systems where debugfs is not available/mounted. Currently the recovery and coredump configuration is exposed through sysfs rather than debugfs when this feature is selected. Signed-off-by: Rishabh Bhatnagar --- drivers/remoteproc/Kconfig | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/remoteproc/Kconfig b/drivers/remoteproc/Kconfig index c6659dfe..98d52cbe 100644 --- a/drivers/remoteproc/Kconfig +++ b/drivers/remoteproc/Kconfig @@ -275,6 +275,17 @@ config TI_K3_DSP_REMOTEPROC It's safe to say N here if you're not interested in utilizing the DSP slave processors. +config RPROC_SYSFS_CONFIGURATION_SUPPORT + bool "Expose remoteproc configuration sysfs entries" + default y + help + Say y here to expose recovery and coredump configuration sysfs + entries. This is helpful in operating systems where debugfs is + not available/mounted. + + It's safe to say N here if you are not interested in accessing + recovery and coredump configuration through sysfs. + endif # REMOTEPROC endmenu -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project