Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2591811imm; Wed, 16 May 2018 15:49:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq+fBBYlvSYzj+vdpsPsuxSGUDjvDfKL8f/CxXZFo5X0tBce6VhMb8IPs3ClMLxR196IN1s X-Received: by 2002:a63:8c5e:: with SMTP id q30-v6mr2202755pgn.160.1526510949609; Wed, 16 May 2018 15:49:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526510949; cv=none; d=google.com; s=arc-20160816; b=k6xG7k8DNJsmfUU43F+829g/Q6ORGgYv9OI1s9n6SKcKbn0czEM916o8f+tIN8nVWe c6xacJeEvGoI2dSJdTXf/ScsgWFS8uhI+yIFFnvyo5v/7LVBJ6Qtq8VIfDM11rNPPep6 iG35jN1rQ4L/dJxh7ZX1XoKn9s/8kPoM9S3EPDzKw1V3R5t7d65g4Zb6Rd7RhxtyQgUZ V9ziiH64JjH7vIE+7QMM7HkbU4phwAxoSiXCOEGmcnEdi7457W6zCaVs1wkC+RPhfhG/ weUJlE7CeWCIMjGkQOtgh+53l6viYslOCfLD6o4GM+I5Ag5qc96l8u7mXqEviIzwQz3U FGVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=wp9yVBatgiupi2zLxGIaQ1EuOogrIRB4HlHlt0YGInE=; b=Ydau9sxIOSArKHaxoRzCMc8tYTOqtN45wZ3vvuDc3t2qFtQW7wQ3DzS24fVJCS1d3r OYC4UXkrgzTdWqD6WUZgtiqZqCd0xBjUrL9GxeF86vcUIBNBGYr0pmDO7f5slfYD59Q4 r9yXTW35RQLP0tGFh3l0pIBv0l+qtakxpzkP+dQzQK/zdSJXW2Xt4NjXNZbHEfUwGrxn j01dXy38yRATxTcLO/8FgLuz22WhSK+L71oZOW+uhj5RXmOvqqEFpFJfUdo1iLFSNqkB lntfgUOpGddrPByA3gwRT0SagL8+RnEJmdxCKeFtMidqg8Kd2Q7uNVLE2+jl3jxLIunS wBIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=eQG40Up3; dkim=pass header.i=@codeaurora.org header.s=default header.b=eQG40Up3; 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 o33-v6si3420541plb.432.2018.05.16.15.48.55; Wed, 16 May 2018 15:49:09 -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=@codeaurora.org header.s=default header.b=eQG40Up3; dkim=pass header.i=@codeaurora.org header.s=default header.b=eQG40Up3; 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 S1752145AbeEPWr0 (ORCPT + 99 others); Wed, 16 May 2018 18:47:26 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:43940 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751406AbeEPWrY (ORCPT ); Wed, 16 May 2018 18:47:24 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id D0D1660881; Wed, 16 May 2018 22:47:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1526510843; bh=7rP4PkD4jyKkKq2Y7s8YD01IFLYwDNvda+ync1ePk4s=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=eQG40Up3CNwcEj4aByHdl7lohJwhVxXfeo3bs+rExhvs7Uy760WeIAV4T35rMjeGK tB9kFAmX85TWtrxD+aELZ/cM5B7pTNynOc0+ZbB56pI3eZ3g5tbzLOuorCqOQ6VplY 2X82Xg1m6QaXtlPKi9v3Y8ROkAYmXyxe30FnX0s4= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [10.46.160.165] (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: collinsd@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 1F9D160209; Wed, 16 May 2018 22:47:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1526510843; bh=7rP4PkD4jyKkKq2Y7s8YD01IFLYwDNvda+ync1ePk4s=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=eQG40Up3CNwcEj4aByHdl7lohJwhVxXfeo3bs+rExhvs7Uy760WeIAV4T35rMjeGK tB9kFAmX85TWtrxD+aELZ/cM5B7pTNynOc0+ZbB56pI3eZ3g5tbzLOuorCqOQ6VplY 2X82Xg1m6QaXtlPKi9v3Y8ROkAYmXyxe30FnX0s4= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1F9D160209 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=collinsd@codeaurora.org Subject: Re: [PATCH] regulator: core: Allow for regulators that can't be read at bootup To: Douglas Anderson , broonie@kernel.org Cc: mka@chromium.org, Liam Girdwood , linux-kernel@vger.kernel.org, "linux-arm-msm@vger.kernel.org" References: <20180515220717.254950-1-dianders@chromium.org> From: David Collins Message-ID: <4547e1cb-a39c-decd-9384-4e2c6d28f64d@codeaurora.org> Date: Wed, 16 May 2018 15:47:22 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <20180515220717.254950-1-dianders@chromium.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/15/2018 03:07 PM, Douglas Anderson wrote: > As discussed in the patches to try to support the RPMh regulators [1], > the fact that regulators are write-only means that its driver's > get_voltage_sel() should return an error code if it's called before > any calls to set_voltage_sel(). This causes problems in > machine_constraints_voltage() when trying to apply the constraints. This problem specifically arises in the latest RPMh regulator patch [1] if regulator-min-microvolt and regulator-max-microvolt are specified for a VRM managed RPMh regulator device but the qcom,regulator-initial-microvolt property is not provided. Therefore, listing qcom,regulator-initial-microvolt is a way to avoid regulator registration issues. > In this patch I propose the error code -ENOTRECOVERABLE. In errno.h > this error is described as "State not recoverable". I'm fine with this constant. Hopefully Mark is as well. > If this patch is accepted then we'll need to update the latest RPMh > regulator patch to return it. The current patch returns -EINVAL which > means that the regulator always fails. I'll make this modification if needed. Take care, David [1] https://lkml.org/lkml/2018/5/11/703 -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project