Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp175286rwd; Mon, 12 Jun 2023 11:46:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ76nJvAntApmLbZZpvUu8hFaC1uhziIquxgxe+S4kbpmpM9hQRccNLmoQZ4Qg9A6hv7rKn5 X-Received: by 2002:a17:902:da84:b0:1ae:10b3:61e9 with SMTP id j4-20020a170902da8400b001ae10b361e9mr9275125plx.65.1686595563439; Mon, 12 Jun 2023 11:46:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686595563; cv=none; d=google.com; s=arc-20160816; b=BA6r4Dgs0CvJA7vV1Ilva+F0kZMlqk3HmqWPmgRviOiy24hWHuLyQgrec/QO77hi7+ fTQkoCi5vMQUlx6lHFHAbfgn7NJ0pkdWoP3R1AJskN5pa5qka7PH8R6mx4bN2ve9lW1h +xvwN6/O/gG2pUS7wLOO+iKuWwpqe2MOvFoQVVHU45PQ+h31q37QRyOLRiiuEKLYMi4r J/pEj+hx4elUebkzGDEVSEmbzKzAw6JkO1VJBeJwRrsHZcfI+S5B/Vn+fD6y8fiXdGi9 06SpM2bekrpY2UO2l6utDu1InqCagUKCnthMreKe7Dg5hsdcOCLTLKqXuDydoWCZmtSP 1s2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=Ak6pJEE70i86/FySUfYrSS2au3HzGmo13oLp85+Of0E=; b=N9/bp3+n4Njl5q00+lgu7fmuXWpJ76PzA29mg7/ZO87OFcozdfJeiK4uT1Q1b4+Ij8 l79SUO78EC43gP4WcIAG+DvXiKB8WX1meeLdEVcpiArbzCrcEQraybkCOiLsc1NWypEz TwOGRieGDBqttwd7Du6PphxkTtHxGuw9Dm765PTawL+KEb12OzOh0RuSQt5yYNG60Lr4 Nxi52WV/VeCV2BJwMXzYknzxggbDy7i9BSU6EhxZo6r0xcIhK92tSq5ilemPL0ViuV7S dqkJGgEgctiPYal1Ucn1Np0VTp+tEH+jXP2ARx/I0QvzhvkqD6ifTcGQs3WnUSUxBI46 GD9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PCvP9cs1; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n7-20020a170902e54700b0019931c82e24si7718234plf.195.2023.06.12.11.45.51; Mon, 12 Jun 2023 11:46:03 -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; dkim=pass header.i=@linaro.org header.s=google header.b=PCvP9cs1; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233188AbjFLSav (ORCPT + 99 others); Mon, 12 Jun 2023 14:30:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237636AbjFLSYp (ORCPT ); Mon, 12 Jun 2023 14:24:45 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07984113 for ; Mon, 12 Jun 2023 11:24:42 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-4f62b512fe2so5755073e87.1 for ; Mon, 12 Jun 2023 11:24:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686594281; x=1689186281; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Ak6pJEE70i86/FySUfYrSS2au3HzGmo13oLp85+Of0E=; b=PCvP9cs17qBaf62as9MDWOKExq7NCk5ON/MclnOAlvR4MUsiKiLbRegl6cuDGcfKQi T5tq69pg6qUlvK6kj5HEUzIYb6+tbp+02qYR8VHLqXm9g6ZqYwMPfgJjPUV+dQXgNOup h93xhIXi1A0Fet8PTwla8vBS2Bsf2e+PekPjeAakLX+eBGcr+Oop5UUiGwPTRCZ2Yb6X eBZ/4q5qAN4Hv8p+h96JUV6HHuFrwo2SV16vAuzYFHjIksSfERjY2KDR6ciIgcm58ER0 xrEaatG2RNwHw8D+SofCr5C1tjArvG3vB1O7is3D9hHJnldAoVui7flfJG5v712gd70J oZlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686594281; x=1689186281; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ak6pJEE70i86/FySUfYrSS2au3HzGmo13oLp85+Of0E=; b=ZtsLWyPIAuzspo5b80u1XR7KrRIba/7k0JfQgPmxcBk+MSYzFVPkxEDjQQFMLUsx07 QLUcUN8wt3QhVTV3ZrkuWMO7XR/tnaK42oITegWQWhwwYwHVWgV2/GUWqBHpXDSFXyH+ HMb7xvEqeZP3h/xC0sjZN7OxxwDP5Aw5KNL7J/4mN8kSK7rgi8QS1WD2RKdwyNDqys1m M2KTKu8KCWxz5w+DclKe24N/ztHeU0hYUL2WSgoEztYe2FNFzWEjpJxCDk4pvACKoFJW 8lrfhHEtmLIu5o5bMvi24bcuheeUx7WTDVXeovhJJIKpD2T0K6gIX48e4UVF2dCaTPrV KoPA== X-Gm-Message-State: AC+VfDwquejhCxdFF1/k2PAiwOjW/sEkl/1MZkmwC+lZvbmqLGGmfzMQ aSw+RzhDsqqyjZIV9YYg/CqlnA== X-Received: by 2002:a19:4357:0:b0:4f6:20a8:2656 with SMTP id m23-20020a194357000000b004f620a82656mr4018758lfj.29.1686594280772; Mon, 12 Jun 2023 11:24:40 -0700 (PDT) Received: from [192.168.1.101] (abyj190.neoplus.adsl.tpnet.pl. [83.9.29.190]) by smtp.gmail.com with ESMTPSA id v24-20020ac25938000000b004f64073a252sm1502035lfi.96.2023.06.12.11.24.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 11:24:40 -0700 (PDT) From: Konrad Dybcio Date: Mon, 12 Jun 2023 20:24:19 +0200 Subject: [PATCH v3 02/23] soc: qcom: smd-rpm: Add QCOM_SMD_RPM_STATE_NUM MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230526-topic-smd_icc-v3-2-5fb7d39b874f@linaro.org> References: <20230526-topic-smd_icc-v3-0-5fb7d39b874f@linaro.org> In-Reply-To: <20230526-topic-smd_icc-v3-0-5fb7d39b874f@linaro.org> To: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Georgi Djakov , Leo Yan , Evan Green , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1686594276; l=664; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=XHE1WQYZzaLo+c3xD4ALM/GRb1VwY7GuxNqpdL0mBnk=; b=UgnSsD/ZMCPV95S+X937A3q269KBqm/jPKgp4HLyljIdENs8MSPHoc98VlbXAKg+6mjm3UeWx SX3SBk8iMfaBtfRbHi3/sbsb+8X86VtsXx3bgt8nMvFePsn1CSjlbV2 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Add a preprocessor define to indicate the number of RPM contexts/states. Signed-off-by: Konrad Dybcio --- include/linux/soc/qcom/smd-rpm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/soc/qcom/smd-rpm.h b/include/linux/soc/qcom/smd-rpm.h index 2990f425fdef..e468f94fa323 100644 --- a/include/linux/soc/qcom/smd-rpm.h +++ b/include/linux/soc/qcom/smd-rpm.h @@ -6,6 +6,7 @@ struct qcom_smd_rpm; #define QCOM_SMD_RPM_ACTIVE_STATE 0 #define QCOM_SMD_RPM_SLEEP_STATE 1 +#define QCOM_SMD_RPM_STATE_NUM 2 /* * Constants used for addressing resources in the RPM. -- 2.41.0