Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1246338imm; Fri, 17 Aug 2018 14:39:51 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxbj5//JFm51vT+uaX9t3E04XTPsS5NFnGLCcHDzZQ/Yp3P2YG6dMYoniN0kD06ol33JeyG X-Received: by 2002:a62:9349:: with SMTP id b70-v6mr38214607pfe.193.1534541991516; Fri, 17 Aug 2018 14:39:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534541991; cv=none; d=google.com; s=arc-20160816; b=fJ9gjhkZ2mF+m/8MZCJttqbgwrF9HTsu9odVz9zIuB4U87NTkN008qsORFf6Kib3Vw B8vgVA4X2maFCJMP3p4tKz3A/l7EeNcsfx1hDrmsG17gyh6L5BnJjiMNSBOnibeWY1WC ELlwp5lDYdOE4MMgQxyROIWuWJ/mbXgD2e/m89eQVQrc6c0tkgce9XpyCAutMpMWJmd+ Z8ETnl1C4eC8/MwZtJiercsou22Wez/oq92BkkcLo4OeB8KvBzFaPD1WiWhVZlODBpSN qYTysvw0Zyt536GYhaJV6Qx6XL2z+0JziKC1pBVP553vx5JrTslCFcOxulPG2buHZUeS um8A== 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=K8DxOqKOMR195VGzDvMwTuEKXaF8lZ6PT7Pf09W7Kzk=; b=fzH6f7owxAIPhzRlVLuOOPzTCuhg0G6qIxIkt9+jM9FYHogJrbGjDi1vyzxIowGUTw WNpCU7v/Hw1/Gw0GUrt89dj1Y5fcYky+EIp24bVoqPj8WqifvavbrCby5tg3aXik/0Gh udg3Lcxy7qlm9fOyF6bvqI9LYcZ7riKelOhY5MfrAJKvtsQXM1sr3GpR4nQLv1NH53ds cubZoyAGjpgrZw961lcLcb1p5j+GRBwg6oaXfZO6WsHO6XFX3rAQzT20f7v6AGgxHgF+ yMFZS/nMogafwRJofJyLJ/ajVCcs0o+OyF2vMmlHhM2S6FewzdX4w3nHdWfwghvZEeSv 4HRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TNHdzF4+; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u15-v6si3150557pfa.28.2018.08.17.14.39.36; Fri, 17 Aug 2018 14:39:51 -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=@linaro.org header.s=google header.b=TNHdzF4+; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728430AbeHRAne (ORCPT + 99 others); Fri, 17 Aug 2018 20:43:34 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:42058 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726661AbeHRAne (ORCPT ); Fri, 17 Aug 2018 20:43:34 -0400 Received: by mail-pl0-f67.google.com with SMTP id g23-v6so1300646plq.9 for ; Fri, 17 Aug 2018 14:38:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=K8DxOqKOMR195VGzDvMwTuEKXaF8lZ6PT7Pf09W7Kzk=; b=TNHdzF4+s0ZkwfSM61qq8ZcNaMSoySOEmzVGkbXwqJ3fCePSI4mktskjFuPMWRjUbq S/VvW2J47bsCHDzc1fn0A4zwOr4RjWU83XerdnoQFsfv2oN1OFJHeuv5S9H4sAyGfW3x QqUMZP1MqHn1wHFbaY0Oc5nQHuk9YxOR0y0xc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=K8DxOqKOMR195VGzDvMwTuEKXaF8lZ6PT7Pf09W7Kzk=; b=XsxcLD9kW8fEhj4TI2mTrUELgQeBfxp1y1L1QkMJh30uddefb19FO0uRCZPrrAeVrO 98f43n+CIQaxrUo+lS7ZkOIcuHO3kvwpuI1hL29Zrk3YatggowvqpAWxDuX5jdxrUWqA VngKFsc68x9QYwaanCs3iqdnrLNHJAdM7bxJy8xZIdp71TxpDO7AtJF/QsRQ71oF0bPK 7yS56Iu3H34iXRCU6ViItf5VA+rfC1EERFTsrrq1oUF5QQjGOtf3VapH5Sn0vcaxw08B 0ZbZlNj0qnNHofGQBrk8ABsOPOflNOI/2A3C+jjn78EaiF/d78fghr4AycOuG5wSYbFs +lHg== X-Gm-Message-State: AOUpUlFzv+SVjpB82rdpGuw3nGaKckbs3VWb7d4r+rc8TDvkopSkamCG ULmDVLtnxHNNaiHMK8VopcjFgw== X-Received: by 2002:a17:902:1101:: with SMTP id d1-v6mr35074768pla.131.1534541912250; Fri, 17 Aug 2018 14:38:32 -0700 (PDT) Received: from minitux (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id k73-v6sm3271939pge.18.2018.08.17.14.38.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 Aug 2018 14:38:31 -0700 (PDT) Date: Fri, 17 Aug 2018 14:36:01 -0700 From: Bjorn Andersson To: Douglas Anderson Cc: broonie@kernel.org, linux-arm-msm@vger.kernel.org, collinsd@codeaurora.org, swboyd@chromium.org, Liam Girdwood , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] regulator: core: If consumers don't call regulator_set_load() assume max Message-ID: <20180817213601.GT30024@minitux> References: <20180814170617.100087-1-dianders@chromium.org> <20180814170617.100087-2-dianders@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180814170617.100087-2-dianders@chromium.org> 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 On Tue 14 Aug 10:06 PDT 2018, Douglas Anderson wrote: > Not all regulator consumers call regulator_set_load(). On some > regulators (like on RPMh-regulator) this could be bad since the > regulator framework will treat this as if consumer needs no load. > It's much better to assume that a dumb client needs the maximum > possible load so we get correctness first. > > Signed-off-by: Douglas Anderson FWIW, we've had this problem on other devices as well; where the eMMC won't operate properly unless the supply operates in HPM. We've worked around this by specifying regulator-system-load for said regulators. Only drawback with that is that we use DT to work around missing features in the code. But at least the improved implementation will be backwards compatible with existing DT. Regards, Bjorn