From patchwork Mon Mar 13 20:00:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 69078 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1379565wrd; Mon, 13 Mar 2023 13:02:15 -0700 (PDT) X-Google-Smtp-Source: AK7set+6DzjGJh6pgMh0iVoR95YoIWtyTyQQ3NCzuGN4/S50GB15sneZdVkz/cG7irUcWtT3DVQr X-Received: by 2002:a17:903:22c4:b0:19d:1897:8192 with SMTP id y4-20020a17090322c400b0019d18978192mr42889407plg.47.1678737735101; Mon, 13 Mar 2023 13:02:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678737735; cv=none; d=google.com; s=arc-20160816; b=pfL0+c9268fEQ52GYtDhx2Po2D2wp4YTSEikN1I3U+w1H2HniYmQrL1CRraUXmmWCH xo6XP4ecDJPdHMBqn64WHy1lR8pF3VVjqORj6u0L2bnV0eEZNGfkCltzEPx6ssDjFYJa fliuuuV9qXk/m42Ein4MvABkvml6en7ADdpuB0QtSottkHcapPiHqX6y9AMgK+uXjvhI mDW5kbUqRk6AH/U9F0xmWE/UwA0bJDmfi55IQegKamBb3iGH8LsM9ReElkPeNQCzb0mD 6LbNhbtJgQzkDqAWzNxac6qg9eK6EHVK0inVLxSUDqhBxA6OFUHUUTq4IN2+42YbCizZ gXpw== 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=WpJu9aK6C1Wq/bOWJwZJEPNTv5iMsR3EtRhnCHCKB+U=; b=zmdiYNoq3eOWF6s28WOnuWNRm4UAsHlqTrj3OC21U1oGPL+8WMkzqHtlGpbhr6JjgV +V5C/dxhpVqUz+1yJ6NldmhUg1kOYedme0gbXjtqkOS2AIoypF1BjkylDkI6117Eoad7 NUIs0d/5HFjnp3uwMnsABa5b34fj1hGHMSltGcU82GUX6OPwNgtTRydOY+EsQmwAtqNo IT+aZAcZr+L9MMwzDt6MUOIsEOxOPTKg6Ac+nlCjKEwfyZ272zvM0AzY8r4YtZmJbwbO iOZxAkzBXbeAcRdgvu/KYxAQHOfbypyuAQyPYBRas6TuHwFl/WShgC2BGEPypwcsLT45 o2bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="EIQFJv/v"; 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 v3-20020a1709029a0300b0019ca7a76d68si535836plp.67.2023.03.13.13.02.00; Mon, 13 Mar 2023 13:02:15 -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="EIQFJv/v"; 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 S229987AbjCMUAT (ORCPT + 99 others); Mon, 13 Mar 2023 16:00:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229968AbjCMUAM (ORCPT ); Mon, 13 Mar 2023 16:00:12 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7149074A51 for ; Mon, 13 Mar 2023 13:00:10 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id m4so4202382lfj.2 for ; Mon, 13 Mar 2023 13:00:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678737609; 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=WpJu9aK6C1Wq/bOWJwZJEPNTv5iMsR3EtRhnCHCKB+U=; b=EIQFJv/vqrvhHoGChAjmk16eoqj5wuQ/JJF0AFO/tWRzp4IjBoi7Iae5HHVjP7zToz Upy6Icd8/A2c9zBA62rO1f1yjKJYwv5hquPHPVaEyCE7syRO9M74j3A+wlrVzc2fe/L+ jKo62ZF0bJAZwDCpdTKaEIP+N+a9YEEcoPt6ZpwdZtvvDl9qw5TgLMNlfQCPantc5G0i nekbu8MXMV6QmcBIlaUK9r5hR+P0viY06x0yV+aVPbP5HZIrS0pIJ7Rlhx3r+iFDYsYc inALgF9Z5BUjT93ZrMJad+ShSAlPfUOkYDBMAdnqo87In019OXAPJSXCij/ivUq/wQux ufKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678737609; 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=WpJu9aK6C1Wq/bOWJwZJEPNTv5iMsR3EtRhnCHCKB+U=; b=BhbJICmtXONt1fcxR/yCDNwEVwCB+qDHWmMv1ZiOeTxH2wZAtlHLfrTzfT31zS8EcJ Jwr3M4rNrpcbv0pBvo2PHjXIVKGcXEHfz14I/E1H0bBLkou0oNP/+9tGMb9789mulLKk 0ou7bK+hH55gYxsdW9hl7meRQ/pSwjGDqm3bJrp/76IumWkacjiWjAdilOGMaySP0lfD NLGIcFUy9ukOf5KmPnmjcPEjhfEeGAITtOH3uFmZtcTi6e37LlC9B2ShksR0iS2x4aRF Jb2ojCFHgqQmHi6JAatXuZ6L8eZUDeLs96W0ozYbRmFXBFp38122szduKB5Ut5gAzGua eiPw== X-Gm-Message-State: AO0yUKVS/RPfnCVrTH06At3C9crD22WdXEMy7t1HFz+Kc2KRPkHI0jzv k+xHCU0aNKUBJgX5uNk9W5z9UA== X-Received: by 2002:ac2:5106:0:b0:4df:c2bd:58e0 with SMTP id q6-20020ac25106000000b004dfc2bd58e0mr9878773lfb.59.1678737608786; Mon, 13 Mar 2023 13:00:08 -0700 (PDT) Received: from [192.168.1.101] (abyj16.neoplus.adsl.tpnet.pl. [83.9.29.16]) by smtp.gmail.com with ESMTPSA id w3-20020ac254a3000000b004cc800b1f2csm75431lfk.238.2023.03.13.13.00.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Mar 2023 13:00:08 -0700 (PDT) From: Konrad Dybcio Date: Mon, 13 Mar 2023 21:00:01 +0100 Subject: [PATCH v3 03/10] soc: qcom: rpmpd: Unify Low Power Island definitions MIME-Version: 1.0 Message-Id: <20230313-topic-rpmpd-v3-3-06a4f448ff90@linaro.org> References: <20230313-topic-rpmpd-v3-0-06a4f448ff90@linaro.org> In-Reply-To: <20230313-topic-rpmpd-v3-0-06a4f448ff90@linaro.org> To: Andy Gross , Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1678737603; l=1353; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=mKejTkicxehr99wJklnHdnLAyKORPeX6SnazDDhGxh4=; b=NKvWACzeiN94Hug06gNAvVTWhDpa83B//+OWpPPb+xsE4nqQtVWc9V04UlrF7dFuz/0uJbzhemQV ZDnyea5DBHnFyFEB5lu4B0qez21ldJPc5Hpu1p55amBFey2Fjjg6 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_HTTP,RCVD_IN_SORBS_SOCKS,SPF_HELO_NONE,SPF_PASS autolearn=no 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?1760284099264470029?= X-GMAIL-MSGID: =?utf-8?q?1760284099264470029?= 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, };