Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2697851imm; Thu, 16 Aug 2018 14:05:08 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwYiYqg85HKXtzNim0nVUAtg+N5DLCFMmX8sIIIZGWYp+9fcdn+Cj/0krfdq6fFPa4X5URo X-Received: by 2002:a63:d704:: with SMTP id d4-v6mr30411471pgg.312.1534453508045; Thu, 16 Aug 2018 14:05:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534453508; cv=none; d=google.com; s=arc-20160816; b=IZPmGmqmCMrhvGH12HfPjvqCy2ONwPZTkDcfFHtofBMI+eEXlY5vfLK84BuCfX6egm u9MZH+7Cz0gtjvLgkMufqvSxESjaUilhBW0hQ+n34H86yGpCgcDvVVyePKJPcKKEnvb1 WZ34EgGyk2voGfuQBFcZqe9iBWIAyUTNmMAxeQa+xnchaaFNReT5g8h9tS1espdaP/KK cGlQ+bsaakWAEy8YgJrsri/nOgCqNTFKI6ChIulV3WWYAGQUqW5gnAP0R0cjmuwjUlu8 zm544uiB2LmRDzlakReNo2Wf91IsV4b7ZhYs2qp4KjhMMqsvpZcQQ7ciK4TMasctpgoB XoWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=UO9LRJwzqqduqzNHjgLRd9IRZdQPAiMYmv3yQW4+S8Q=; b=VfvWiS7X/yKvtyety7Pb0XB2clfnUEkioQ2vL7D6EDAnPxdS5yEoBgqkHKsEZH8ut3 OxyfbQSG+CZM+P1Qhm2lTL+4aLeXfSKRm0cRM1jc7ygoVUA9cx1BFvnS1xZSLjDPqKlY CwWjVyDL7Nt9M6ug7yR3KZf9U6uHndzo1iU/pbcI8crHMdxm+WtLmGPi9yWm73I16B2S 7v2Q/XNmbGLazDD1FaSZ3AfJrr1BAGbVT8ubXTUtDUxJd2NTxXMCySsyxI0Zu3Y8Y3+n F+jSeoTTauqvDQEAe9VW4966wSa6b4jaUhfSGs2nSABhBHw3au+GbBb+gDWCK2maYyYI 79zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=TkSSLKIU; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l17-v6si270896pgu.79.2018.08.16.14.04.52; Thu, 16 Aug 2018 14:05:08 -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=pass header.i=@chromium.org header.s=google header.b=TkSSLKIU; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726023AbeHQADw (ORCPT + 99 others); Thu, 16 Aug 2018 20:03:52 -0400 Received: from mail-vk0-f65.google.com ([209.85.213.65]:40047 "EHLO mail-vk0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725895AbeHQADw (ORCPT ); Thu, 16 Aug 2018 20:03:52 -0400 Received: by mail-vk0-f65.google.com with SMTP id q184-v6so2150172vke.7 for ; Thu, 16 Aug 2018 14:03:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=UO9LRJwzqqduqzNHjgLRd9IRZdQPAiMYmv3yQW4+S8Q=; b=TkSSLKIUSlbNOvlckRYMm0C8WjLhhAwg16J0wh3UxUsJjr3nT/1bizrsNzWcRhKAWT U/FzsrTm+9uh5u+du8UMlh3cp4nTq6RUyF53t23AHW7Gk98UehgNpOKH7md28aKrOpmz AGsKDM0d81CfHcndUL9CN6phFaytmByKnCtjM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=UO9LRJwzqqduqzNHjgLRd9IRZdQPAiMYmv3yQW4+S8Q=; b=Veq57SkZP2WHyV1TyT6S47m01E4v9CoIrM9uAbFEEg6NFQjeAD+jeVnmHSRVL8Cn67 ZHKxH5pWQZpx8ZUHT3RBNqkSasC3I96kj8kPFhUTLlrB0TDuQzwtH3JBvhWhp5Z1XNDc /gxK2WwCsawUPTw9cwfBnEouabMjZpCudui7wCJ3siEpB+8463Vb4YvrF6Ny0d4q6DZx 1K13by95L3YyeMBsmGBfb1Hw55LPBoUSDWGQyNw3ezUtOC/G0mJ4ihnffYanYknxIKME dBuzt6KYG6Z+8bfJuTk32sNGwbs7D/pM5IXtVmDj8M4Ub4qatFuNj8EybQzVJv3mhOfC KW4g== X-Gm-Message-State: AOUpUlG+ZGaKdVWPE1k8490Y4tga6vQIIwvt8zPsT5GTyZb5uR2i7Zpp UA6+gjUapHhBLxcRJxNUyCPLscW7TJ6ilg== X-Received: by 2002:a1f:61c5:: with SMTP id v188-v6mr20586760vkb.19.1534453391273; Thu, 16 Aug 2018 14:03:11 -0700 (PDT) Received: from mail-vk0-f49.google.com (mail-vk0-f49.google.com. [209.85.213.49]) by smtp.gmail.com with ESMTPSA id b15-v6sm57067uak.40.2018.08.16.14.03.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Aug 2018 14:03:10 -0700 (PDT) Received: by mail-vk0-f49.google.com with SMTP id v72-v6so2148965vkd.4 for ; Thu, 16 Aug 2018 14:03:10 -0700 (PDT) X-Received: by 2002:a1f:a784:: with SMTP id q126-v6mr20905354vke.70.1534453389723; Thu, 16 Aug 2018 14:03:09 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1f:cd5:0:0:0:0:0 with HTTP; Thu, 16 Aug 2018 14:03:08 -0700 (PDT) In-Reply-To: <037cd5e2-0d3b-c20f-a444-99087b86706b@codeaurora.org> References: <20180814170617.100087-1-dianders@chromium.org> <20180814170617.100087-2-dianders@chromium.org> <20180815111318.GY2414@sirena.org.uk> <037cd5e2-0d3b-c20f-a444-99087b86706b@codeaurora.org> From: Doug Anderson Date: Thu, 16 Aug 2018 14:03:08 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/4] regulator: core: If consumers don't call regulator_set_load() assume max To: David Collins Cc: Mark Brown , linux-arm-msm , Bjorn Andersson , Stephen Boyd , Liam Girdwood , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Aug 16, 2018 at 1:58 PM, David Collins wrote: > Hello Doug, > > On 08/16/2018 01:07 PM, Doug Anderson wrote: >> I'll work on either adding more regulator_set_load() calls to clients >> or perhaps disabling the "regulator-allow-set-load" for a bunch of >> rails. David: presumably if we have a rail that we never need to be >> on-and-in-low-power-mode can just be left in high power mode all the >> time? There should be no advantage of being in low power mode for a >> regulator that is off, right? > > Generally speaking, yes, that is true on both points. The only caveat is > that there could be a minor power penalty if APPS votes for OFF+HPM and a > non-HLOS processor votes for ON+LPM for the same regulator. This would > lead to an aggregated state of ON+HPM when only ON+LPM is really needed. OK, thanks for the confirmation. ...so if we know that this is a rail that the non HLOS has no business dealing with then this would be a nice simplification so we don't need to go add code to all drivers everywhere when all they want is a simple regulator that turns on and off. Presumably we could also add code somewhere in Linux that would automatically vote for LPM for a regulator that has been disabled if we had to. -Doug