Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3622616ybi; Tue, 18 Jun 2019 04:00:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTGi1p9RnqO+JW9tz6mc8qc/JEuHnyBrPNuQM7T15pdzPnYTXXrhMeXruulyyn80/E4S7p X-Received: by 2002:aa7:818b:: with SMTP id g11mr3770684pfi.122.1560855616080; Tue, 18 Jun 2019 04:00:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560855616; cv=none; d=google.com; s=arc-20160816; b=Jk2HV6KmzH6bHjtgQCb4AhMJzEiAZUNk0YAnTdVtwTs/QrIIkC235BmGz/FsPtAaAW iyU+5H+oqDT6A/bOsyIDq6umVaYPJr1ViUIi6IE4OJbXwKqoL9H4r63oOqJopAczWQq5 Y0V7eKuq9bRZ4/SbOfg1d7drtxxIwIZAAoCBOGe1kRBMG0cfXnU7rWSwPI51oo6XMCdj 9pv/kPhDYmSN4k2Sf4kPYsxtZLWQyqnz0A7cEtIn6QcGIKro21xzaIc716E+zTIq1enA v7zVlKHof6fT+mCPlckLKb1V8q+YHxUKcGxEZZHxr/HDJ7nsLj29YGr9rZuLxT0enbRU M8xQ== 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=Q2jJFJeqAvHW5xjduMI/BTDoLMuuZxXoXruOimW2zSI=; b=KnqDbyEPvmTA1u6/vOabSJjp+BdkiaeYTy2vguDK7u3tNlr0dO639+zohFyimO4CRR qpPjyUckZ3lfO9j/b+YIO5wiNHF8T6XyFxGJJVvmWKGCSG07ePGopCNZkDL6wCueuH0+ tpnFV/lz06o4SzxC652h7aMddy+qonEtNWNLpqGc1N9v197KC233C/fxHoEEofO59vlb z3t5BRqOXpd7eUkdcVhjhlGswERb9uLGazXPaZENtdCzsnQCqfDZ16d+uTnIH39CgXYr W33RQZiiitMz+qCkdX47jKiT1rsSfYj1P1IHwQh4KTazrrrPYg5Me7PbXfrEZoyny/Wo hBEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b="ZlTWG/CJ"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 6si13148516pfe.21.2019.06.18.04.00.01; Tue, 18 Jun 2019 04:00:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b="ZlTWG/CJ"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729659AbfFRK7l (ORCPT + 99 others); Tue, 18 Jun 2019 06:59:41 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:47608 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725934AbfFRK7k (ORCPT ); Tue, 18 Jun 2019 06:59:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Q2jJFJeqAvHW5xjduMI/BTDoLMuuZxXoXruOimW2zSI=; b=ZlTWG/CJBcnrLlZPmdiOAf3yG TTqKHnwT2VevOiAAtguh0Qwc/04W2njZ37TI5hdm1YGsBa0qVrSs7qKTF1mayVxVTREfbMGtCPcUA aVudYh0OL3vEna9c1pzwa80ChEldhHITnGE3lIP0JUchiMTtNU9Ul09f3agMhxEp2FrjQ=; Received: from [2001:470:1f1d:6b5:7e7a:91ff:fede:4a45] (helo=finisterre.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hdBpw-0004vy-1d; Tue, 18 Jun 2019 10:59:36 +0000 Received: by finisterre.sirena.org.uk (Postfix, from userid 1000) id 7A4E2440046; Tue, 18 Jun 2019 11:59:35 +0100 (BST) Date: Tue, 18 Jun 2019 11:59:35 +0100 From: Mark Brown To: Nisha Kumari Cc: bjorn.andersson@linaro.org, robh+dt@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, agross@kernel.org, lgirdwood@gmail.com, mark.rutland@arm.com, david.brown@linaro.org, linux-kernel@vger.kernel.org, kgunda@codeaurora.org, rnayak@codeaurora.org Subject: Re: [PATCH 3/4] regulator: Add labibb driver Message-ID: <20190618105935.GM5316@sirena.org.uk> References: <1560337252-27193-1-git-send-email-nishakumari@codeaurora.org> <1560337252-27193-4-git-send-email-nishakumari@codeaurora.org> <20190613172518.GN5316@sirena.org.uk> <577d6e90-0bed-ff2e-32dc-e64c3118458f@codeaurora.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="sbU44GGDGzBBUYp9" Content-Disposition: inline In-Reply-To: <577d6e90-0bed-ff2e-32dc-e64c3118458f@codeaurora.org> X-Cookie: Editing is a rewording activity. 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 --sbU44GGDGzBBUYp9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jun 18, 2019 at 11:51:18AM +0530, Nisha Kumari wrote: > On 6/13/2019 10:55 PM, Mark Brown wrote: > > > + labibb->lab_vreg.vreg_enabled = 1; > > What function does this serve? It never seems to be read. > Its used in next patch for handling interrupts It'd be better to move this code into the patch where it's used then. > > > + if (val & IBB_STATUS1_VREG_OK_BIT) { > > > + labibb->ibb_vreg.vreg_enabled = 1; > > > + return 0; > > > + } > > > + } > > This is doing more than the other regulator was but it's not clear why - > > is it just that the delays are different for the two regulators? > LAB regulator comes up in first try, so we did not added much delay in that > like IBB. Planning to make equal no of retries for both in next patch so > that code can be reused. Is there actually a need for polling at all? --sbU44GGDGzBBUYp9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl0IxBYACgkQJNaLcl1U h9DGQQf9Fn7TqN/dXa0DWnKZiNKqKqQOQ0wKS8WelZLNW4v6/5KFIyrz+82a3s8p r7RFFxI24fxs2p8pztsKCXeh1izQCVTOW/FbP5rML9FGkMVoNeGw7YseKvmiIPpn vF9XsDTNRe9RIQ4UOMqwMNvauR5eHR9aPtLDtZ0tspewoj2fNtszc40LqZJsA+Kq pzf6Mk4JZr6ZcteH3fnBoGDsW9mNEYmc3Iq1ypR4nuxcLwOUpilFssOzYAziTt2D we0Cz/kP/ANEk7/f6YJLfDMKiKJMhddbI37MvIktRpMuLw7chcQJcS9buuvIHAiE wQNNKWGz/eyWI+Ke81ZfjeXzLO8Raw== =im0z -----END PGP SIGNATURE----- --sbU44GGDGzBBUYp9--