Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp425971ybt; Wed, 17 Jun 2020 04:50:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzH73KUuEnbLDfx59LV4DqiSZ8sojJHnl9ZfdmXUcJRURKaCh9SKaYnB31VWk6vUCJx6VnZ X-Received: by 2002:a17:907:216c:: with SMTP id rl12mr7553711ejb.156.1592394610427; Wed, 17 Jun 2020 04:50:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592394610; cv=none; d=google.com; s=arc-20160816; b=SdmBsgVsuFtzcIQelt2g0wR6Tj2kCaPVvcN81dsR9Z7NB9BqrV6758CdgQKgXL5gvh K21DCsXvo3Gd9n8ge99/PBZlx5/ubxOyU5yUaS+g0/AbcAlySQW6D8a3BlB2kfL8kVlb EpuEItm1DJw74Vexa8mRm7ZaqKuQTbrLTbNT7KRJaEGuKF454RxsmO9rp6Te+Cv9O/Uw RF4Tz25pDJG4xo4E1uVqHaZRV641WQed3oLGoJ9chSxjmPLwFHPBh0xirizKO0SIgdyS ll/Us4Ta1AfG5yRnF8urRWPwCtXx0Qlc+BscRH580FAZxF8a6GV0GCg319R7WSARR+Ol qG6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=c3/QWnFt5iLGaQTofmcr61auxhK/9/ececAXtvcpTyw=; b=jMwd/Bmwmd0ireJfPdob9GuBHeY8XF1MhyWm1FCmv+mX0gtIe+FV9VTw/YgAbQ0aV1 21B7OTbhppKfWvy5Eo56i9hRKNV3l1M53SY/AAL/bpXdN6poXKoQOsrv09ETiFDlg6/Q uM4lEnRpw2PKBR0HJOua/lrmBg0uNEKqyUYcv/aKMNNsQ9y4heqRpe4UYOUx9f5wQk5O ZWnVPw7KalMMV8yADhKwsiB9JMCtVIllxrE2V/9gzjtCZx/cSTHC19P5nMOjwpHt4wF/ j25tFUziuic22mKE85hpbtItUTX/C0M8NXhWvDd3j05jJMbXfrum+6FXKeoIRr3U55vv +S3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=14UpedtY; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u27si12776574eje.558.2020.06.17.04.49.47; Wed, 17 Jun 2020 04:50:10 -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=@kernel.org header.s=default header.b=14UpedtY; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726599AbgFQLrZ (ORCPT + 99 others); Wed, 17 Jun 2020 07:47:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:57952 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725967AbgFQLrZ (ORCPT ); Wed, 17 Jun 2020 07:47:25 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EBFE5207DD; Wed, 17 Jun 2020 11:47:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592394444; bh=c3/QWnFt5iLGaQTofmcr61auxhK/9/ececAXtvcpTyw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=14UpedtYLNDUXYNj3lMDMpr6FtOfPmEKPZlQOxSOtExirPznMhHAzsBBji3hG3E8q pDpM3mgMknuYGDeMfKD0oV0r99P+fuXb+FGAAMfrxjzkNlGu1SKIqTRM8CISEwRq/m MKFMrWwVXuKcPBHZlBz5WQrUrWhGbz15wQHYbpks= Date: Wed, 17 Jun 2020 12:47:22 +0100 From: Mark Brown To: Sumit Semwal 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 Subject: Re: [PATCH v4 4/5] regulator: qcom: Add labibb driver Message-ID: <20200617114721.GD4613@sirena.org.uk> 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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="UoPmpPX/dBe4BELn" Content-Disposition: inline In-Reply-To: X-Cookie: This fortune is false. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --UoPmpPX/dBe4BELn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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? > > > 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? --UoPmpPX/dBe4BELn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl7qAskACgkQJNaLcl1U h9CwHwf8D6plSnWpJBT6fOA9ZBPP/820nVYr3A+7su56CgW5U+Q0a0fYck3zmpG/ WbNQm/poaHawCTQsmd6YQGs7SnBaVIJs5xyLmEtsX65EjP4jo+sYuN1/RWio+KIs 3qupZj3mYWLAVYUrsVq0nKDlrjcorsbT3Kpe/Yzg1TIg2ZYU9kwIrDvDowKkwSvD L3oj9fzDokGBGyl8PQd/xCGuM92IrGASoUZeWbYdXfMf0BZxZ0tXN53TmwLE1Ybg P8k94OIRbwx4z4HyNxpsy0+mKBwd3kLRIhyAwCZT+HJH13V4OrF5NfoEt3+e58TN 17C2i1cB4rfV/cHQLvJ6zkqLykqrZw== =DTZm -----END PGP SIGNATURE----- --UoPmpPX/dBe4BELn--