Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp671335pxu; Wed, 14 Oct 2020 10:38:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuINuR1tSmbogtTcroUYsjyVaZ3hPVNTmKxX9p3pFEoaDvLQAlGeKU4UwdbK0n18O8xp43 X-Received: by 2002:a17:907:20e7:: with SMTP id rh7mr99296ejb.515.1602697117045; Wed, 14 Oct 2020 10:38:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602697117; cv=none; d=google.com; s=arc-20160816; b=iBYsIlO0wulk96RhKqZEIXJE7Cu6kcsPkm51+WG63QxcxBpw269eTWEfE/AbP72PiN MpyrXhhwpk8Vn/n4coXKPtKscV0v0+3zmo3M86APJm2FdhMW2Y3c5mGIv9i5QsmRAgpI mXaomQH53Cd7RbIQqV4LCwwI5zwIGo1KN1y/m6eqAjZyVYCwgruMvdtt62/foit/LkAr mNlBr06DAYn4U2kYGgLAoQJN2ZOlWUnNGaacA2su3kbZJZLhIotczk6CmiorzxvimmW0 /Jbn7B4LB/xDExNSj9igj9o+hwumqZbign+ctWnZdegdpsj6DvznJA3hWgBPBhzSuRCD PHaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=bMXzu8iW9CNBdyf65uusrqokfaJOyE+bMGY3P2C+Iqw=; b=oGZ65KjOtelUTE7EmFswj8aGTaA2csnyUkJcqdZ+KDxomEK3ftb9bcUqdQWGhjnLJA jAVjULNzJf4NP++H1I/Psw94eEUAtirBt537YLxeJcimeZ3tTHs5RpGVDZQSIKzKNb1V 26zWVWBKLKnonNci1ug2eHpzZ+1AcAbvPmFSOF6xo+2CNN+c0Q2Q0tKNFGrKExrEHADn tCznl7LA+l0vBJBkz+QdAzsPjwhwP9eCcHfByk1th6+uHWYUQpGH9cm3S5vz1ZZ4U8T3 U/Vra5ILjvpFWLMTE0EkF+4ZYKPddi9gJCukGD2938pVfX6sTsrXJDkJP0RZtRSDg69d tRCQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oz19si248230ejb.730.2020.10.14.10.38.14; Wed, 14 Oct 2020 10:38:37 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388468AbgJNPH3 (ORCPT + 99 others); Wed, 14 Oct 2020 11:07:29 -0400 Received: from foss.arm.com ([217.140.110.172]:50982 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731671AbgJNPHP (ORCPT ); Wed, 14 Oct 2020 11:07:15 -0400 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 629671435; Wed, 14 Oct 2020 08:07:14 -0700 (PDT) Received: from e120937-lin.home (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BC94B3F71F; Wed, 14 Oct 2020 08:07:12 -0700 (PDT) From: Cristian Marussi To: 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, cristian.marussi@arm.com Subject: [PATCH 11/11] [DEBUG][HACK] firmware: arm_scmi: force implemented protocol 0x99 Date: Wed, 14 Oct 2020 16:05:45 +0100 Message-Id: <20201014150545.44807-12-cristian.marussi@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201014150545.44807-1-cristian.marussi@arm.com> References: <20201014150545.44807-1-cristian.marussi@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Force custom protocol 0x99 as implemented for testing purposes. Signed-off-by: Cristian Marussi --- drivers/firmware/arm_scmi/base.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/firmware/arm_scmi/base.c b/drivers/firmware/arm_scmi/base.c index 8d7214fd2187..b0036111e287 100644 --- a/drivers/firmware/arm_scmi/base.c +++ b/drivers/firmware/arm_scmi/base.c @@ -356,6 +356,8 @@ static int scmi_base_protocol_init(const struct scmi_handle *h, scmi_base_vendor_id_get(handle, true); scmi_base_implementation_version_get(handle); scmi_base_implementation_list_get(handle, prot_imp); + handle->version->num_protocols++; + prot_imp[handle->version->num_protocols] = SCMI_PROTOCOL_CUSTOM_DUMMY; scmi_setup_protocol_implemented(handle, prot_imp); dev_info(dev, "SCMI Protocol v%d.%d '%s:%s' Firmware version 0x%x\n", -- 2.17.1