Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3442473rdb; Wed, 13 Sep 2023 12:07:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFCZjXgA80WLiclVJDD9sC7/d6wgDo1jve/NW0y98/jhSDeEtq5+akB2xSCTix65R2iDC6N X-Received: by 2002:a05:6870:1615:b0:1bb:8040:24e1 with SMTP id b21-20020a056870161500b001bb804024e1mr3766502oae.28.1694632062741; Wed, 13 Sep 2023 12:07:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694632062; cv=none; d=google.com; s=arc-20160816; b=d8VwhaHIPmeCan5HfzhDB98VgFACbaRRprA5sbTViw6SxTjAiIn7kNgbAQsZRuj+M3 7MNHHlTJWerTtqjou+Rjsx97kag5iNA10D5BU7EKOqmHUtjUYssHXR3pAw4CMrCKJ40y Z6vK7e6ykAaXanf1+HWkdua3S7cOeG+s6nl+59fgDwbmTbjrFzwipavVyaGMJltBz7GM AU2SoxnkxhTRwZwla4jGt+EB2beBhv27A5VFJOCdli2ha5wxEFssnnEDevar7hGeEDVC 6fsd2AZcyMwXToeuqJToHanTcwOyAk3cWeDurLTkHJ+btyWdejpzy+pMmliDb6KIE3yv +h+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yX19rezVkN80hMH4Cy8SKpigc4zVOawRWZdhl7+DRvk=; fh=raEgoNaEKEwW/tkQMuz1p55vJ2OivQPOs373gXl0htk=; b=DFR50n/HPcSk7i7JOnuBgqUe79Nc8ItMivbDq1TU2ruYwn6zEpb2uNS+b8JljSCVGE E92g4k9m0RKVRlAcqF2pZQCl49X5a9U0qur5CTDXJ0txh1mCAFcDW6F1vq2g442kL+il cmR+msDPFqAxbo/6zL6BuqSKslL/Y3GZ6n+HOZ4n2bA+5GYFKM94+BSp8dWTIePNZqp5 4WvZEJnJtBAuPLmY2BiH53qj0qyDMNMJY5yZDfRAAn096JH3p1QCXqKH/PRHIT/MYfX/ XS/I1nK02XxohgVEgGUgJ6Bxzex0MGhz4lfsb/vdiUY1VvpHn7XKKH4NWUSEh9QOvPap jeAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V4FCumqr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id bk13-20020a056a02028d00b00564f934aabasi10009648pgb.112.2023.09.13.12.07.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 12:07:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V4FCumqr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 79921802C521; Wed, 13 Sep 2023 12:01:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232086AbjIMTBm (ORCPT + 99 others); Wed, 13 Sep 2023 15:01:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230311AbjIMTBl (ORCPT ); Wed, 13 Sep 2023 15:01:41 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95FE0170F; Wed, 13 Sep 2023 12:01:37 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1093AC433C9; Wed, 13 Sep 2023 19:01:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694631697; bh=3toOGgkkDZ9WvilW/3M+1Ng0BLERDJ4aV1HGhaAbhus=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=V4FCumqrQb/aKzssL2Onwpx0UuMy0gFzJB1TI+bff9eHTEn0MW52Z0Dllp+1K33qE RLnwHqijXH9+rw45W+Gkoo/a+NV7BMHdug5FBHT+OSUPQ4BdUOzrjDyQdvGwMWK4Nc CF8dkVMQxZGG8MBnJcDYMcS/siLjKJkMMaj9OkP6w8uZUZg1YU19txvJJU7myowabd KXqztyiydkTW3ore+AKj2J0zJ7lhWmzoqCXL1HC8GYgUoV4/wO1ZSe7WZ6p0OgNX3Z Q/LwLYyE/ho6FrMph3FgS2YdJlqcCNCvJgiFGDbNsugVWvJChBCzUVZNuhCjxgxM3N +i8ksbwP6v/3Q== Date: Wed, 13 Sep 2023 12:05:42 -0700 From: Bjorn Andersson To: Adam Skladowski Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , AngeloGioacchino Del Regno , Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov Subject: Re: [PATCH v3 1/7] drivers: genpd: qcom: rpmpd: Fix MSM8976 power domains setup Message-ID: References: <20230812112534.8610-1-a39.skl@gmail.com> <20230812112534.8610-2-a39.skl@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230812112534.8610-2-a39.skl@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 13 Sep 2023 12:01:58 -0700 (PDT) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email On Sat, Aug 12, 2023 at 01:24:44PM +0200, Adam Skladowski wrote: Please drop the "drivers:" prefix in $subject, and resubmit this with patch (alone should be fine) with the new maintainer, and appropriate mailing list, included. Thanks, Bjorn > Downstream kernel parses resource names based on pm8950-rpm-regulator.dtsi > in such file qcom,resource-name takes three values: smpa,ldoa and clk0. > First appearance of RWSC/RWSM point to msm-4.4 kernel > which is way newer than what this platform was shipped with (msm-3.10). > For the max_state downstream code limit value to TURBO inside dts > with only one turbo_high being placed in msm-thermal bindings. > One of effects of requesting TURBO_HIGH vote is rebooting of device > which happens during voting inside WCNSS/IRIS, > this behavior was observed on LeEco S2 smartphone. > Fix regulator setup and drop unused resources. > > Fixes: b1d522443b4b ("soc: qcom: rpmpd: Add rpm power domains for msm8976") > Signed-off-by: Adam Skladowski > Reviewed-by: Dmitry Baryshkov > --- > drivers/genpd/qcom/rpmpd.c | 27 ++++++++++----------------- > 1 file changed, 10 insertions(+), 17 deletions(-) > > diff --git a/drivers/genpd/qcom/rpmpd.c b/drivers/genpd/qcom/rpmpd.c > index 3135dd1dafe0..59caa4e7b99a 100644 > --- a/drivers/genpd/qcom/rpmpd.c > +++ b/drivers/genpd/qcom/rpmpd.c > @@ -166,13 +166,6 @@ static struct rpmpd cx_rwcx0_vfl = { > .key = KEY_FLOOR_LEVEL, > }; > > -static struct rpmpd cx_rwsc2_vfl = { > - .pd = { .name = "cx_vfl", }, > - .res_type = RPMPD_RWSC, > - .res_id = 2, > - .key = KEY_FLOOR_LEVEL, > -}; > - > static struct rpmpd cx_s1a_vfc = { > .pd = { .name = "cx_vfc", }, > .res_type = RPMPD_SMPA, > @@ -329,6 +322,13 @@ static struct rpmpd mx_s6a_lvl_ao = { > .key = KEY_LEVEL, > }; > > +static struct rpmpd mx_s6a_vfl = { > + .pd = { .name = "mx_vfl", }, > + .res_type = RPMPD_SMPA, > + .res_id = 6, > + .key = KEY_FLOOR_LEVEL, > +}; > + > static struct rpmpd mx_s7a_lvl_ao; > static struct rpmpd mx_s7a_lvl = { > .pd = { .name = "mx", }, > @@ -361,13 +361,6 @@ static struct rpmpd mx_rwmx0_vfl = { > .key = KEY_FLOOR_LEVEL, > }; > > -static struct rpmpd mx_rwsm6_vfl = { > - .pd = { .name = "mx_vfl", }, > - .res_type = RPMPD_RWSM, > - .res_id = 6, > - .key = KEY_FLOOR_LEVEL, > -}; > - > /* MD */ > static struct rpmpd md_s1a_corner_ao; > static struct rpmpd md_s1a_corner = { > @@ -591,16 +584,16 @@ static const struct rpmpd_desc msm8953_desc = { > static struct rpmpd *msm8976_rpmpds[] = { > [MSM8976_VDDCX] = &cx_s2a_lvl, > [MSM8976_VDDCX_AO] = &cx_s2a_lvl_ao, > - [MSM8976_VDDCX_VFL] = &cx_rwsc2_vfl, > + [MSM8976_VDDCX_VFL] = &cx_s2a_vfl, > [MSM8976_VDDMX] = &mx_s6a_lvl, > [MSM8976_VDDMX_AO] = &mx_s6a_lvl_ao, > - [MSM8976_VDDMX_VFL] = &mx_rwsm6_vfl, > + [MSM8976_VDDMX_VFL] = &mx_s6a_vfl, > }; > > static const struct rpmpd_desc msm8976_desc = { > .rpmpds = msm8976_rpmpds, > .num_pds = ARRAY_SIZE(msm8976_rpmpds), > - .max_state = RPM_SMD_LEVEL_TURBO_HIGH, > + .max_state = RPM_SMD_LEVEL_TURBO, > }; > > static struct rpmpd *msm8994_rpmpds[] = { > -- > 2.41.0 >