Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8638049rwp; Wed, 19 Jul 2023 12:57:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlFQe008HBD597wzsU5/NTkNB8IYQ6JHnI3q3O81S4zlNbOxU2Xb8aOCEE+xjedBnPaWE90X X-Received: by 2002:a17:907:3d93:b0:96f:e5af:ac5f with SMTP id he19-20020a1709073d9300b0096fe5afac5fmr3665569ejc.47.1689796660768; Wed, 19 Jul 2023 12:57:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689796660; cv=none; d=google.com; s=arc-20160816; b=KNn/dupRvlKC+IzmOm23oUKXE+jvLe0XlsYkwFY9fHxgo3YY96CDjvbLoguXKKQZOU l+IySKLHvDvjrBLlTTh3yqjOEAwTHNuwLd78GjJLlMtYANQm48of6+gPJjUDyxbyhxR1 tBNf5ILxSTTVI9e68GOD47oCZz/7wlQ+s5wbHgy8AQTDr+WO0CvPWIljPgMIvd8o3drx frzUthyoxXXKcknLWmbkhiXUxtRVDMMyx4LT74jeLlzTb2OKUY9fEfJGo5gBa95bt0+Q gPGZIqO+o7ua5Qa/gJq7Ua1cLX/4Ryww3ml1YuPY6Eggv8UAI3MrUnP5hvtmN+DNHwvi DFsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=kUDvjqDNQNz1pNg7L/BrcdK38VwKX7/0pQHaXlKqgl4=; fh=2UBDcsY0VTgXWbUu2HLCBAWC7fUISOT0Pg/PP61mY2g=; b=IfQChOLaoZMYChflzAOki49xewVpODbx57SwPrzp7WRnYqn0LjcKdIKOCYpoGadUkK WXtXqkM2kWP+VIa5IH0Bpl7QKRyNdRmh136bRphhfktoFBZsc1CQ/g5Pt1MIFOvSF251 UuDjd8kr3aL5c9nsqWk4al0kIS537UeeDqQcD+XqjJIrTl/cNjq5o7ZW9O6BVdnMcJoH WCPCcOhVemoxYaZBiRo32uoyD2SEaPcGAQgI6gTziK7oT4bJGwEX09hnGZ1eWI5SDNZ2 w4JjC8tjzuNGwghnEN1u0EJuCQPtBGDpG0S+qiXwjbOdqfuR5K8gmuip7bsNsDtxE8sn dlIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=O96gQ0O7; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p9-20020a1709060e8900b0098889bf7f86si3388560ejf.315.2023.07.19.12.57.16; Wed, 19 Jul 2023 12:57: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=@sberdevices.ru header.s=mail header.b=O96gQ0O7; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230129AbjGSToY (ORCPT + 99 others); Wed, 19 Jul 2023 15:44:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229644AbjGSToX (ORCPT ); Wed, 19 Jul 2023 15:44:23 -0400 Received: from mx1.sberdevices.ru (mx1.sberdevices.ru [37.18.73.165]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B37B1FCD; Wed, 19 Jul 2023 12:44:20 -0700 (PDT) Received: from p-infra-ksmg-sc-msk01 (localhost [127.0.0.1]) by mx1.sberdevices.ru (Postfix) with ESMTP id C3827100015; Wed, 19 Jul 2023 22:44:18 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.sberdevices.ru C3827100015 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1689795858; bh=kUDvjqDNQNz1pNg7L/BrcdK38VwKX7/0pQHaXlKqgl4=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type:From; b=O96gQ0O7FLkrRpu8YQxNKft8u2UIlT1/gEF24uLIAjlyKkGppVZPNClZrIA2eFkqr Ih1oAtxYFB4v24D7/3Blg368obJnkXkoKv4fHsUpw+etpBsNu42obTm8RmitAP3qbW tYisGoO+jR9f2ckjoKIHsVNpiBAJWHIT+fUe9egig/ukR9LIoETXypf0TsZksJWanw pNorMle5Jr1CMmDNIGLskaBXUlTo8BnnKElkBI49qY9JZCCLzxqJlTijLEW7nHAlmw rf3e2PhgIkAmGqu60ymWzBp7FVzGWZQQvQcx6OhqJWfoE0Q4e+N92PmD5oVfSpTEQ1 pxURzQqkZN6pg== Received: from p-i-exch-sc-m01.sberdevices.ru (p-i-exch-sc-m01.sberdevices.ru [172.16.192.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sberdevices.ru (Postfix) with ESMTPS; Wed, 19 Jul 2023 22:44:18 +0300 (MSK) Received: from localhost (100.64.160.123) by p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Wed, 19 Jul 2023 22:44:18 +0300 Date: Wed, 19 Jul 2023 22:44:13 +0300 From: Dmitry Rokosov To: Xianwei Zhao CC: , , , , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman Subject: Re: [PATCH V2 1/4] soc: amlogic: use name instead of index as criterion Message-ID: <20230719194413.ssxxzwo3jkbsj2lb@CAB-WSD-L081021> References: <20230707003710.2667989-1-xianwei.zhao@amlogic.com> <20230707003710.2667989-2-xianwei.zhao@amlogic.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20230707003710.2667989-2-xianwei.zhao@amlogic.com> User-Agent: NeoMutt/20220415 X-Originating-IP: [100.64.160.123] X-ClientProxiedBy: p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) To p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) X-KSMG-Rule-ID: 10 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Lua-Profiles: 178730 [Jul 19 2023] X-KSMG-AntiSpam-Version: 5.9.59.0 X-KSMG-AntiSpam-Envelope-From: DDRokosov@sberdevices.ru X-KSMG-AntiSpam-Rate: 0 X-KSMG-AntiSpam-Status: not_detected X-KSMG-AntiSpam-Method: none X-KSMG-AntiSpam-Auth: dkim=none X-KSMG-AntiSpam-Info: LuaCore: 524 524 9753033d6953787301affc41bead8ed49c47b39d, {Tracking_uf_ne_domains}, {Track_E25351}, {Tracking_from_domain_doesnt_match_to}, lists.infradead.org:7.1.1;127.0.0.199:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;sberdevices.ru:7.1.1,5.0.1;p-i-exch-sc-m01.sberdevices.ru:7.1.1,5.0.1;100.64.160.123:7.1.2, FromAlignment: s, {Tracking_white_helo}, ApMailHostAddress: 100.64.160.123 X-MS-Exchange-Organization-SCL: -1 X-KSMG-AntiSpam-Interceptor-Info: scan successful X-KSMG-AntiPhishing: Clean, bases: 2023/07/19 15:51:00 X-KSMG-LinksScanning: Clean, bases: 2023/07/19 15:51:00 X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.0.1.6960, bases: 2023/07/19 15:29:00 #21641898 X-KSMG-AntiVirus-Status: Clean, skipped 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_BLOCKED, SPF_HELO_NONE,SPF_NONE,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 On Fri, Jul 07, 2023 at 08:37:07AM +0800, Xianwei Zhao wrote: > The variate 'index' could be equal to zero in some SoCs. Such as C3 SoC, > PWRC_C3_NNA_ID be defined zero. Use 'name' instead of 'index' as criterion. > > Signed-off-by: Xianwei Zhao Reviewed-by: Dmitry Rokosov > --- > V1 -> V2: add a new patch for change. > --- > drivers/soc/amlogic/meson-secure-pwrc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/soc/amlogic/meson-secure-pwrc.c b/drivers/soc/amlogic/meson-secure-pwrc.c > index 25b4b71df9b8..c11d65a3e3d9 100644 > --- a/drivers/soc/amlogic/meson-secure-pwrc.c > +++ b/drivers/soc/amlogic/meson-secure-pwrc.c > @@ -179,7 +179,7 @@ static int meson_secure_pwrc_probe(struct platform_device *pdev) > for (i = 0 ; i < match->count ; ++i) { > struct meson_secure_pwrc_domain *dom = &pwrc->domains[i]; > > - if (!match->domains[i].index) > + if (!match->domains[i].name) > continue; > > dom->pwrc = pwrc; > -- > 2.37.1 > > > _______________________________________________ > linux-amlogic mailing list > linux-amlogic@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-amlogic -- Thank you, Dmitry