Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5245717ybp; Mon, 7 Oct 2019 23:06:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDnTsKUgPJJGwjvV55SoQVtGf6UY5JWmVQHxnVo/G2T5GULsQfooPxBpRNHf834xUqq6WX X-Received: by 2002:a17:906:4910:: with SMTP id b16mr26409588ejq.301.1570514776314; Mon, 07 Oct 2019 23:06:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570514776; cv=none; d=google.com; s=arc-20160816; b=EGDDkLHTaBz7/UfpS4vbajDBWK2FbYblvVEFO4Q3Qi/Y8+RS9NYNP2nIyJzIAT09S6 i5Ih7MyURR0UCQOgYC9AeQsLzPovJS3jb2wJY79LiDdYwLHFABuywjHxMaBeh7NVvuSW dxrAemKYmhygkFXHVUlRVfvdWYoYyBBGsx7SP4L7hoxxBqks+diS2tYcTTqBJoDMfQ7R xRhgjE1Z+rLLx/2rFL8UGpmEMqHShcyTH/bkhMXGIkx3BTsizZPKH6yErUZcNVEG9Lh3 xrxM9Js3jzRP1QkRaDRA6Lz9Pwq2rg8Ya1x+hcOZbZ+x4IXNJ3zCnpybHcjDAFi7CxEY O0zw== 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; bh=KE+dd7XCIBrBspKoDkfAHLOs6Vat+9SocxiBJh5vxEg=; b=Af+bc+a+0K2GWnNVg93rvHNLfGwmKt8W8IX1OtKntB5/gy3HMCLz+MDPdGka+1cVfG 66ox1jGVTsYXIauWDzADUmEGfM9TGlB5v8re/Bco2wzOSUpRc95/bUlw33mIBlQmAz6Y XrtibZnbBLwLJ7qnaW43SChul5ADZQlHvD8GDoX5yHwvhTNALF2RXP6oB9kP1OoIJvpd Rj142sSp1WSzrY7AmBocqo03C7MXKz7betIKmESud9SItIcC+SG4l36pBbUroS4TxKu5 AhR7ZeJCPrt1UMwNW8W7g/4mAX9BCL4/dZl+mGjRvDtUYYRD/h3vX3Y72zm8IImeZl56 LjPQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gh12si8008881ejb.191.2019.10.07.23.05.52; Mon, 07 Oct 2019 23:06: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729889AbfJHGDS (ORCPT + 99 others); Tue, 8 Oct 2019 02:03:18 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:44925 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728297AbfJHGDR (ORCPT ); Tue, 8 Oct 2019 02:03:17 -0400 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iHiaX-00038n-G6; Tue, 08 Oct 2019 08:03:13 +0200 Received: from mfe by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1iHiaV-0001dd-UC; Tue, 08 Oct 2019 08:03:11 +0200 Date: Tue, 8 Oct 2019 08:03:11 +0200 From: Marco Felsch To: Mark Brown 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: <20191008060311.3ukim22vv7ywmlhs@pengutronix.de> References: <20190923181431.GU2036@sirena.org.uk> <20190923184907.GY2036@sirena.org.uk> <20190924182758.GC2036@sirena.org.uk> <20190927084710.mt42454vsrjm3yh3@pengutronix.de> <20191007093429.qekysnxufvkbirit@pengutronix.de> <20191007182907.GB5614@sirena.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191007182907.GB5614@sirena.co.uk> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 07:54:41 up 143 days, 12:12, 94 users, load average: 0.03, 0.03, 0.00 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Regards, Marco -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |