Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp892387imm; Sat, 14 Jul 2018 15:45:24 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdFsLEEW8Gt4wPUPPBIaGYNGlhTYEBmp65m4MaeA5vM5Ckzb8Jp8XJCIDbjneoaixDQhEgH X-Received: by 2002:a17:902:988c:: with SMTP id s12-v6mr11413986plp.199.1531608324431; Sat, 14 Jul 2018 15:45:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531608324; cv=none; d=google.com; s=arc-20160816; b=0CBwBsn2YyLeSutPvQEAOu7EVxnkrQgd47nq8zNaPnSL12LOsClkRWPs4UKZ2dzDwa WeI8lpd5nTCHtkX+LL78P8Nm5JhP4eEYa8TRfQ6PuD1atKLH/I08KcoRFsz9eY6u+PLr IjeWeMSs22XrvRLWoG6nKbmLo7su3q2xnKv26avglN396YVVQ+0XUC7lsULMbTsmwCuh /AkrlhOB04JRITXTRKgwnF2PNro2oLhr8ENdPegotyAFX+kG7B2miZ+O3ln+EW/VxenA ambjU1kbk8+WBfeQQ8Z1YxuYz2EI44gjillIABPj6ckxnbrVAD1ipohB3Aeou18wuC/O IVRA== 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:arc-authentication-results; bh=z4maOZ2CkPOs0t9oFOGIue56CLuSzOq45Dh9+mfZs5k=; b=E5UXRRr39T/2k8u/kFCnaxlSmhiJPls3z6By6lPghTEsQF15o5bP1Deltod6VomTFx xWVPG4tZvEajBdsUyOmoYQ05RxGRtwCT5vHmWxaCOTXIVimVy3p9hU/tdOtA0RMSOCF6 KHOW6iZogpWwwt1lXMG7l0SNyC5QOLYtRPoTUN2y3+FyhV2uqxhDLCV+2YfScEqcGeL+ JMif/AHRorf7FnGwacmMS28ZCYhqj5fh/7nE/rNuA38N6mLOiPqKJ3m9T1paHYXMx50J Ccnl1kqdpG9s5Jlw+G4EIea3QsTWxYXy/bTEQgwmvYgh/wNpo/UYmvc9JZj2z6NvS3K8 pBgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=WPbWim1K; 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 t189-v6si27759604pgb.440.2018.07.14.15.45.10; Sat, 14 Jul 2018 15:45:24 -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=WPbWim1K; 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 S1732688AbeGNXFJ (ORCPT + 99 others); Sat, 14 Jul 2018 19:05:09 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:58148 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731932AbeGNXFE (ORCPT ); Sat, 14 Jul 2018 19:05:04 -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=z4maOZ2CkPOs0t9oFOGIue56CLuSzOq45Dh9+mfZs5k=; b=WPbWim1KbKn3r4nsuyj2SW81V 01P8waqdCqu4md9z6LPDTr9tndAq5imlkIGeGvvtb8/J1Xqkzb3irg5WDMjXnSo/CNbYGCGF3NASG CFch2piICvlY3YQTmbVtfQE1YskXXY5oS9EsmfcCM7JZbK33J5c1BmgAS4dPa70d/ISr8=; Received: from host86-174-189-173.range86-174.btcentralplus.com ([86.174.189.173] helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1feTH6-0006ho-5o; Sat, 14 Jul 2018 22:44:24 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 3B0A744008F; Fri, 13 Jul 2018 17:15:54 +0100 (BST) Date: Fri, 13 Jul 2018 17:15:54 +0100 From: Mark Brown To: Marco Felsch Cc: lgirdwood@gmail.com, m.purski@samsung.com, p.paillet@st.com, linux-kernel@vger.kernel.org, kernel@pengutronix.de Subject: Re: [PATCH] regulator: core: fix _regulator_do_disable return value Message-ID: <20180713161554.GF16228@sirena.org.uk> References: <20180713125624.13783-1-m.felsch@pengutronix.de> <20180713130715.GC16228@sirena.org.uk> <20180713154854.qmnraejcdq6gqn3x@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0hHDr/TIsw4o3iPK" Content-Disposition: inline In-Reply-To: <20180713154854.qmnraejcdq6gqn3x@pengutronix.de> X-Cookie: Reactor error - core dumped! User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --0hHDr/TIsw4o3iPK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Jul 13, 2018 at 05:48:54PM +0200, Marco Felsch wrote: > On 18-07-13 14:07, Mark Brown wrote: > > This is fine - consumers shouldn't expect that a disable will cause > > anything to actually get powered off, constraints or other consumers > > might mean that the disable doesn't actually happen. It's just the same > > as a consumer with an always on flag. > Okay, I understand that the behaviour should be like the always-on > contrain. But now the behaviour of the core is like my v1 of > "Re-Enable support to disable switch regulators". It's like a 'simulated > off', which wasn't a good solution for you. The difference is, that the > 'simulated off' is now made in the core. Right, there's a difference between what the core (which does actually explicitly turn things on and off) sees and what the consumers (which only increment and decrement reference counts which may happen to result in something being turned off immediately but also might not) see. --0hHDr/TIsw4o3iPK Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAltI0DkACgkQJNaLcl1U h9C8ywf7B5uF/moFNSn3GVXaDhx5OWuQgti3nKcypjL+jmX88cH9qjXixNRGSmS8 76dAopKcdiyowZGPX4sQS+3l601EhtuDoq4iohUQH6BRY7DSq89beV49nAFulx+v IMZsAxuoT1lNhjImFwFNVklHiFmI/LUL/z4nhsyyuwtX3ldNRQ4lKpU3Lhb8ZjA1 lA/XJO4LFiex+YjtQugDvM1wtaCMCSkC5fkzaRO0ZPf1fk38uFEDn3zBJYaalveD s1DftTpYmpBCKcMllyMsdOlMfsNvAeyGmthf6vC/mx/5Agougm72jH7Nzknoqhuj o+bJKq/P8mjPFdHEwOiQXy9r0slgXA== =BGkR -----END PGP SIGNATURE----- --0hHDr/TIsw4o3iPK--