Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp30508rwl; Thu, 6 Apr 2023 12:41:43 -0700 (PDT) X-Google-Smtp-Source: AKy350ZOXQWDp+BbLvcE/unQSOYm0FEDLxLCtqqYk6dmvdayrVX+OK/iQKXfxxt/aTu8vjOVem0x X-Received: by 2002:a17:902:da92:b0:19e:d60a:e9e with SMTP id j18-20020a170902da9200b0019ed60a0e9emr314898plx.42.1680810102759; Thu, 06 Apr 2023 12:41:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680810102; cv=none; d=google.com; s=arc-20160816; b=uWCUsbTF6DKyJrtmCVh3brWX3Yh6V+RdG0+sIKjBOUDcPkiAMcS89EWY1Ug688v9gt xUoiaASO17lbyGvs2RooFxcEVH4iUmDtzJAshK+JGMoghckICdzEZU6KHqO0MEXvfWhB Gc/dJptjwvaWnzDB3KufSJ/5q+2bTOTnLpUjx8xN+TD0VwL9OQy8ChVJ+/CTgWnVwDhf K3Veym+ut1dyj++RkvaQC92Wkml4HTdF/NxCnlyuIWQSzGSiLuGQ7v6RhPd4bVSI/DBw YxdvdzTLhQtRogC5q/wO0sACIsyCxbdiW745Df6ni/vkGnvcVvjfVny9wrb2jCW8wdpY H/Kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=AVrj91JOYjY3hAFrZAL/kcyqybYrG/DGOnhw/RRHkaI=; b=QR56TM6fsw7Ud+3XVojoBt/S8oc9Urzt8l3D6/eyrPq6TlVGtVsuHOSjpnhAkcLkL/ iyHNYNYiG4rcM4SIaf2apv2Xl+VCNGstchU8Zn+7RM7KhOVxGvsCowuqVgE2quMMtYb5 4EGplYp86xPQeho/s+36hWUKhc5/h40VQJ6YfzIndk7XIyALEOKpMpDOxJRPPYF6/t+V fffxFVWa89YBh54zHftQxCv1dxiRnZCRqltF2V1b0qRJDjcRsefB/jrdXKz4dpORb6gy NW/tHNC8sZBhLs1LS/KrxHkSuh6KmzAdhFrIIYVfcB77vIPCw1wpbxusvitSrXnE/KH/ R0dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Mkmj2vwe; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 35-20020a631963000000b0050fa9bc63cbsi1796894pgz.432.2023.04.06.12.41.31; Thu, 06 Apr 2023 12:41:42 -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=Mkmj2vwe; 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 S229458AbjDFThm (ORCPT + 99 others); Thu, 6 Apr 2023 15:37:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236697AbjDFThk (ORCPT ); Thu, 6 Apr 2023 15:37:40 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 895795277 for ; Thu, 6 Apr 2023 12:37:38 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id br6so52161204lfb.11 for ; Thu, 06 Apr 2023 12:37:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680809857; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=AVrj91JOYjY3hAFrZAL/kcyqybYrG/DGOnhw/RRHkaI=; b=Mkmj2vweanOvQBtLj9UOGRZsgeHf+wtaCnpbc7I3tJH4lwGhaxp12YUnEURq3mB8WE A6rbzxWR+ldp9g8HB8K3YQKriM7Z/86xaVa+SmbxWSg1kNHiu/M/qhnGw4TjK35hbkNh CfC9V0lPMWovKZOhFPsg1/COfgwLF1m2ULVL8gumrk28wWlO0nTT7ZIRbZRAInWH9EYZ 96cctk+Y70stmAnYa8S36VPT4A0RbUEg/wrN/pKf7uVF38bDmv5CWQtM4UJqlydAySgB mkPViCjnso9ZcWmdcDDKzyYNnlOlsk3MxKZRSdaFrhxZk1LtKmif96Wgrl1aSudwd+Ua HOWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680809857; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AVrj91JOYjY3hAFrZAL/kcyqybYrG/DGOnhw/RRHkaI=; b=cjbMUrEe14fdO692G8/fR1krhtSJTeEFzw6KafImwWnjSeIN+IO7ycCRIZX5+eNhip cdw0GzP5HusCbZA0/1Ae8e37YGK2qUB3ZxBqTFUlfhAEs4XKKQ7YPVV9Kq7YiY1gw+/L u70r2YsAlBYOWVuVw2G26J2u8i8/syMuMc2CzHtKyNXhh36TwatTkzHbLhgcFMGl2gw1 Vp6p+cxnxssxdx/j7O/8S8d8uX2Aqn2hw7WBADr8s3KhaRj95KDX6xgk1+TESrIEqwBS y2DaLOKwWxSeufo2LlozJE5ouM7lU6hfkXXUJ2Nq3uANGD3U5SdFOLlLu7mVwvH/TiyB Vr1w== X-Gm-Message-State: AAQBX9cT62twxHvOOj+7bPqv+dGM7XKchODRoDGLvsu0GUgTc7EoSHbt wYhNIUFE5094k5iyGZv03xkurw== X-Received: by 2002:a05:6512:239b:b0:4e8:5c66:e01e with SMTP id c27-20020a056512239b00b004e85c66e01emr2089892lfv.21.1680809856696; Thu, 06 Apr 2023 12:37:36 -0700 (PDT) Received: from [192.168.1.101] (abxh37.neoplus.adsl.tpnet.pl. [83.9.1.37]) by smtp.gmail.com with ESMTPSA id f7-20020a2e9e87000000b002a6168181d7sm409441ljk.7.2023.04.06.12.37.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Apr 2023 12:37:35 -0700 (PDT) Message-ID: <714f4c97-d157-1402-1217-19e43daf645f@linaro.org> Date: Thu, 6 Apr 2023 21:37:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH V3 2/5] regulator: qcom_smd: Add MP5496 S1 regulator Content-Language: en-US To: Devi Priya , agross@kernel.org, andersson@kernel.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: quic_srichara@quicinc.com, quic_sjaganat@quicinc.com, quic_kathirav@quicinc.com, quic_arajkuma@quicinc.com, quic_anusha@quicinc.com, quic_ipkumar@quicinc.com References: <20230406070032.22243-1-quic_devipriy@quicinc.com> <20230406070032.22243-3-quic_devipriy@quicinc.com> From: Konrad Dybcio In-Reply-To: <20230406070032.22243-3-quic_devipriy@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6.04.2023 09:00, Devi Priya wrote: > Adding support for MP5496 S1 regulator on IPQ9574 SoC. > > Co-developed-by: Praveenkumar I > Signed-off-by: Praveenkumar I > Signed-off-by: Devi Priya > --- > Changes in V3: > - No change > > drivers/regulator/qcom_smd-regulator.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/regulator/qcom_smd-regulator.c b/drivers/regulator/qcom_smd-regulator.c > index 6f722b2d682e..cb77b3bd1723 100644 > --- a/drivers/regulator/qcom_smd-regulator.c > +++ b/drivers/regulator/qcom_smd-regulator.c > @@ -749,6 +749,15 @@ static const struct regulator_desc pms405_pldo600 = { > .ops = &rpm_smps_ldo_ops, > }; > > +static const struct regulator_desc mp5496_smpa1 = { > + .linear_ranges = (struct linear_range[]) { > + REGULATOR_LINEAR_RANGE(600000, 0, 127, 12500), > + }, > + .n_linear_ranges = 1, > + .n_voltages = 128, > + .ops = &rpm_mp5496_ops, > +}; > + As far as I can tell, this is identical to struct mp5496_smpa2, so this patch could come down to: - static const struct regulator_desc mp5496_smpa1 = { + static const struct regulator_desc mp5496_smps = { + { "s1", QCOM_SMD_RPM_SMPA, 1, &mp5496_smps, "s1" }, - { "s2", QCOM_SMD_RPM_SMPA, 2, &mp5496_smpa2, "s2" }, + { "s2", QCOM_SMD_RPM_SMPA, 2, &mp5496_smps, "s2" }, Konrad > static const struct regulator_desc mp5496_smpa2 = { > .linear_ranges = (struct linear_range[]) { > REGULATOR_LINEAR_RANGE(600000, 0, 127, 12500), > @@ -794,6 +803,7 @@ struct rpm_regulator_data { > }; > > static const struct rpm_regulator_data rpm_mp5496_regulators[] = { > + { "s1", QCOM_SMD_RPM_SMPA, 1, &mp5496_smpa1, "s1" }, > { "s2", QCOM_SMD_RPM_SMPA, 2, &mp5496_smpa2, "s2" }, > { "l2", QCOM_SMD_RPM_LDOA, 2, &mp5496_ldoa2, "l2" }, > {}