From patchwork Tue May 30 10:20:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 100745 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2084385vqr; Tue, 30 May 2023 03:45:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5yRRdaMt/bUJc3KrmSQ+qjSqrWR+ysAt0dBGxIUy8E9jEOolgQq3efUcMsnBceJLakWjBI X-Received: by 2002:a17:903:2450:b0:1a6:b23c:3bf2 with SMTP id l16-20020a170903245000b001a6b23c3bf2mr2331885pls.10.1685443513180; Tue, 30 May 2023 03:45:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685443513; cv=none; d=google.com; s=arc-20160816; b=fmed9zL1hMLHOIlb0q9dwXFBtvJescrXvFU9V3Zf1+Wnq9juB2RYUN3WdVih5HL1on fpFicA2/cD2rBul6AYu9HvXaxAHolG1ixYWQ8ZjO+KsbULIgbMKH0mEr6vTZL5A6oJ9M c/2Wg74gJIAx6ShxULy0WQvo7GqgwY5Erio16BhfLl+s22bb4co0TnekUNDp+TdYk0Ln aM9nSqLpQFmdwS5EAwp7wi27NkI26PImPiFok82ooHs0a2si6cVWbG9Dh/Aio18mqaut YbO0zCenUOpPF62nh4AN0DiKfM2v9AQMOjeV4RBNwZt1y7WPFr5g2os/5WC/JC+nKMVB 83Sg== 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=77NLmH6v9od1ob++a2CgJj2yTxYlz4uZEBXOcINbeNo=; b=C+EUIBgp2g4YzEANqEHr+QjEiwF412LkhwmBVycNg1I8p2Pjt1aZcYKlJBAPhRDdQw IAl4axh+ZRdn/LssS7j0SFaauml4YemRrXbTjQogt6F2HAbcdYWzwVhASTSWdFBmqJDa lr/x3stWJt7zwBa32nvS1Ig7avLv9zoHFGUMNzesnXFnwWepYmHY+j/Md+AliYfhxqSL 76Zb74/n1OfuAYDjuBWNCz97+h2+U8k5ylQtnigivW5Nj2gOSzadhWs7hQJNzwgdz2JH uyg/Osl+gav5YZxNsllor3iapHFGmVWaZfjxwetGPy+rnXR/1/UefG2M9EXDze9wz49M 1OJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Cjbv3XEB; 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 j4-20020a170902da8400b001b05e96d85csi1093690plx.341.2023.05.30.03.45.01; Tue, 30 May 2023 03:45:13 -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=Cjbv3XEB; 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 S229736AbjE3KUP (ORCPT + 99 others); Tue, 30 May 2023 06:20:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231404AbjE3KUI (ORCPT ); Tue, 30 May 2023 06:20:08 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD435EC for ; Tue, 30 May 2023 03:20:06 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-4f4c264f6c6so4838442e87.3 for ; Tue, 30 May 2023 03:20:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685442005; x=1688034005; 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=77NLmH6v9od1ob++a2CgJj2yTxYlz4uZEBXOcINbeNo=; b=Cjbv3XEBkFdWGxRKo0MN/14XiXVsgf+CzADHLnjJwDf/UM9HKIs3ds1Y/fs1zt4+2X 5AaP+VpQNjMybkr8eTtyItX5KI5KvUAVO3gXYCAbf4sqEEtMXhMCl5Qg0LOCQGHKS7Dy 830vDqJ/SUgcU0VfIKk73DswdYl3D9+s2e2xVUue3SUMqQ5WDT+v+3ndrYK2ZqyRXg0X jdox2DbQrieOR2RfLuEu1ToxwPBIq/ty6N1+yYLVkWc+dKrQftd324QmVe98P0rwx0M0 7nGw5Aoo9bjufNJjEzrLjVsIszFRMZoNZtz1XRYypOLLLqYGYrgoDHpOgqobhFFSOXlK Pq3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685442005; x=1688034005; 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=77NLmH6v9od1ob++a2CgJj2yTxYlz4uZEBXOcINbeNo=; b=PX1S3ixKyI62SGezwGHq+3p/VTSRmWCh+SV9A0BV0/Zposx3j7Bl1eXNqz3so2LtJb w5pOHKfk8jJXyHJSYY01DXUnSJp4yqx6kWzVnOwZRnij70moKylyegtg9ebiRlNlT1hr xOPOdQR/iP3YI7lBrLA/d8G7+9E9MzaZMwvVAg+SjXwTtt1moOTkWPc03u/gcgXBOdM/ bi1gW0+fUzdVs6THZHLP3Qm31yh44aPHkCenjI5d7zYIgeM6ycIbykdCyb7NmwhGaMnN P4i7xLWHWySLtLrowKFNkbI7WQVSvbBSxa80RP7/cyCdE/Z1hgs7Wv/EH2dgHPJZpKwA VcPg== X-Gm-Message-State: AC+VfDzvADvD5yMSP1m+WqzVTOnZaNVq4uzcnxrzQuoFgXoSFv9CkIYR DYRrQPei+hGemRXM+a9zwz8VWg== X-Received: by 2002:a19:f502:0:b0:4f1:3ca4:926f with SMTP id j2-20020a19f502000000b004f13ca4926fmr542221lfb.21.1685442005001; Tue, 30 May 2023 03:20:05 -0700 (PDT) Received: from [192.168.1.101] (abyj77.neoplus.adsl.tpnet.pl. [83.9.29.77]) by smtp.gmail.com with ESMTPSA id c25-20020ac24159000000b004cc8196a308sm290902lfi.98.2023.05.30.03.20.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 03:20:04 -0700 (PDT) From: Konrad Dybcio Date: Tue, 30 May 2023 12:20:00 +0200 Subject: [PATCH 01/20] soc: qcom: smd-rpm: Add QCOM_SMD_RPM_STATE_NUM MIME-Version: 1.0 Message-Id: <20230526-topic-smd_icc-v1-1-1bf8e6663c4e@linaro.org> References: <20230526-topic-smd_icc-v1-0-1bf8e6663c4e@linaro.org> In-Reply-To: <20230526-topic-smd_icc-v1-0-1bf8e6663c4e@linaro.org> To: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Georgi Djakov , Leo Yan , Evan Green Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1685442001; l=832; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=4N6lbOSoAygpQXj0UMs5Vps30KIKUCiMTFGnd+cpG9Q=; b=Apzq1+DyQ99gBM5pYzms5dwSiiuvW/23Rvc3hwmN3t9CEO+k4c8sJkLtc6ORu+84mOo5C7tlb bHCmQn3jOssC4SBuA9g3chvH/9VTnnMjWigFcmCvoClH1/3zLpvILMf 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?1767315617208621633?= X-GMAIL-MSGID: =?utf-8?q?1767315617208621633?= Add a preprocessor define to indicate the number of RPM contexts/states. While at it, use tabs instead of spaces for the existing entries. Signed-off-by: Konrad Dybcio --- include/linux/soc/qcom/smd-rpm.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/linux/soc/qcom/smd-rpm.h b/include/linux/soc/qcom/smd-rpm.h index 2990f425fdef..99499e4b080e 100644 --- a/include/linux/soc/qcom/smd-rpm.h +++ b/include/linux/soc/qcom/smd-rpm.h @@ -4,8 +4,9 @@ struct qcom_smd_rpm; -#define QCOM_SMD_RPM_ACTIVE_STATE 0 -#define QCOM_SMD_RPM_SLEEP_STATE 1 +#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.