Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2645414ybk; Tue, 12 May 2020 04:46:46 -0700 (PDT) X-Google-Smtp-Source: APiQypJz9k9PADwv3fPmEE+O1oaUGnQuO3gK0zcN+48P1dqtQyQ/Uamet+xToWzkEfyWGXwlSYEI X-Received: by 2002:a17:906:9157:: with SMTP id y23mr12025858ejw.0.1589284006756; Tue, 12 May 2020 04:46:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589284006; cv=none; d=google.com; s=arc-20160816; b=QBjw4Vcbiux10Geo3AdqPCCpwuXpfXEIs9xSH50Rw1WnMT+4IVl0C2xgHn8uBFiQu+ OEtV9fv0J+XGALtak375m0LMlTsRn5YPO0fDxVV4nknIBmyJy/iWZ1rizsQk24+6kRjZ Yx91FJUoSc3U8l3slDckEIc8jw7DAR0uWwJJV1/xidLw6GlAOC5+k+NxoLyreGKKHMd9 8P8BAkg/Ig2gvsIDMprgioOgNFmc9EIyWA3tkYbduIvGRSO6RmXthQ5ZFY5pPQqOByWG bYaimVXnu4P5grOmTqxXrbCg/G5feW1p1rlibASC5Gp8oXlE8NiSvcpgTU7PWlRgv9Xw j68A== 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=LEnkV9esHrS/reg2MoAVxhdnMcFyOlYzieDJllYll6w=; b=0A/FJQkRHSrZsEPLBFQWWT6ZBDbihv0umCJ9CYlCq/B1a+S3Azy6suYLm9H0rMHtlK z3istS0hJukFm3OUCBEDU/umJJgL6pFFWVqcqNC6PoaHcox2KEZVsHnw+VweEW72xQSi IqW3fhgeRZaxJso7ZIZGaELX0F80bMfJEhR0sX/MHP8iEiSnXNRhoRvT8quRDX5d7KWo XtURtJkewhUoPY0HzvDrmL/cktoj41jzmlnDrfl+FRpBFRQLO7x6yO2QiDj7QfqG3Iut s39OLcyFzOo2XFXaTmH460Fx01SD2hL2+pAvo2nB6ya/m6jiK0vF73J5B+ktPZJrie3O PNXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sOQnMm5Q; 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 jz18si7623933ejb.112.2020.05.12.04.46.23; Tue, 12 May 2020 04:46:46 -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=sOQnMm5Q; 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 S1729408AbgELLo4 (ORCPT + 99 others); Tue, 12 May 2020 07:44:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:35654 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726187AbgELLo4 (ORCPT ); Tue, 12 May 2020 07:44:56 -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 C96AA206CC; Tue, 12 May 2020 11:44:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589283895; bh=q7CeDCgeFWLtQ2pVmu7QUtCPdGgoF7Ine1hJnCzA+TI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sOQnMm5QEEkxQGEc0XhMom0YLJgMFWRbDd1OZbc4nvJgTW9dvJlvEe/H8uwRX8ZRu i3sxiaQLQJ7to6eXqAfUme3ryq//pv5dzlcVqgYvBBPzfbcD1xDjjR9KudGYQiQQof BXxDpDoHLMosu4nLP9vXdhfPAthHPo6N6EXhDWdw= Date: Tue, 12 May 2020 12:44:52 +0100 From: Mark Brown To: Bjorn Andersson Cc: Sumit Semwal , agross@kernel.org, lgirdwood@gmail.com, robh+dt@kernel.org, nishakumari@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kgunda@codeaurora.org, rnayak@codeaurora.org Subject: Re: [v2 3/4] regulator: qcom: Add labibb driver Message-ID: <20200512114452.GE5110@sirena.org.uk> References: <20200508204200.13481-1-sumit.semwal@linaro.org> <20200508204200.13481-4-sumit.semwal@linaro.org> <20200512021509.GF57962@builder.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nHwqXXcoX0o6fKCv" Content-Disposition: inline In-Reply-To: <20200512021509.GF57962@builder.lan> X-Cookie: The only perfect science is hind-sight. 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 --nHwqXXcoX0o6fKCv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, May 11, 2020 at 07:15:09PM -0700, Bjorn Andersson wrote: > On Fri 08 May 13:41 PDT 2020, Sumit Semwal wrote: > > + int ret; > > + struct labibb_regulator *reg = rdev_get_drvdata(rdev); > > + > > + while (retries--) { > Mark's suggestion of extending _regulator_enable_delay() to support > polling is_enable() seems reasonable. > The only complication I can see is that code path currently doesn't have > any expectations of the regulator not being operational at the end - > this seems to offer that possibility. So some care needs to be taken > there. Are we expecting that to happen in normal operation? Generally this is a pretty serious problem. In any caser if we're adding checks of status we'd need an error return if the status doesn't show the regulator is on after some reasonable time. --nHwqXXcoX0o6fKCv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl66jDMACgkQJNaLcl1U h9CdOggAgXP9kFKpXNgKVebfykSbXg94s/dvk5jSk4VzlFuvOt/R8fDWQtR2SedB 8VPyx7o8DFR1CbiVq20OnqfNn7cygyu9FeLyB1+/BZXfOXTALqYHnB+38EgVVN2u k/HNUYRl8L7e8aI/+eSettgICpsN55xlY/SXu4bKhEgAOcCDFQVb3jAKE2bYR89L tRSC1eDzIRbHlhaEg3Z/t5hOv2l+AiU5dzTBiVkHe0S34CHTmu8o3fuT2jOYgDdd zi2R7S86GLo64+5SwbhY6jP76msta5BEvLisU5Dant8pwVBBQ6ExrRYdwiRHCOir g7NGd1XsPqbxRW4l9Pb8Hhatnw2H+w== =QxDp -----END PGP SIGNATURE----- --nHwqXXcoX0o6fKCv--