Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp57486lfe; Fri, 15 Apr 2022 19:20:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRPEc6h1VVBHHU1y5fqenmv8IK9Ur9TE4P+ibcXsHZ57sXMRq6+6FZo5L/s4EZV4tw9Mg3 X-Received: by 2002:a17:902:7404:b0:158:bff8:aa13 with SMTP id g4-20020a170902740400b00158bff8aa13mr1653171pll.133.1650075642125; Fri, 15 Apr 2022 19:20:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650075642; cv=none; d=google.com; s=arc-20160816; b=jPAeIN/T8uobecpGaX+IIc51jIkl7bSkCrX/eUriWYTF+L1DNo3GwJ80qk0DtAbmtH dl46ti4UegMmZyq1s6JKu+oTpHwellBXedFopwBy2pndTWJhiaUXOupY3NtsU/npKiJa iMjB8B7wGwVcOYJR9TrWIl9SjQ+zaGECBr4nvBepSCKsK5XIT667+rB6m+hti3NfxISm rHFCXx8F9iOSNj+QFOepFQiWO0h4e+oSgUhzItHiQMr6uMSeHvbl4iqUKtI3Kvx8m6lb JQShCxD73zgn7EzLbIm3T+vwACJJu7o8CQu4mGdw50AvCqO0As0kj/+dY/Cgnid/OPTx NPtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=LgN5l2Xdx7OlBBeA1J/pb9IoAsBqHSLchNOgVp9URc8=; b=0G25AK011rqgxJXJoqkcisx73D7S0fYmD3KVwTHDtrdrXqyN2N5eiIJKPcHcihyTMw otfnx2sn7hYa0cbP7v7uxsC0xgjcJaDu9NfXBdJCd5aVS8+Wrp9vdWba283hEhTr+lrz tCnKXfyGGB3oNwH8pxybe2ItkVDFkxsRC+jg6/L4xnkfF+SPcFHa7L1CLduGZeSpNFgw 9o6wsyTXkyzdG81V5oc0qpJ23VkIBXr5+u/HyXAeX7jVdEuNHwb5HIMH8uVuFoqCFfB5 6w+bHBpaLKacJOMC+MHy9tt9YnZw9YZwLw0pb/afids2UVqy673n2wmTOiAn47dx2o4I lHPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JhQOw6oD; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id l9-20020a170903244900b00153b2d16578si2877074pls.384.2022.04.15.19.20.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 19:20:42 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JhQOw6oD; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 74EC7158784; Fri, 15 Apr 2022 18:34:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347973AbiDOAZ4 (ORCPT + 99 others); Thu, 14 Apr 2022 20:25:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233362AbiDOAZx (ORCPT ); Thu, 14 Apr 2022 20:25:53 -0400 Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 685EBA888D for ; Thu, 14 Apr 2022 17:23:27 -0700 (PDT) Received: by mail-oi1-x22a.google.com with SMTP id e189so7110016oia.8 for ; Thu, 14 Apr 2022 17:23:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=LgN5l2Xdx7OlBBeA1J/pb9IoAsBqHSLchNOgVp9URc8=; b=JhQOw6oD+ENJofQYOLmf/dXxLR51Monrg2ii08EtiIk0tqB+Wrvo6ZN4CHqwwzg7np QSW6PHqcD2DAEWg+pmJeB1n9lmWO+WViXAftfNEZBoVi9PUOvY0on98FZLfAfIPvgrT0 WL7Kl9Hp0USpO5b8pnNgDKSsTAHMr35EOaNOo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=LgN5l2Xdx7OlBBeA1J/pb9IoAsBqHSLchNOgVp9URc8=; b=5pZLcHqBDqNESbDLZJkemMs5WXuTl6pAMcxvew13onVIoOrf6183rZt6dEgb79BhUK TBOojZBMo6hyYz3r2rN105ZzcI6DMQ1S0vTdUsJhjYbCik6PkoL/AVZBe8zqcyAS0xWN 2fHfiGs8tGRTE8E448BxAm0zsnNcXZPYTkRdJWlluPSQo4bV8Pi07LPyenAW7E4CSiEL +wR3+g5CxRPRqJRksDz/2pCV/AeeAW1xucMvXzjH2LIzjLMgv7kGG7nn/b/XiloyXhKG HgtPklJQ07+OPrfvt0+BG0VZA1Zyl5ANTuUUwO/v9ph6SxrqZ9TXUTh44YMq2VW15Tt8 xqnQ== X-Gm-Message-State: AOAM531ESDmCDoeX9p6rkH3xurxNBXVpnEZv0lmrbNjoKp3x3Sm150yC AZwWcmbjBhvo99olbNXpA/59M3DLRhHiEwkjR+tRuw== X-Received: by 2002:aca:bd41:0:b0:2ec:ff42:814f with SMTP id n62-20020acabd41000000b002ecff42814fmr535616oif.63.1649982206848; Thu, 14 Apr 2022 17:23:26 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 14 Apr 2022 17:23:26 -0700 MIME-Version: 1.0 In-Reply-To: <1649939418-19861-7-git-send-email-quic_c_skakit@quicinc.com> References: <1649939418-19861-1-git-send-email-quic_c_skakit@quicinc.com> <1649939418-19861-7-git-send-email-quic_c_skakit@quicinc.com> From: Stephen Boyd User-Agent: alot/0.10 Date: Thu, 14 Apr 2022 17:23:26 -0700 Message-ID: Subject: Re: [PATCH V10 6/9] mfd: pm8008: Add mfd_cell struct to register LDOs To: Bjorn Andersson , Rob Herring , Satya Priya Cc: Lee Jones , Liam Girdwood , Mark Brown , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_collinsd@quicinc.com, quic_subbaram@quicinc.com, quic_jprakash@quicinc.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 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.