Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4773395pxu; Wed, 21 Oct 2020 05:11:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvb37/+w/BZItmZ2ZYzpBMbwEcsujjXgVz+D8DWi0G8nh4/CVd+6iynBvst05Uo9qvI6iJ X-Received: by 2002:a17:906:4a97:: with SMTP id x23mr3078338eju.471.1603282278879; Wed, 21 Oct 2020 05:11:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603282278; cv=none; d=google.com; s=arc-20160816; b=qJBYxkvq4PJWg/AB4X5CjT/milPRJuvKEb7crPqzH5RotiLDdw9XPrD/EqyXqvI5Al kNa2ckW86sEEGgKmdDMvKmAqFgrb9MBuDEfcAOFVxx6FdKf+RNFg7oLtw6X2JSU2xixM Uw6zloVoqHMq+KhNyOXTvSY9IbNjrj2eqe32Mz1hzfq8xPxD+HdVaEmOmVahL1lPlZY0 P4pAKVsEZ+7EJQ8oP7kOAvQnIKQqtfjr8wclAHjRHBqikrNFLmLUTNPw3xEmQ82Jfsjt LNssfn8XCNW2cyrk3xPHkM89MxyY52pQ16fcoGvZ5WG+czmbM3oXlbM/yWMEjnhnAZ4w y85A== 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:references:cc :to:subject:from:dkim-signature; bh=jPDwSgLYvQCo/mG9InkCNxNQ0QGNMzzuKpyCjbVUMes=; b=TwXF7uSXkl0VO8lq1VD9tOH89+/sRbkTFZH+vneeVsbss3faCTCaMhla7Yj4Hsb/0m EQX60859hZD47iD0+9MoS1njy0MlWEQS+Ec9ho8kJPWu1lMVqpGQ0BhPVJkPtmK46IUv bH9NZd1ZvhlXzRuwjWTmfEt4JPYnvSg+5FZB4/cro2tbbXmaCIR5B1lxX9HxkQLyJ0He KzBF7BRq13EPSE/4TX5eZSwH2epcJdyr2k1MnadZFx0QCDjpshGVKUaEG1RviHWwSViS 5NBuWrJRYxVLkLzyvMIRbZI5LGIXye7Kw18f3oDOd4K0ls5D4xfrYSVxULxyjN7e3m7i +PhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r6fW1DVN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r10si1187806ejx.127.2020.10.21.05.10.55; Wed, 21 Oct 2020 05:11:18 -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=@linaro.org header.s=google header.b=r6fW1DVN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2411320AbgJUCt0 (ORCPT + 99 others); Tue, 20 Oct 2020 22:49:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2411316AbgJUCt0 (ORCPT ); Tue, 20 Oct 2020 22:49:26 -0400 Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A7C2C0613CE for ; Tue, 20 Oct 2020 19:49:25 -0700 (PDT) Received: by mail-qk1-x741.google.com with SMTP id v200so1029105qka.0 for ; Tue, 20 Oct 2020 19:49:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=jPDwSgLYvQCo/mG9InkCNxNQ0QGNMzzuKpyCjbVUMes=; b=r6fW1DVNYB8qqsQ8Q4CdElTaydx0rngT2GoaULeddh00abGzniECWUirF64S+NSj8O 2Xtpl1gyMMyIH7yPl1CthDj88CCORLsLDQDZRddwU7uFhNgiBsIZ0hQ8qyp9igYJvAGj sXTMkLIDh6X5X3n5gHh1FqYKVrgRsDNsmygU9awY1Qk0C3xM/CMDE87xcaiXkhoCBhTw RGWeEZe8E+ScCZ/1BrS3KBqgTHWoVg21g94rqrA4ZTq9ZxLlwQjRDc9oHyz4zbs5qGXh /hZzZHVxBEKf6LwYO3DYDY35alsLOo63Ioz2lDDjI/qPOMzGwBd1Ix81MhubSiPGqx3U 14Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=jPDwSgLYvQCo/mG9InkCNxNQ0QGNMzzuKpyCjbVUMes=; b=gEH8JDNDQDLuEARmK+4LUKQ6U3bYcIvQzyPfTTVKDhPTtZUJiNzo6B8x/6mTGDahHQ Od3T3DrCcZU7dQF7I5BtG5oDFlTkluh1haXvnKRNMCPuA4ijnSPd1HvVFwwtU0U6dMUP B/T91ZtVG4CNxP4DIjgAJ89cCESemvHKEoOrtqq3hSlvV30/S2yL1wvHyGLxbbHWqF0p djiBOOhYya2AVaGqbiIvjtZaVUa8vK8ayOisxWrdY/EuKXspabo0gLMmwInrhGbDlLhZ jWppPWVLY7cPodmyQi8k4eaFzyQaMBdgWTUBrV1bUSL9ucUoAQGs/a/EAx43f2FT109w fy9Q== X-Gm-Message-State: AOAM532XvhgA27gnskCdhdKG2ULo6Z1apxlkl+KVB/NxXduam//DeO2h wBphw8aMiaa8ckhKPHEroG4Nnw== X-Received: by 2002:a05:620a:14a9:: with SMTP id x9mr1269165qkj.47.1603248564583; Tue, 20 Oct 2020 19:49:24 -0700 (PDT) Received: from [192.168.1.93] (pool-71-163-245-5.washdc.fios.verizon.net. [71.163.245.5]) by smtp.gmail.com with ESMTPSA id e188sm571784qkf.128.2020.10.20.19.49.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Oct 2020 19:49:23 -0700 (PDT) From: Thara Gopinath Subject: Re: [PATCH 10/11] [DEBUG] firmware: arm_scmi: add custom_dummy SCMI devname 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, vincent.guittot@linaro.org, souvik.chakravarty@arm.com References: <20201014150545.44807-1-cristian.marussi@arm.com> <20201014150545.44807-11-cristian.marussi@arm.com> Message-ID: Date: Tue, 20 Oct 2020 22:49:23 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201014150545.44807-11-cristian.marussi@arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/14/20 11:05 AM, Cristian Marussi wrote: > Add custom_dummy SCMI devname. > > Signed-off-by: Cristian Marussi > --- > drivers/firmware/arm_scmi/driver.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/firmware/arm_scmi/driver.c b/drivers/firmware/arm_scmi/driver.c > index 55df134c2338..5c39a738866a 100644 > --- a/drivers/firmware/arm_scmi/driver.c > +++ b/drivers/firmware/arm_scmi/driver.c > @@ -993,6 +993,7 @@ static struct scmi_prot_devnames devnames[] = { > { SCMI_PROTOCOL_CLOCK, { "clocks" },}, > { SCMI_PROTOCOL_SENSOR, { "hwmon" },}, > { SCMI_PROTOCOL_RESET, { "reset" },}, > + { SCMI_PROTOCOL_CUSTOM_DUMMY, { "custom_dummy" },}, Hi Cristian, Thanks for the sample dummy custom protocol and driver! The problem with adding scmi devname into the array is that every time a custom vendor protocol is added, the array has to be extended. Instead since the scmi spec supports the range 0x80-0xff for custom protocols, why not check for that range in scmi_create_protocol_devices and go ahead with registering the creating the protocol device via scmi_create_protocol_device? > }; > > static inline void > -- Warm Regards Thara