Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5614660ybp; Tue, 8 Oct 2019 05:52:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqxev2MEJcOjqgxiu1afEeGnZpnqvqooWpOKkmSnI+piJypuwpQtfqJJLNrT18gH4fEkkQCV X-Received: by 2002:a50:f19c:: with SMTP id x28mr33037384edl.42.1570539178230; Tue, 08 Oct 2019 05:52:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570539178; cv=none; d=google.com; s=arc-20160816; b=MiPh4QRgpVp/P74qQgSnnjXsTRaulZjGqKCw4pLzaS+VEBKiFLkO6HvaW/7z1G2Lcc ntcInVjeF8+5Td5rVNZNUunT7miZ/PFPN11Ami4wcFhhRYuq3cvM++n7Phm/IPxqvtDx bG3BrIQVp2/lg7qw88N+oowjeOfUWjZzOPQxqO50cqhorDxJfVb35L5JJ5sNUW2dbARv bA2Tm9ttNwiCGeH4zTUB+dlVa/8bIl993dwyBhMGrzMaO7jxntj4GTwx80zd2IgMa8Ml aQnMtbjpbNko22DcrufvP0Qu4IgL+ulEOPi6bFIAT11XGX/eXrOBUch7+Yvqb0zLozEW GjRA== 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=2n6KBQWMDX1NrqLedWsDmkizN7mYazzOB0W13u6An5A=; b=zYLXbai6r4R0rj+aLuODGKGY1crHl2CTT4vslkAAh/0SlZ9Om0dcSNr9FW0labNNkh L4TXEw3o+sJCs1lARnfEDQyeF2Ofb7LwP2f0RmjiFZd/ZL2WyxZ9UPOVoV/KsVmbbtdJ v+j+okhl2awZ9MHRMKClIsMkDcbmRHChPPyGDz4zAH0NoGcTOb2xkaXhLHKBNUOUBK+n uJAzv0vsITOIqyXUS8I22K6m8Snt1uSLbD6DQrwqhQqt/WI6CqAYiGNR6o04c16g+qKm wt2Sjy5cwYRp2naGN9s/WSC7XRbOjOk+bu7WXLcUlxvk+3gSYFXJ35mHy5DniIR9gGBF P03A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b="G78Y/6i0"; 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 y47si10283445edd.236.2019.10.08.05.52.35; Tue, 08 Oct 2019 05:52:58 -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="G78Y/6i0"; 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 S1730955AbfJHMvq (ORCPT + 99 others); Tue, 8 Oct 2019 08:51:46 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:49882 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730249AbfJHMvq (ORCPT ); Tue, 8 Oct 2019 08:51:46 -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=2n6KBQWMDX1NrqLedWsDmkizN7mYazzOB0W13u6An5A=; b=G78Y/6i08x9DeNvvEVM96XWyE RyIXDeJjTcvYB1OiwKv3Max1iEOCv/EU4MKXFnpaYtkllhq70vjDUR2VBHd7CWNAUfid7BWAf3MCJ 2dRGVWWL2Coi7+Ho6WhEmGGBwR3QQxVDPu+shjKh2OnQL0j0JSk1ih8B4ADBXE6qblTdc=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=ypsilon.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iHoxp-0008LX-Rd; Tue, 08 Oct 2019 12:51:41 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id 149212740D48; Tue, 8 Oct 2019 13:51:40 +0100 (BST) Date: Tue, 8 Oct 2019 13:51:40 +0100 From: Mark Brown To: Marco Felsch Cc: Doug Anderson , Chunyan Zhang , Liam Girdwood , ckeepax@opensource.cirrus.com, LKML , Sascha Hauer Subject: Re: [PATCH 1/3] regulator: core: fix boot-on regulators use_count usage Message-ID: <20191008125140.GK4382@sirena.co.uk> References: <20190923184907.GY2036@sirena.org.uk> <20190924182758.GC2036@sirena.org.uk> <20190927084710.mt42454vsrjm3yh3@pengutronix.de> <20191007093429.qekysnxufvkbirit@pengutronix.de> <20191007182907.GB5614@sirena.co.uk> <20191008060311.3ukim22vv7ywmlhs@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="08ATZu8fEq0x2T3M" Content-Disposition: inline In-Reply-To: <20191008060311.3ukim22vv7ywmlhs@pengutronix.de> X-Cookie: Do not disturb. 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 --08ATZu8fEq0x2T3M Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Oct 08, 2019 at 08:03:11AM +0200, Marco Felsch wrote: > On 19-10-07 19:29, Mark Brown wrote: > > On Mon, Oct 07, 2019 at 11:34:29AM +0200, Marco Felsch wrote: > > > Sorry that won't fix my problem. If I drop the regulator-boot-on state > > > the fixed-regulator will disable this regulator but disable/enable this > > > regulator is only valid during suspend/resume. I don't say that my fix > > > is correct but we should fix this. > > I'm having a bit of trouble parsing this but it sounds like you want the > > regulator to be always on in which case you should use the property > > specifically for that. > Sorry my english wasn't the best.. Imagine this case: The bootloader > turned the display on to show an early bootlogo. Now if I miss the > regulator-boot-on property the display is turned off and on. The turn > off comes from the regulator probe, the turn on comes from the cosumer. > Is that assumption correct? No, we shouldn't do anything when the regulator probes - we'll only disable unused regulators when we get to the end of boot (currently we delay this by 30s to give userspace a chance to run, that's a hack but we're fresh out of better ideas). During boot the regulator state will only be changed if some consumer appears and changes the state. --08ATZu8fEq0x2T3M Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl2chlwACgkQJNaLcl1U h9DiZwf/bvPEqEoOEgmUuBCG0BmsfN+JJ8gdKd2SO2lyrse3oD/ilDKaaX8Noiay 6PyqZ8OzEUwuHoAru466V12PvIJQgcHthAI4RWjVM3JkjpdzGbEZkjsbwa6h7iL0 jfKZm9So7YUY8h6TVqU14X6eUPG7zFPKXYfh8w+CiSqFW/AdQ8lofUTYCW5Ib1Vx qsVbqH/oOb79jAdo5Y8Glp/9nZspLePSfav96s3ORv2mVo7VjkBsEcyDksWJs1/3 Ul9E3g0SuYYJpcO4PP5vKI4eCZY0oTaEVEgruAVs0Sr0Y5jM0ZJ8rbMtPkS+066L vY86ztk/oB7s+yai0Rsdq/SmBEK2HA== =K3vQ -----END PGP SIGNATURE----- --08ATZu8fEq0x2T3M--