From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94926C433E7 for ; Wed, 14 Oct 2020 16:46:10 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 068762173E for ; Wed, 14 Oct 2020 16:46:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="mG5h/7Wa" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 068762173E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=X8N6XYiICh02tnI0pnd2Ls+K5QPU1gbXIfjln9LgKok=; b=mG5h/7Wa/xpbR4rsQCFnnD7fp PAVEwHkokq/6fEV2cw8ja2peZJym5GotivnaA2Gzwh+jRJn/ncqBqehhDEwHtcTTvZjKRo9BIFKkt oujF4v4sEdc2IFj1WWrkrx9wXFjXVHDwk6ybzNzdaYoNS4gokqE4r0CpTeCTgGcRsplUgrP/d5/aq LOAYuWLGesOMiYm9UMwLGdDq3kLk7RP13XYq82q5z62gApnmjP72zmcAFWSDRCkgZYF3d2zI86ywY Ctjl/Mtbfmxr7m+8HrpWvNR9iIECDbbtZqEmbm1c3fkngp6dnnt9b5yEpvV3Q6Opl9HKCHySCtvxq JJAksJodw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kSjtZ-00029a-9t; Wed, 14 Oct 2020 16:44:57 +0000 Received: from foss.arm.com ([217.140.110.172]) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kSjtV-00028V-SL for linux-arm-kernel@lists.infradead.org; Wed, 14 Oct 2020 16:44:56 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D3882D6E; Wed, 14 Oct 2020 09:44:52 -0700 (PDT) Received: from e120937-lin (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 425CC3F71F; Wed, 14 Oct 2020 09:44:51 -0700 (PDT) Date: Wed, 14 Oct 2020 17:44:45 +0100 From: Cristian Marussi To: Randy Dunlap Subject: Re: [PATCH 09/11] [DEBUG] firmware: arm_scmi: add example SCMI driver for custom protocol Message-ID: <20201014164445.GA50090@e120937-lin> References: <20201014150545.44807-1-cristian.marussi@arm.com> <20201014150545.44807-10-cristian.marussi@arm.com> <8f879e6b-8be2-1186-6620-f54762bd35e0@infradead.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <8f879e6b-8be2-1186-6620-f54762bd35e0@infradead.org> User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201014_124454_014000_1C721ABD X-CRM114-Status: GOOD ( 21.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: f.fainelli@gmail.com, vincent.guittot@linaro.org, sudeep.holla@arm.com, linux-kernel@vger.kernel.org, thara.gopinath@linaro.org, linux-arm-kernel@lists.infradead.org, james.quinlan@broadcom.com, Jonathan.Cameron@Huawei.com, souvik.chakravarty@arm.com, etienne.carriere@linaro.org, lukasz.luba@arm.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Randy, On Wed, Oct 14, 2020 at 08:55:08AM -0700, Randy Dunlap wrote: > Hi, > > On 10/14/20 8:05 AM, Cristian Marussi wrote: > > Add an example SCMI driver using custom vendor protocol 0x99 and also > > registering for Performance protocol notifications. > > > > Signed-off-by: Cristian Marussi > > --- > > drivers/firmware/Kconfig | 7 + > > drivers/firmware/arm_scmi/Makefile | 2 + > > drivers/firmware/arm_scmi/scmi_custom_dummy.c | 126 ++++++++++++++++++ > > 3 files changed, 135 insertions(+) > > create mode 100644 drivers/firmware/arm_scmi/scmi_custom_dummy.c > > > > diff --git a/drivers/firmware/Kconfig b/drivers/firmware/Kconfig > > index 75e2668a6490..d209df6fd3ee 100644 > > --- a/drivers/firmware/Kconfig > > +++ b/drivers/firmware/Kconfig > > @@ -48,6 +48,13 @@ config ARM_SCMI_POWER_DOMAIN > > will be called scmi_pm_domain. Note this may needed early in boot > > before rootfs may be available. > > > > +config ARM_SCMI_CUSTOM_DUMMY > > + tristate "SCMI Custom Dummy driver" > > + depends on ARM_SCMI_PROTOCOL_CUSTOM || (COMPILE_TEST && OF) > > Just an info note here: has lots of stubs for when CONFIG_OF is not > set/enabled, so COMPILE_TEST is usually enough of a dependency without adding "OF". > That's good to know, because even though this specific patch is just example code not for upstream, I think we mostly use the above kind of 'depends' in other places... so thanks for the heads up I'll investigate those other usages across the SCMI stack if we really need '&& OF'. Thanks Cristian > > + default n > > + help > > + Custom Dummy driver > > > -- > ~Randy > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel