Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6352706rwd; Mon, 19 Jun 2023 06:12:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ690RnnSoOEfTy8f8Gv1CcxkxPyBEampxV1tOp5MPNTi5i7PS5uEaHHE7PegkUIMhpVvS0J X-Received: by 2002:a92:cf50:0:b0:328:a646:8bf5 with SMTP id c16-20020a92cf50000000b00328a6468bf5mr5690033ilr.27.1687180367201; Mon, 19 Jun 2023 06:12:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687180367; cv=none; d=google.com; s=arc-20160816; b=P+P9bbELfmKiGe8T6I6IiRtG2274LEUge7K4MTlM/8Pxek1IbvFL7dOW28lmLItkxF 8O7oi8dS9nuB8TXuWJ/U7WoFQ8lwru6GPJuikj1CoxKdhVgVmDY93cw70UPi54ytemBv iCwuvf1LPF+aItrVTv8+zfz4CyAzKJQ6ksToDT5iH2G1cDXju8K4VLDt+4SwZwz19/8T leXxZVtZGolQ81DGID/5qKl6pjuBMBLoZUlWovbc2UIVMc/a1lgmYnbMD7MXSU62WNyp KbQVjT6DKb2cl+OUcJTEPvckqHqTBwzZV7uP6cHnFLhSCnZSsyBGEEdtIdG0RqdKdxcf L7LA== 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=jaIYEP1tjOx2AofS30I1DJVOhqla55wjHYRgMuVZSUEySpdLZpQl24LcxpK/sk217f KLGBMSHdOAjia5o8NT7Yqic9C9LZJB2Se1TzZo2e/htUlzOsTWleOSHGK3KEroqWobBo XQ5LC2KmmoxQ/F0zasrFk9NLam98MHQSlC1zUTh0MShvM0un+UIsFscfVuvkFmcwmWGZ luHJwQMhSf+Kijgh74tDLpPD44/mLWVq1ADiceRMDM2//XcXIEDMH0jFsyqhnadRzfr+ tQx9FNN+ID3kTpvCLJIDFqasInkRHiqJ4HCRmahM0qdr0EQ6WRBdfkAT2/yePVpoQgfR aVkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w2KyWH+G; 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 n22-20020a637216000000b00553a587e5dasi3635777pgc.833.2023.06.19.06.12.32; Mon, 19 Jun 2023 06:12:47 -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=w2KyWH+G; 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 S231648AbjFSNEt (ORCPT + 99 others); Mon, 19 Jun 2023 09:04:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229848AbjFSNEk (ORCPT ); Mon, 19 Jun 2023 09:04:40 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03322E60 for ; Mon, 19 Jun 2023 06:04:36 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2b46cad2fd9so25211991fa.1 for ; Mon, 19 Jun 2023 06:04:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687179874; x=1689771874; 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=w2KyWH+GCCRJKUkiVspBElqLjMxjw08ivrRU3GKf9VxhhZcdrtOg6Ui5cKPMBnmWbx Whr0y1tfNL+p2jy3BJyRoCrcK+MBBomalzUhM8iwRkyINRC1BXrGv+domU1HWGH5vtSz GisMGLp3EvpITPvmsQNYtwn2faUiIhsBOKUJx0XBMHhXFNDx3nnQLbyyF4RfxEWFQ2oc k9VXwew1XxCzz/+xZy+JRfkrrR94EQlyRTc8bSWhtUe3IZaFBaisLq4B/ZQA8iNFXL+8 VT9YpvmfxXnncgjVDpRtUNnz39x6m7omacDScqjO39LcRjxUn5QcB/EBrO3J6KXFOQe+ QA+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687179874; x=1689771874; 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=RuR14PPrr5fbdWRRB8AwaQR49d1HoSCPsU/ySSstvPpz3Nv4j/7zSG8+2Ya+J+EiKQ lnskM6buS7wNbADK9JoJM8svpEMPdR2l/WeTOfwgs7DlZs/3+HwVOFadZqJ4Mo36+09q ESPsgCzgb9u1nWVRkEBCvE0LQGTz6yjSr0vtcVVTgkK2Vhsoo2jceUF95Y7mI8xiF2gD 8r2rkDmGekPyndzPfCI1E5dnWjziS8RRC16h2XHi51/8k9iBSiSo7wOBOh33Z6ssV+k7 gvcNO/or+fEI1QvpWjNo7qqX3ShAXDIwh5KjYcac9MXAU6ftzXZLp6TBTlQubik7gflq VuJA== X-Gm-Message-State: AC+VfDyrJj4bAivh4+PVU5y+hdTA7FIKw4C/r51ONs/5HlI1s11D4LP6 Vc6wyIs/jb+KbA+1vB9mSEQydA== X-Received: by 2002:a05:6512:47c:b0:4eb:3fb2:c56d with SMTP id x28-20020a056512047c00b004eb3fb2c56dmr5068671lfd.12.1687179874166; Mon, 19 Jun 2023 06:04:34 -0700 (PDT) Received: from [192.168.1.101] (abyl242.neoplus.adsl.tpnet.pl. [83.9.31.242]) by smtp.gmail.com with ESMTPSA id q28-20020ac25a1c000000b004f643664882sm4256489lfn.147.2023.06.19.06.04.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jun 2023 06:04:33 -0700 (PDT) From: Konrad Dybcio Date: Mon, 19 Jun 2023 15:04:27 +0200 Subject: [PATCH v7 02/22] 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-v7-2-09c78c175546@linaro.org> References: <20230526-topic-smd_icc-v7-0-09c78c175546@linaro.org> In-Reply-To: <20230526-topic-smd_icc-v7-0-09c78c175546@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=1687179869; l=664; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=XHE1WQYZzaLo+c3xD4ALM/GRb1VwY7GuxNqpdL0mBnk=; b=btTEFhkxZ9hPrAB1HpOL9cD+zppCxzeWP2iOlroCrAa4fl3B3uFwALjH9g9s68cfx44dKjL+N I6vmtoGRG5fAwFmK6D9THXdqXvkLKNrjXx7HimOcjVL9cxv+ykbua9Q 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