Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp672499pxu; Wed, 14 Oct 2020 10:40:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqF3CNNg+NSH9aaXjVtGoCLUvEnO2W1lx12GxfuZmsEQe9ewtZ1PReR9NGWd4e4cq5A7/t X-Received: by 2002:a17:906:c0c8:: with SMTP id bn8mr171591ejb.256.1602697219170; Wed, 14 Oct 2020 10:40:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602697219; cv=none; d=google.com; s=arc-20160816; b=zxUvS3zHVKaVSpBkP7EDp/Ll+Ux+PEpJu9YOdbvWuP+lfLNY0wW+lPuYcM8r2EBg2g NuiXYnHwq4KWzburuJYeHRB5cNQEjvZuIzJkcxuvWOCQyMmiv3A4S91uk47Hyux2P9LC 1BCBdSzvHt8UosSdU1pvHIwNv47JSzgv+4/LgRFe4ZYQQENLF08PUORPRrwcEB2pynXC TuZDLWglUe+WJB+FB304eAcosVSOdJEgyk6x6QqdO/3zGw1QH/5lzrTPblTl9/rdd5iK LVAkTTRhCLC7ZWqbDPkqNMVXWe/hFFUCqXg70w88U5h+9unydBzbXoK1WWSr7DoWGKOy 1oxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=JUCk38zQqoNw+Ur7QmwfWWDDWR8wzCEnf+omdO1iWrA=; b=nWBRagzSXMTFz35gSgJuFS00xB9mcnTwObBbiYG5Ip7vgBdVNXCxtQRPi/iZHsyFY/ 1B6T0UfM3D3Dq4XuS9tHPkucspS1Mwv/HX6Beg6ZvjGtPAhEXq+Qf7iVrfOfulfQVWEV Bx8BOt2HteBTKz91sg1OZqJHR0p24zY3/PdjF/92ESxe0NYit71dVf3xBo7PI8v9l5fi 3puu8QIEcY4foej2gMkIbcwcYSaQTdUNUOwsDf72s14+jZHoTa1K6jygCHg7anE938KK Ffdiu9FJ+6HYEPhXRe4J42s0xtYGoZzwKSCLEBVSGH7yzWkACqHSYyE0K8jcBbI9gOGD aD6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=K4EwvrPv; 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 l14si238455ejg.242.2020.10.14.10.39.56; Wed, 14 Oct 2020 10:40:19 -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=pass header.i=@infradead.org header.s=casper.20170209 header.b=K4EwvrPv; 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 S1729902AbgJNPzY (ORCPT + 99 others); Wed, 14 Oct 2020 11:55:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729337AbgJNPzX (ORCPT ); Wed, 14 Oct 2020 11:55:23 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6E67C061755 for ; Wed, 14 Oct 2020 08:55:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=JUCk38zQqoNw+Ur7QmwfWWDDWR8wzCEnf+omdO1iWrA=; b=K4EwvrPvCYolK8foOv7A7XEWTU IzeMHR1jMgqQ8ceVOgYlPYB1Wl4/zUCY5bjr49CW5Gw5s9j9KrqFDpf1D5OmmKk1Ed2Rbiik0Pief C8Vuw1WJKjzBF3yvLFrulf/Gs5zTybvQdjifNcbMHjWgESe7oNNv+98lDTqmfPE2dALlX9MV2c/Ie feIYILGnAV6H+pOTrGXN1CvMBkgJxoG02TxVCoFpqwS/xne9bYj3nqrY5U9WAUnF71k5/7pAl6403 Z0Fqtal3Vz0zVqm1MArIW9C+uHnxyq/MmY0q/d21lUPkU4WGTPH0t1GFsUw6wDSXbaAvQTBgqFdSX HylQ+3Xw==; Received: from [2601:1c0:6280:3f0::507c] by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kSj7Q-0007XU-S6; Wed, 14 Oct 2020 15:55:13 +0000 Subject: Re: [PATCH 09/11] [DEBUG] firmware: arm_scmi: add example SCMI driver for custom protocol To: Cristian Marussi , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: sudeep.holla@arm.com, lukasz.luba@arm.com, james.quinlan@broadcom.com, Jonathan.Cameron@Huawei.com, f.fainelli@gmail.com, etienne.carriere@linaro.org, thara.gopinath@linaro.org, vincent.guittot@linaro.org, souvik.chakravarty@arm.com References: <20201014150545.44807-1-cristian.marussi@arm.com> <20201014150545.44807-10-cristian.marussi@arm.com> From: Randy Dunlap Message-ID: <8f879e6b-8be2-1186-6620-f54762bd35e0@infradead.org> Date: Wed, 14 Oct 2020 08:55:08 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20201014150545.44807-10-cristian.marussi@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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". > + default n > + help > + Custom Dummy driver -- ~Randy