Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3615663pxb; Tue, 19 Apr 2022 06:39:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyud9iHl5teHXJar0pvKshCpUcohtUoHRwH84Wa70tA+ZVMl7oNZFubxE+bwTyzRQfCskgt X-Received: by 2002:a05:6402:239b:b0:41d:89a6:473d with SMTP id j27-20020a056402239b00b0041d89a6473dmr17440024eda.105.1650375580778; Tue, 19 Apr 2022 06:39:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650375580; cv=none; d=google.com; s=arc-20160816; b=W1WVS6Vm3Z+tYyQ1y7YfxGmvP9sfXg+mfjdv21SMZqzLXLmyN+3PZCxYTwP/5OlVkd Dm6XzrZSNHMRWFTlHhGkqhckf7erPXoJfks8rYcU5y0YAQM0kHthp1qxLr/kPrmzYTxP gbfK2mj6IKXjm2VC1ZS0jXy6CVqyOUj0ntlIvA4qIB7Pnx/1z9NU0nbjzh+mFTCSoHvm OwmKErxLXgcL3UQ8icnGRtx/HBnwkJV6nYRrOMrGXrbK2pxW6mvPKxfJSPagmPcQFDuO Sy44yO71yV4hwibkQxYQN7i7e+/qSczi0acKAg4/tpVrfvJWax7475ctCZZOV/lwYtbh bSVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:subject:from:dkim-signature; bh=sJSB7VpfTLv5eEKb58HwUIJiXvdsh69J91lsv1iTNtQ=; b=vGgyrXCuAMma01+OcQY4Ft8LlD1pWscGdyZRZTUWcGdKG98BIT75n2rM8zylpk1QaB D7liDEslL/nejyvvwixOQlUy2mV+bA6WAO78QFyCPQbIkUHTh1u7oc0V6WyIR+xHWl6e KNJV0NE51seD73ZQcDK0mpjzQgaSjG3tbKceA+vWp3hQ4uNxDIGw8go2iqLqMWysCCF9 cJ5XfeE1wGO8XiYxMPnA4iLXY7q+pGQTGfZIO/wVzx0i+DEGM2mAtKT1h4fD2nG1FmV1 eEwaYyDAmYxyeViW7fyUh2rC3SAQlf2qcea7mcZHnIDcjvDwwYYYjgGdAmAf4AAL17LB K62A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=TK2GZ387; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o2-20020a056402438200b00422ffa76c72si8949158edc.277.2022.04.19.06.39.16; Tue, 19 Apr 2022 06:39: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=@quicinc.com header.s=qcdkim header.b=TK2GZ387; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345565AbiDRPpN (ORCPT + 99 others); Mon, 18 Apr 2022 11:45:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345547AbiDRPoM (ORCPT ); Mon, 18 Apr 2022 11:44:12 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96271366A7; Mon, 18 Apr 2022 08:10:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1650294615; x=1681830615; h=from:subject:to:cc:references:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=sJSB7VpfTLv5eEKb58HwUIJiXvdsh69J91lsv1iTNtQ=; b=TK2GZ387T5KGQwrI8tCtNHXYwKD8ONhyt5AewdPCKnV2Gcsp4d4Et24I ciwssp+vvD5J+oGJ5TgNHSq96hpgjGnVReNoAR/G6midhs6tB5TUrIQ5J Fm6eh+//SnfsYlFLR0AJOQ+6uZfohH6fm0VuKgEFt76PatZ027fvmAh7K Y=; Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 18 Apr 2022 08:10:12 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Apr 2022 08:09:54 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 18 Apr 2022 08:09:56 -0700 Received: from [10.216.11.161] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 18 Apr 2022 08:09:51 -0700 From: "Satya Priya Kakitapalli (Temp)" Subject: Re: [PATCH V10 6/9] mfd: pm8008: Add mfd_cell struct to register LDOs To: Stephen Boyd , Bjorn Andersson , Rob Herring CC: Lee Jones , Liam Girdwood , Mark Brown , , , , , , References: <1649939418-19861-1-git-send-email-quic_c_skakit@quicinc.com> <1649939418-19861-7-git-send-email-quic_c_skakit@quicinc.com> Message-ID: Date: Mon, 18 Apr 2022 20:39:48 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 4/15/2022 5:53 AM, Stephen Boyd wrote: > Quoting Satya Priya (2022-04-14 05:30:15) >> diff --git a/drivers/mfd/qcom-pm8008.c b/drivers/mfd/qcom-pm8008.c >> index ca5240d..ab4ba55 100644 >> --- a/drivers/mfd/qcom-pm8008.c >> +++ b/drivers/mfd/qcom-pm8008.c >> @@ -282,6 +287,14 @@ static int pm8008_probe(struct i2c_client *client) >> } >> gpiod_set_value(chip->reset_gpio, 1); >> >> + rc = devm_mfd_add_devices(&chip->clients[PM8008_REGULATORS_SID]->dev, >> + 0, pm8008_regulator_devs, ARRAY_SIZE(pm8008_regulator_devs), >> + NULL, 0, NULL); >> + if (rc) { >> + dev_err(chip->dev, "Failed to add regulators: %d\n", rc); >> + return rc; >> + } >> + >> return devm_of_platform_populate(chip->dev); > Can we just use devm_of_platform_populate()? Then have a compatible = > "qcom,pm8008-regulators" that binds with the regulator platform driver > and searches for the named regmap for the second i2c client. On earlier versions we had a separate compatible for regulator driver, I had to drop it as per Mark's suggestions here [1], [2]. If Mark is OK with adding a separate compatible, I can add it back. [1] https://patchwork.kernel.org/project/linux-arm-msm/patch/1637314953-4215-3-git-send-email-quic_c_skakit@quicinc.com/#24618011 [2] https://patchwork.kernel.org/project/linux-arm-msm/patch/1637314953-4215-3-git-send-email-quic_c_skakit@quicinc.com/#24692220