From patchwork Wed Jun 14 18:04:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 108104 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp154305vqr; Wed, 14 Jun 2023 11:41:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4VaowIWT7JgUstv1gwx8au4BlBSzFylAcddIR2E6ciEiSgo5hCchP+rYxiBkWkOp3y7pO4 X-Received: by 2002:a17:903:41ce:b0:1ac:8837:df8 with SMTP id u14-20020a17090341ce00b001ac88370df8mr15054586ple.6.1686768106339; Wed, 14 Jun 2023 11:41:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686768106; cv=none; d=google.com; s=arc-20160816; b=UrbmCUeyJ20kP7l6fJez9HKGlIk8q0Nc6uFSdzG35DL9ram4y4dAYO6qv0hHg6Z52h dcpXAHkZwKCqwFxIJgg2aGEo3oEGL9qD5y3qDdTr2OnHs01pPiwSqrJ/KidWMjV/ZaPf zfn2456qX9xjFoo3qJxbTry5QdhRBzWW9aBD35DwnJ9UERYvYf9a1PjeXPNgFZzEunSW CWEidsa7z3HoZ44puph4/XCk9N4doAD+2KRz/0CLsLQSkm4oJDRRR5/q8Bb7Hq+E1Luk fTL7mY1gwu2gHiDqjJRcs2nCp0hyyeNKR7yNmCAZmEDmCtsu/zP7lePYEG6mEM1ygNZh HryQ== 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=M3ZcuvSd/7g8u0ufcV+1KkZdxKlH6DrcdxbL5FaOJw2fuHfEOV/5UIfehCcJKVU6R7 IqIOHWM4fPYtjTPNmyLvQHqLnoAi1iDBwxSBFgrafIqoEH7N6MK40sumwYzjn2mg3UZn GjBOWgFkahEr8yxaLLTRCZNQG9yxvXB7ZVBVeWMQGtdbJ6+SkcZXe7lNOhj/RYc94AGi RAhHIn63tygIJq2yX4m6OqGMZGryjU8tScdwfF13zGcYKWz+4AUIc9Owg740QCq5Duub OQDhHYCGvexp3b76x5g9rYgWtcqV7QNBqlcE7HitSCG4CyIMrGRokwx9aoMD7x5Ijd2i OVHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wl4qwGXx; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e4-20020a170902e0c400b001a52db202c7si1306229pla.382.2023.06.14.11.41.27; Wed, 14 Jun 2023 11:41:46 -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=wl4qwGXx; 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 S236192AbjFNSF0 (ORCPT + 99 others); Wed, 14 Jun 2023 14:05:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233787AbjFNSEk (ORCPT ); Wed, 14 Jun 2023 14:04:40 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE85A211F for ; Wed, 14 Jun 2023 11:04:38 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-4f61b45ee0dso9182559e87.0 for ; Wed, 14 Jun 2023 11:04:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686765877; x=1689357877; 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=wl4qwGXx1Oi6vBD6BiP1Gypn5UfNRwBI2XIwrLHO2SXIb9cW+AkGBMknkor1Kc+itR 2Pvx6mu5gaXcUo+wLGYjKdvzU9bGiGUpUFLvkYD+LC3LYZnd+/2K5iPJnKgx8osidXq5 PA3kqFsSSvDhAwzRN5QIj4KRuHGgkkK2wxjyQMyt2u1KTaXSttM3k9H0TyclKuHFZaaL n2Xpoisl/P9uQsfWRPBobdA+UKBmcf/zj2moZ9yfWvEEY5h+akj1fCeWcH5AlVl4KF9r 0ToLRkQiLCsj86/LNaN5vr6hwfsi01avX846BwhXHvVjgjXZcR0l5KlHnZ0aO2bVrpCD Xb9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686765877; x=1689357877; 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=cjYW03vA/ixNXgyzRqo2MN4je+PxUAemhRk1Met9V2IR0U66BtPG8OgPvf14AWe/aD QJiBW+kzpB25QaX/yn6e0g6aIiSdgvSnNiOBCFujDdX6oUjjZsqLBwNCCBAdXJqg+QNJ sSGnXA3k9Uzv6ywa/k2Vj5LJMZQ74pjh4rezU/8/ryvIrkzWdVowl+7FGLAeL0p4NF8n FYRA4bWCk/FoFLlG2KprBPRDPwz3FGBQ26ID8xCr1KVSj/JEmQzTQ0AXg/xg0mw3sLnq +quH1vjf2Zt8afASLs1dmOH52Wp/TW7ANCd8zsaY7eAIGR6McaE5ZQhGAacW5dN3CAUC pVPw== X-Gm-Message-State: AC+VfDy/RhSxFdAz7Pehf5/t+YgCLicv7qR9CXsTVO1ZMrnkWya99uUL 8Wln5NIx2GqwP1NJl+5idLNKCw== X-Received: by 2002:ac2:5f8e:0:b0:4f7:689d:1dc3 with SMTP id r14-20020ac25f8e000000b004f7689d1dc3mr1271154lfe.59.1686765877231; Wed, 14 Jun 2023 11:04:37 -0700 (PDT) Received: from [192.168.1.101] (abyj190.neoplus.adsl.tpnet.pl. [83.9.29.190]) by smtp.gmail.com with ESMTPSA id l18-20020a19c212000000b004eff1f7f206sm2224053lfc.9.2023.06.14.11.04.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jun 2023 11:04:36 -0700 (PDT) From: Konrad Dybcio Date: Wed, 14 Jun 2023 20:04:21 +0200 Subject: [PATCH v6 02/22] soc: qcom: smd-rpm: Add QCOM_SMD_RPM_STATE_NUM MIME-Version: 1.0 Message-Id: <20230526-topic-smd_icc-v6-2-263283111e66@linaro.org> References: <20230526-topic-smd_icc-v6-0-263283111e66@linaro.org> In-Reply-To: <20230526-topic-smd_icc-v6-0-263283111e66@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=1686765872; l=664; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=XHE1WQYZzaLo+c3xD4ALM/GRb1VwY7GuxNqpdL0mBnk=; b=Z+uUtD+ZHrOfEeHTesqQcIB8eGqM+tb8sAWlyAxnOsptGaC2MR12+NkO+y9dOerYzqKo4C/Im Ym5t1YvHW4EC/pa6R7JTh1ckjC8VBnQkMO7/SprZm+1LyFjwpA2G57Z 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,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768704553685836703?= X-GMAIL-MSGID: =?utf-8?q?1768704553685836703?= 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.