From patchwork Mon Feb 13 14:35:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 56312 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2382929wrn; Mon, 13 Feb 2023 06:43:34 -0800 (PST) X-Google-Smtp-Source: AK7set8gp6r4f1uS5enaayLomHCxEZwSfEF+lN+R4yoHG1ZLjtUXv6FyvKgYhWngPW2NkfYoj30C X-Received: by 2002:a17:90b:1c8f:b0:230:a772:e45d with SMTP id oo15-20020a17090b1c8f00b00230a772e45dmr26477225pjb.36.1676299413889; Mon, 13 Feb 2023 06:43:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676299413; cv=none; d=google.com; s=arc-20160816; b=lQejPuydLE3jqZWnIX1s/qcuGdzJOjdwSor9ISwCxrSaKJ1ffzQbeLuArKarQ7QOV2 Ni+m+4zoGqClg23ifBOY/cD1um66GY8jqb87XDtIb7djRafKpxjeFJ715wl+LJlk6Hyw wUKnUox3sIK/vWyPDd56I9i0kjhV1KFb1o9PHYq4UpWuLsJMwrbQZzx5LwGc78rEFO2T kMDlO89AVaZgccNHO/ZJSiObvW+X0tEX0s49naUdgVrbop2YF5+hOaYbkODncQqA4aWB lg6+VkWECt73nOElEPrBUbK44CnQJ6FhGxkeeMlgaWBBhFaSopFzCDUjAynZtCVScgqW z/9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=cKhIhUE0oR3+5sylAoN6LZ0U0hIcCp0rLf+O/bLFT0w=; b=DrVJPd6v1uCuFjAuvn2/KK6uy1Hn2HLRbqQtLQCC+TWdAdbAV6phtNInzsb979/PB+ QBtWGPf0zoB35RYwod6uWRXzqTNetqL80Bl5nwYSCoWcCxvNG5qRswKuYEDJtr0Ru4XJ 3fuLlWHR0GivZj9i6J34/s1GtgB5Q5y8Odb5jjbeL1Q+iClG984akrRgiCYqo+BTls8P DIMnBP2Bb9MOOM/9Plx7uYzBfEhzW2miEpsqaNW8x1h3fSNYexHettcQeOPCatgpKl1y gB/eF9ua4AaK16yKfLm9J1t8rxbe1yosc9jhK8E5YeQZpi5GwycpF1jU5dYQKEIDrY2M Z9Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aWMe155A; 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 e2-20020a637442000000b004e018302ac3si4580790pgn.612.2023.02.13.06.43.21; Mon, 13 Feb 2023 06:43:33 -0800 (PST) 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=aWMe155A; 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 S229631AbjBMOfi (ORCPT + 99 others); Mon, 13 Feb 2023 09:35:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229946AbjBMOff (ORCPT ); Mon, 13 Feb 2023 09:35:35 -0500 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF8331554C for ; Mon, 13 Feb 2023 06:35:34 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id rp23so32343285ejb.7 for ; Mon, 13 Feb 2023 06:35:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cKhIhUE0oR3+5sylAoN6LZ0U0hIcCp0rLf+O/bLFT0w=; b=aWMe155AwRogZuqhwLJmxHXC4Nmo0Tm4sZHSxaz1jbsMfy+B637D4oZy/5+K88dXVt TusFncqgjzE1OBU3OJGB1t3OZ3iBenVXt2JH0X4qlx218FAVQMWhhIWWKUlq76030LM/ Q1z8r8AdV6woiRcLB/0Jum2YgC1c29NyNuEcRsLzt26CR56tlAxaDyptahWSKy86c0m3 5BQECANonPgGaIHYAQ2t7KpiHBrW/GuZU9eJi1xY3Ot5c89jJWLaCS+FSBxFoAi8Gtye l0iRfOJ3e3A9aYV7QUqwb5ukxJ8OA9bREV3OUcRhTP1FrgAcOeEuhBvHbZvGP/GZOJdU Gqzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cKhIhUE0oR3+5sylAoN6LZ0U0hIcCp0rLf+O/bLFT0w=; b=UaAD/V0NVlfWsansN053GEFX1VFxrsgNKWF5kP3p2pMQzl0bs4u6f6fEbf4C4qkt5R 7gQRa5yIjFSQz8YGJtCnkllSiV5+P6ZHbiAH9d5Ecwm3Jp6wXbY/W0E/whgzyhZLaw8N MYp8NwPw458mRVlfzYKjuqbNqmM+ZqZIeYqihqoDRtP7bQWOCFeLwY1+qtjtkNFaTbjP WboRKj3kcRH/WVgQ+thCu1eOoj60q1ylQvN0EkWrFz6z0wgc7qR7SUmpsz0tor+IuQtN 70JoLlb5jWzfiX1a1da+Icr0PGUH8yxVifWoJksMZYRBenX2fvmBIPvt7syWVJlSGGr3 IYEQ== X-Gm-Message-State: AO0yUKV11Y0MR6MYJkXpyJOKTKP2H64qx2B4NrSvS81pH61SQYAby6yD ajRbStCdczGfMzbEfLs+AFJ72w== X-Received: by 2002:a17:907:a420:b0:8b0:f58d:2da9 with SMTP id sg32-20020a170907a42000b008b0f58d2da9mr6900524ejc.64.1676298933332; Mon, 13 Feb 2023 06:35:33 -0800 (PST) Received: from localhost.localdomain (abxh117.neoplus.adsl.tpnet.pl. [83.9.1.117]) by smtp.gmail.com with ESMTPSA id uz6-20020a170907118600b0088a2397cb2csm6927186ejb.143.2023.02.13.06.35.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Feb 2023 06:35:33 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , linux-kernel@vger.kernel.org Subject: [PATCH v2 2/9] soc: qcom: rpmpd: Unify Low Power Island definitions Date: Mon, 13 Feb 2023 15:35:17 +0100 Message-Id: <20230213143524.1943754-3-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230213143524.1943754-1-konrad.dybcio@linaro.org> References: <20230213143524.1943754-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 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 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?1757727333977569176?= X-GMAIL-MSGID: =?utf-8?q?1757727333977569176?= Up until now, we had 2 separate entries for VDD_LPI[CM]X and VDD_LPI_[CM]X which both pointed to the same RPM resource. Fix it. Signed-off-by: Konrad Dybcio --- drivers/soc/qcom/rpmpd.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/soc/qcom/rpmpd.c b/drivers/soc/qcom/rpmpd.c index 7d9e762232ea..8ba025c4eca3 100644 --- a/drivers/soc/qcom/rpmpd.c +++ b/drivers/soc/qcom/rpmpd.c @@ -149,11 +149,9 @@ DEFINE_RPMPD_PAIR(vddmd, vddmd_ao, SMPA, LEVEL, 1); DEFINE_RPMPD_VFC(vddmd_vfc, SMPA, 1); DEFINE_RPMPD_LEVEL(vdd_lpi_cx, RWLC, 0); -DEFINE_RPMPD_LEVEL(vdd_lpicx, RWLC, 0); DEFINE_RPMPD_VFL(vdd_lpicx_vfl, RWLC, 0); DEFINE_RPMPD_LEVEL(vdd_lpi_mx, RWLM, 0); -DEFINE_RPMPD_LEVEL(vdd_lpimx, RWLM, 0); DEFINE_RPMPD_VFL(vdd_lpimx_vfl, RWLM, 0); DEFINE_RPMPD_CORNER(vddsscx, LDOA, 26); @@ -324,9 +322,9 @@ static struct rpmpd *qcs404_rpmpds[] = { [QCS404_VDDMX] = &RWMX0_LEVEL_vddmx, [QCS404_VDDMX_AO] = &RWMX0_LEVEL_vddmx_ao, [QCS404_VDDMX_VFL] = &RWMX0_vddmx_vfl, - [QCS404_LPICX] = &RWLC0_vdd_lpicx_lvl, + [QCS404_LPICX] = &RWLC0_vdd_lpi_cx_lvl, [QCS404_LPICX_VFL] = &RWLC0_vdd_lpicx_vfl, - [QCS404_LPIMX] = &RWLM0_vdd_lpimx_lvl, + [QCS404_LPIMX] = &RWLM0_vdd_lpi_mx_lvl, [QCS404_LPIMX_VFL] = &RWLM0_vdd_lpimx_vfl, };