From patchwork Thu Nov 3 19:52:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Marussi X-Patchwork-Id: 15136 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp737140wru; Thu, 3 Nov 2022 12:55:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6ufUwpc0sOWE/d7u37tjlRNrBxRNl3i3s0JGS430oaWeQQ3tUI9Yzl7KUxes+GPQ/99gg9 X-Received: by 2002:a17:907:ea7:b0:7ad:c3b7:ca52 with SMTP id ho39-20020a1709070ea700b007adc3b7ca52mr25666932ejc.626.1667505307453; Thu, 03 Nov 2022 12:55:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667505307; cv=none; d=google.com; s=arc-20160816; b=W0KW620EsBXsh1dy6y3urykB1xRCmoU8rkb5ksxC2x72TPwOpRxaho6t3/AeZGuvB6 8ff7CXVPV6U+k9nagxdC7RCb+/WFkpt8c2/7a7W0NNLEeWE+VuraeXYypIY+dlJALx8o z3qBGxThFVGu10Dtt/LFpp3J0pZzzH+ppxxAemCXSMEuTCIv7AkMkC1ZQbgrED0XDUxt VkSVVo4ZXgnsGyqIr7ivO9nN7gjTTIN0BsLS9CLtYg20T4P473WrA5cnMxzddzS9Kqt+ JxTTdY8Q+XMun8C74SpWur8+cSWdB2O95jqCnYat4YINcIsCt7Sr91j+cgteLVh4YVnb TE+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=e45ZANXQDfq3g1XG5KVuMZg2MYPqUnVDxuD/fcLp5/Q=; b=yPoXszLFmfMkSZSDek8KQ+etX4vcv3m1obFEBL8vnMG+mvkI7+AVge0croUsZLEvLO lfVpYQQ56+yi4t15+GpQnSXXaV/BBrOon0yQ/QwWYgPSpmCUzuao4QNJlpa0ICOLBo75 OlD4Z3+ThTRuAW/JvlSoU4SvJcgArpI6qG1SAtaR39otd48sQWY1F0TnfmJK1SdtUFtd kO91d5WgwdosS1+9rohRA58NLm0971EtoQ3D5XHztB+pCjAFGDbzi/cz+ekTCOny4MJh E5KPJKQHvPIONxG8Mib+hVg0D05/AEKtx33reOz6/Yru/f2mlDyvlENX6JyNC5szxhOk 24Hg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w16-20020a056402129000b0045da52f303csi2140361edv.213.2022.11.03.12.54.42; Thu, 03 Nov 2022 12:55:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231136AbiKCTxy (ORCPT + 99 others); Thu, 3 Nov 2022 15:53:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229587AbiKCTxQ (ORCPT ); Thu, 3 Nov 2022 15:53:16 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 813A620BCB for ; Thu, 3 Nov 2022 12:53:03 -0700 (PDT) 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 9393D23A; Thu, 3 Nov 2022 12:53:09 -0700 (PDT) Received: from e120937-lin.fritz.box (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4F6ED3F534; Thu, 3 Nov 2022 12:53:01 -0700 (PDT) From: Cristian Marussi To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: sudeep.holla@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, wleavitt@marvell.com, peter.hilber@opensynergy.com, nicola.mazzucato@arm.com, tarek.el-sherbiny@arm.com, quic_kshivnan@quicinc.com, cristian.marussi@arm.com Subject: [PATCH v5 06/14] firmware: arm_scmi: Add is_raw flag to xfer Date: Thu, 3 Nov 2022 19:52:17 +0000 Message-Id: <20221103195225.1028864-7-cristian.marussi@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221103195225.1028864-1-cristian.marussi@arm.com> References: <20221103195225.1028864-1-cristian.marussi@arm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748506044975904688?= X-GMAIL-MSGID: =?utf-8?q?1748506044975904688?= Add a flag to easily identify xfers originated from Raw transmissions. Signed-off-by: Cristian Marussi --- drivers/firmware/arm_scmi/protocols.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/firmware/arm_scmi/protocols.h b/drivers/firmware/arm_scmi/protocols.h index 2f3bf691db7c..70a48adcc320 100644 --- a/drivers/firmware/arm_scmi/protocols.h +++ b/drivers/firmware/arm_scmi/protocols.h @@ -88,6 +88,7 @@ struct scmi_msg_hdr { /** * struct scmi_xfer - Structure representing a message flow * + * @is_raw: Flag to state if this xfer has been generated by RAW mode * @transfer_id: Unique ID for debug & profiling purpose * @hdr: Transmit message header * @tx: Transmit message @@ -119,6 +120,7 @@ struct scmi_msg_hdr { * @priv: A pointer for transport private usage. */ struct scmi_xfer { + bool is_raw; int transfer_id; struct scmi_msg_hdr hdr; struct scmi_msg tx;