Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3763077imm; Thu, 17 May 2018 14:24:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqRsJw9DYOGoKh8Jn/g/qzsE8cUoaIhQhekB4qN+91VuC6iz7awGJrX8nvzK65mpk+So36O X-Received: by 2002:a65:64c8:: with SMTP id t8-v6mr5219074pgv.414.1526592245114; Thu, 17 May 2018 14:24:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526592245; cv=none; d=google.com; s=arc-20160816; b=yiV6ojid713Od1210Rmf2A88YDPAbvotXl8GZMoYtP+Z/g8wL68YEBIlwwbjIk6EFK cl/OZQBQ51yleSRcHnQdQEd+anW53V7PpqVTkvQRjIahNRHFhePmJxWXt8e855AAUTm1 wKjSFOWqLB4xXWb/qWyC3GTFHoJO3uD8a5e5Ov8/iXFVjvZmVWLfnGmZHC6pOClLLlO1 vqmiC883QpGO1+m0Bk18f4KgG8Fc3xU0DMpL/4DWrhPOZq058it8r/VAogQl908nmO/C h7FclkpEuq1JxiZLd3zb0xpDidRnbxg91zPxSjotwvzMPrBNjnjbPfehTzdyE5xJz19h PP9A== 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:dkim-signature :arc-authentication-results; bh=KaWldk51RqLzQYwm1/nIH0DQf1Ta17GYlHIuqh2gquc=; b=H4uLvL0Im6KhPTNliBXKzCQbj190Jj8R07RsYAX6kIMZchcjhGRa59lc1bly+UALw3 4+/qtSd0GFuoPOouW6aq9+EwFzbJL9vYO6Ijxih3q4yKTInYoKybGgI3uriS+noUbXx1 ngl3GM0Q9ZdWeisvDqGtz/fDY0vMMuFTvXaEwftk0Bvm5Ex6hAnoJ3TqLYWAlcnEtpPk TkA8foDjwd8BqJgx0X5t10fVjwTSpdgy+cIIRrarbE6ELduNpQGeH8YhzvpPTikQG25r PwYpaFR2qBYLkbk3cpAVYzPhPWFHVcxqRoyrAPLH38arvVhlOdAdl/zfx+HCB0iV5D2i WfSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=BoPJsMBo; dkim=fail header.i=@chromium.org header.s=google header.b=Z1Y/f9Go; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n64-v6si4435730pga.265.2018.05.17.14.23.50; Thu, 17 May 2018 14:24:05 -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=@google.com header.s=20161025 header.b=BoPJsMBo; dkim=fail header.i=@chromium.org header.s=google header.b=Z1Y/f9Go; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752236AbeEQVXS (ORCPT + 99 others); Thu, 17 May 2018 17:23:18 -0400 Received: from mail-ua0-f193.google.com ([209.85.217.193]:43228 "EHLO mail-ua0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751843AbeEQVXQ (ORCPT ); Thu, 17 May 2018 17:23:16 -0400 Received: by mail-ua0-f193.google.com with SMTP id d4-v6so3953747ual.10 for ; Thu, 17 May 2018 14:23:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=KaWldk51RqLzQYwm1/nIH0DQf1Ta17GYlHIuqh2gquc=; b=BoPJsMBozoc3x7pRj2ZB/LukpT0wiB/adU7xPDVJsiO+yJF1s1cKgXYwyNrWzOHbb/ dN0Pa4cwdxolbsNhI1XKzAcz2BBOSxlAlAfFengJMWiAh4pnQ08KGMJavpYhwU9LDVNH UTZqFpH45FSeJzjzs9GcPkBIJKPqE5Qh3qzKJighGCxFzJ3Vcnm2nX22m0LTKDCO4d4Y pih3oaG9e8iBPZSfhLP+ZQrZ0ewWWr5jU6E0K82tPZjgbt1h/vkCubFUo+XFZzTl9KmH MByKJjRL9K/8ATftCUItfcPnwd+4uPWd4x7csBttKNZb+D0knOdlkyftmSUA/bvzRfIY QNzw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=KaWldk51RqLzQYwm1/nIH0DQf1Ta17GYlHIuqh2gquc=; b=Z1Y/f9GoFNawNOfho63epAV8FrmfIq3kFs9Oy6H8aps+Lhm8ivmK0RF0nhc8R8MsGD U0a3yAHqGHfmikwFITronogvmuw/nS3ezLR7E6PZt1oYiJ0QY9wu2W10egr02pNJI7Gr vbiOrVF9KZ9LPhgw0WDnwUIXaJmAncMPRFpP8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=KaWldk51RqLzQYwm1/nIH0DQf1Ta17GYlHIuqh2gquc=; b=bwni+v5SpInmjk0FcqJmnUY2XAEl5tANDRCCNb6u3ZHznNF3Uls5xdYWE54677tAPB sxbFOjQSm9bqYy89b7iBhdBnevUT/a3tfRks/nDbHiR8oCz6OCzenTcWo2oixbtVNRjW aYshps8g0YUNsdGZf2a8F1N2eL+XP3+eDpN3o2XubvbwQ8Tj6fcKkgsSmSnyiBAFZsXZ clqPOHc2tKXigj6DGssS+4fKlCdpcFilZ12UfyIOBqHO/obKbdKGKmZ07hqAkOoHZ4sK 7veleAsNVe0FnO53RDcJAtC6/KDWa2NwA2oiTUMmUUCVTaQMVd7bbaJ6P0q5RFr5kkbr 4INg== X-Gm-Message-State: ALKqPwc5rwkXkqBFWV390iYlGBfCuhmvCSAaTq9xVFY1TtkaHuUxwO6O 0QC/WZcFSa4VD8hJ6LPEh10HIGmp7i5nCRFCtBoO0g== X-Received: by 2002:ab0:504:: with SMTP id 4-v6mr5505033uax.135.1526592195609; Thu, 17 May 2018 14:23:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.48.82 with HTTP; Thu, 17 May 2018 14:23:15 -0700 (PDT) In-Reply-To: <3a4195365ab0d252fdf064d2300f45b9b777991c.1526088081.git.collinsd@codeaurora.org> References: <3a4195365ab0d252fdf064d2300f45b9b777991c.1526088081.git.collinsd@codeaurora.org> From: Doug Anderson Date: Thu, 17 May 2018 14:23:15 -0700 X-Google-Sender-Auth: kos2GJ0dIMl_GmMdGQ0ISnpHC4o Message-ID: Subject: Re: [PATCH v3 2/2] regulator: add QCOM RPMh regulator driver To: David Collins Cc: Mark Brown , Liam Girdwood , Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, Linux ARM , devicetree@vger.kernel.org, LKML , Rajendra Nayak , Stephen Boyd 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 Fri, May 11, 2018 at 7:28 PM, David Collins wrote: > +static int rpmh_regulator_parse_vrm_modes(struct rpmh_vreg *vreg, > + struct device *dev, struct device_node *node) > +{ > + const char *prop; > + int i, len, ret, mode; > + u32 *buf; > + > + /* qcom,allowed-drms-modes is optional */ > + prop = "qcom,allowed-drms-modes"; As per comments in bindings patch: this is a duplicate of your new attribute you added to the regulator core. Makes no sense to have a private attribute too with the same value. > + prop = "qcom,drms-mode-max-microamps"; As per comments in the bindings patch, I think we should move "qcom,drms-mode-max-microamps" to the regulator core. > + prop = "qcom,regulator-initial-microvolt"; As per comments in bindings patch: seems like we should get rid of "qcom,regulator-initial-microvolt" or move to the core. > + /* > + * Default the voltage selector to an error value in the > + * case that qcom,regulator-initial-microvolt is not > + * specified in device tree since the true voltage is > + * not known. Note that this value causes > + * devm_regulator_register() to fail in the case that > + * regulator-min-microvolt and regulator-max-microvolt > + * are specified in device tree due to > + * machine_constraints_voltage() bailing when the > + * get_voltage_sel() callback returns this error value. > + */ > + vreg->voltage_selector = -EINVAL; As per comments in other threads, adjust this comment and use -ENOTRECOVERABLE now. NOTE: I think this driver is looking really good now. Hopefully the above things should be quick to spin (even getting "max-microamps" in the core should be quick I think) and we can get something landed! :) -Doug