From patchwork Wed Jun 14 10:22:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 107872 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1139439vqr; Wed, 14 Jun 2023 03:32:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4hoC18oMjynGRqirczV603i+L7J5ZKJ/QMADCb+AyPaDLgtXpxrOV4QjD5StAKSjezRQpM X-Received: by 2002:a17:902:dacc:b0:1af:c602:cd52 with SMTP id q12-20020a170902dacc00b001afc602cd52mr12439625plx.67.1686738760323; Wed, 14 Jun 2023 03:32:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686738760; cv=none; d=google.com; s=arc-20160816; b=CoQr5lXQdmemVXmvIitxDjpq6Faj/KUJJysNG0cm7SEfZ25TdM7ySxCi+QQJPycfsE lEfIYVhDI7RT54Oz8ZErVPdWODHYQmHo176MQGHrK74SBnWU0s80etSPvNl9sdPuYZv4 As984cEoQJlPeEertHS2NPF86zE7EnkbOienOUY5cG06S79CakdH38Vsitbf2ApUlO0B 12CLC4QXjp0VqtBi8Dip2oJPpCOyn7jC0gOndywH+VIaXY/073JGLw4TOAElgXUMQWxm EKAya3Ynd681/1yLJzhst8ZT/ctiIQXbbSZ/BPh1hkupb/tOG/xvtgvejsgy1nadO5ry 59dg== 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=osApviNX574x4LAue8/GJsuxpO5r4tm1VpRIpXtqnsjzvGLOcRa+bdhP8EzUKl1XNZ OWhJmBjqvHP2OORqcINN455Y0BeyKbUGA3bLIrFUNbCl8cs9FD8FEvRCd8/mTJwZS3C4 IkM6KwhaiEDSONwq0h5CIQeaUrG4zB43w1P+OgW6rUYN+Ms7Ii6aAGpAomogbTH8bGzm Vsr2i+ij8p1TosyO8ANP0qzpXK29ywQ9fuKqyP4ihBwkg3XRAVjv6vfUFNO0KyBQU2ab 9gEna4aHP+mQszLznN5uUfmg3VcvAAJjKir9kic4ab/qgLA7sh8sMZExG7piRh7CvjbM /IiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e5DN8MmV; 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 d9-20020a170902cec900b001b1be13179csi5521992plg.385.2023.06.14.03.32.27; Wed, 14 Jun 2023 03:32:40 -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=e5DN8MmV; 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 S241048AbjFNKW2 (ORCPT + 99 others); Wed, 14 Jun 2023 06:22:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239813AbjFNKWX (ORCPT ); Wed, 14 Jun 2023 06:22:23 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B1EC1BEC for ; Wed, 14 Jun 2023 03:22:21 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2b1b66a8fd5so6789321fa.0 for ; Wed, 14 Jun 2023 03:22:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686738140; x=1689330140; 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=e5DN8MmVuOUVJKrecInLvzge7vnLUVfPnUv2qoy9gy7Y43omkyW0ZLgoqB3IVkmNYC 0oP8VZmI/777Qse3/LxtFRfHg5uOVydt+omq5lLpq4xbgLMgi6Xci9ZFr+rgmmwyxxPg rBnApm+qLJZzhwU6bsIg8WwUQLPGUKOgAY8LUsuCq/ENbN5tOvDP2W8VR/4oXoieW5L4 pAQkZ7lOmuaGjmz0ANCr8Z0g2fzO4cBdOAGyjdEwVw+xbJJEylLboXlieG4u9fmVWhoX qQD2WT6+doAMu5g/aasnnVy6GW4x0iyn3EW+vXeZGiavD0NB26uu4WrJtqfEWSgcr6Xt oUZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686738140; x=1689330140; 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=IbbB9IZbon4W0kdh2F/d+zSvgIn0ZM5QD3S2cKBVfLOCW+G5bYs1fgVWlfhvZCQi7T RvUypPK0MT3RhexHf9iRQEXUcixgI7gUiQ8lGPhYJU3cTVHPAR3+u4CRSyxeSCqnYArW seQgGx8oEqQU5BZpBqTJT69yffkmBiHSof6rBtf4TIyyp9AoPOegXbIfyKgPR4Esv94F 5la/2uzZr9ZxBO7sRml1dw1nbjK2+6eJhUvVFcA0+/lmDDmFcNkcokGjiBafV43TLl2a RVSF+l2i+V1GjXG9vCA7f5dVZjJrTZiVlLuSvpjUCK4vfT8fNkQdF+9Wsv/fcz8NDkmJ ZYKQ== X-Gm-Message-State: AC+VfDwomasKG/f6ckEZNTh9QwjiDBnYbg1tGOaWphYJe3Jl+bIhhHr/ U4sBUJEFd6/n7PwkgbblA2e3NQ== X-Received: by 2002:a2e:910e:0:b0:2a8:bd1f:a377 with SMTP id m14-20020a2e910e000000b002a8bd1fa377mr6578613ljg.20.1686738139839; Wed, 14 Jun 2023 03:22:19 -0700 (PDT) Received: from [192.168.1.101] (abyj190.neoplus.adsl.tpnet.pl. [83.9.29.190]) by smtp.gmail.com with ESMTPSA id m2-20020a2eb6c2000000b002b20d8f270asm2520057ljo.74.2023.06.14.03.22.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jun 2023 03:22:19 -0700 (PDT) From: Konrad Dybcio Date: Wed, 14 Jun 2023 12:22:13 +0200 Subject: [PATCH v5 02/22] soc: qcom: smd-rpm: Add QCOM_SMD_RPM_STATE_NUM MIME-Version: 1.0 Message-Id: <20230526-topic-smd_icc-v5-2-eeaa09d0082e@linaro.org> References: <20230526-topic-smd_icc-v5-0-eeaa09d0082e@linaro.org> In-Reply-To: <20230526-topic-smd_icc-v5-0-eeaa09d0082e@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=1686738135; l=664; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=XHE1WQYZzaLo+c3xD4ALM/GRb1VwY7GuxNqpdL0mBnk=; b=Z8yBghNNMxMn+9eINX7qwCSmxht2X+X3SgW1EzzINyO8TFr4knjBpbMfDx/1zQ+Dwdr4u7hVi ErEdbmhvwVhCmO/6uGnbLZ2tTSsN1Fsus1YUnk7PWNJP7twlVwuhft8 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=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?1768673782504564772?= X-GMAIL-MSGID: =?utf-8?q?1768673782504564772?= 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.