Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp432512ybt; Wed, 17 Jun 2020 05:01:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz52oGhInHfkRJCEEWyDcoVOIDr9YGgugagtyshIPMmp+lUhnxjEevBjT0EoIWITtTPGcw5 X-Received: by 2002:a17:906:5203:: with SMTP id g3mr6995429ejm.58.1592395316169; Wed, 17 Jun 2020 05:01:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592395316; cv=none; d=google.com; s=arc-20160816; b=iLwntVHxXnfkzUK0nRQXMqOJXqc+OD/oF/CxbY02hC0blO8gIiwM7QV+M652V1ZQlB X23Qy3nTQktDW6ofaQDD/2hJziqNLglYacHHQsG7VKTi1HoDc2WmAJdjDwsYwbNKcCh2 pcKMEyXd/OR626VNYtyXd/zdKzHuOo7nf3OWQBgpwRCi/PSMCT1S0f1t2AlT69Tn5021 5g/4xTaGXAdp+izYoiG57Ts0Dp589HqMAyqYi0A9ExwXAjRdkzJS0PRXfHdhexlzUa80 a1BgUpoCM/wSVC551CMfDSaW4y0QKKxtEQJ+PniYBGXV1KrqH/JuDlva6pwx3JCqudZS J2pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=/TAhtBD0JZB3OeqVg4Sg/t5NA/0YJ+SzdMDki1DJcps=; b=ynabfmLk0Z9s47gc6Uj06+TqaoJY8qrNlj5+lXTW0k0jX6IrDs6qLp8Ixpv4+oL5Z3 RjYVN+Y9LJlHYYViOMXfZZ0qjJBuC1UkyRNdYC0oO/EKkKAJHIVgWCe4ABQiEoRWzCta JexbK5XL8bZsgtCyNUgWJ6TwplgVr7W0ColUBQ5WKh0IGDWIrywgcJJOjrR5jJV1uaQO V5sZzOXsC0I8Dgl7xnEkUBS9oTVb+csYEuthAV6VN7XSqV46MPm3tz0Acn2OSm37MRMY N/EkYQMlCqeeofVeL+4IU3oz/HSq7TrMq2XSMtaMQrnR2+zb6/bAMELfSr+7JXV9tHe9 Rz6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hL6Rvzwa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q17si8312351edg.369.2020.06.17.05.01.32; Wed, 17 Jun 2020 05:01:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hL6Rvzwa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726674AbgFQL5Z (ORCPT + 99 others); Wed, 17 Jun 2020 07:57:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726280AbgFQL5Z (ORCPT ); Wed, 17 Jun 2020 07:57:25 -0400 Received: from mail-oi1-x243.google.com (mail-oi1-x243.google.com [IPv6:2607:f8b0:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75E7CC06174E for ; Wed, 17 Jun 2020 04:57:24 -0700 (PDT) Received: by mail-oi1-x243.google.com with SMTP id a137so1521703oii.3 for ; Wed, 17 Jun 2020 04:57:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/TAhtBD0JZB3OeqVg4Sg/t5NA/0YJ+SzdMDki1DJcps=; b=hL6Rvzwasvh8JclW23b05+UHwnW8NXnEYh6K8YFuMwRssrzpSI8d711InpIaF8o3V9 Ln6kuk4PFZ7ujW3Nezxl3SkzV3Z1c0GLtwSQSDZxWbHp3SIL/haBQ4IKFpicUq78HWUV MSu7BfIbtxs/18Dtx/4UpOw7o6ttX/Sr3TRkZHw7zsYtoPsoRuxy6WfZoBDDOtX5Gakg KcO8q5HlWW2YWC43IFOx+6+Brv9my73D60JX0YxYB0m0CnWTGNLAyJFp5i/GqMYbDjo4 iWQc249KmUImK3L5VpIScQn+PzrRKnK4RkuKeo95onNnXtUVJmAQmSmr4umhAisyDpo2 O4tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/TAhtBD0JZB3OeqVg4Sg/t5NA/0YJ+SzdMDki1DJcps=; b=QcP1rJNPrai5lDdzgNQ+Ncy3nUA1bTJ1P2kDHjM+sX9Iee/Twzst66xKp4US2hsfhF TQJNRxRM8lDt0SK1EcsHiNIlGXHykx/QbaB7R3kkQG+BX/qml++hNO5vZBtC3PV8+bYl 5dnIAkLqb8dXRAD7fnEWD5/FjpEZ9Stjrx5tKiPj42qDBfVlaS5/2noQjw40Gwva7zSZ S5hmtARBgyQa4niWj3we1qIrruNK3Ag9+1tNebatcxaGasZ2XBAp7v07zhbAQVP0fVo/ KxMz+RdVaxNORC6uy+5U6AFeyHvB3YAhn9tnZu9YwjkwsZJtq2pLgeyU+T/d41O+8VRd 3dwA== X-Gm-Message-State: AOAM533WIOF7eYqPk4FxXzySRjGlU7+lJShNsEc+i/Ev4KYlyDib0O9S Km3s1ExgEaYdOO4P3oh3jkbIiTeNjZcZEq47eMsrzw== X-Received: by 2002:aca:c391:: with SMTP id t139mr7342114oif.166.1592395043660; Wed, 17 Jun 2020 04:57:23 -0700 (PDT) MIME-Version: 1.0 References: <20200602100924.26256-1-sumit.semwal@linaro.org> <20200602100924.26256-5-sumit.semwal@linaro.org> <20200602113241.GE5684@sirena.org.uk> <20200602122554.GG5684@sirena.org.uk> <20200617114721.GD4613@sirena.org.uk> In-Reply-To: <20200617114721.GD4613@sirena.org.uk> From: Sumit Semwal Date: Wed, 17 Jun 2020 17:27:12 +0530 Message-ID: Subject: Re: [PATCH v4 4/5] regulator: qcom: Add labibb driver To: Mark Brown Cc: agross@kernel.org, Bjorn Andersson , lgirdwood@gmail.com, robh+dt@kernel.org, Nisha Kumari , linux-arm-msm@vger.kernel.org, LKML , devicetree@vger.kernel.org, kgunda@codeaurora.org, Rajendra Nayak Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 17 Jun 2020 at 17:17, Mark Brown wrote: > > On Wed, Jun 17, 2020 at 05:12:35PM +0530, Sumit Semwal wrote: > > > I understand from a pure regulators' correctness point of view, > > ENABLE_CTL should be the one checked there, so I can change the patch > > as you suggested, but there seems to be some performance penalty > > there. > > I thought the goal was to have the performance penalty to ensure that > the regulator had actually started? IMHO, with the poll_enabled_time mechanism added, we would not need to wait for the full enabled_time time for the regulator to get enabled, but we could poll (and potentially know earlier) if the regulator is enabled. The performance penalty I was talking, is about how should we check if the regulator is really enabled or not - via reading the STATUS1 register, which seems to tell the status a bit faster, or via reading the ENABLE_CTL register which we also use to enable/disable the regulator, but which seems to be slower in updating the status. > > > > > The WARN_ON? This was suggested by Bjorn to catch the case where the > > > > DT binding for a PMIC instantiates only one of the regulators. > > > > No, this whole loop - why this whole match and get child stuff? > > > This loop mechanism is what I saw in the other qcom regulators > > upstream, so thought it was an acceptable way. > > For the two children nodes, do you recommend another mechanism to get > > and validate both nodes? > > I don't understand what you mean by "two children nodes" here? The two 'lab' and 'ibb' regulator nodes that are part of the labibb node. Best, Sumit.