Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp7752881ybc; Fri, 29 Nov 2019 00:27:32 -0800 (PST) X-Google-Smtp-Source: APXvYqxBMnGI4U+TxvTAZ/QGbRQPNZu6VzVcE+6n370DoJ9vmNty+DIzCnDFQItpKECrqzvCXnkB X-Received: by 2002:a17:907:110f:: with SMTP id qu15mr59717941ejb.179.1575016052700; Fri, 29 Nov 2019 00:27:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575016052; cv=none; d=google.com; s=arc-20160816; b=RcO4NPm2WsIzOsIp9Q1xMZ1Q7zMGK7F5TOua7YWpoAv+R/Ly9tFu7kpcqL+VqaQir8 dX6FAB+fv8B4gH5/Y6bXUo8G35WFWLw7Esg14oFvh+muhr77IKJOq4TX0MT51gbPwOfX 5lUo5q0Yn9laWzhKhyoZOTrWtDB5ule6ezJ80CcnjknIChy7SVFVZctjp2b4rAEUdpD5 vKhizlHZfZtk0YeGNepiwoeSmS7bFHF4kRsqGM79FkoGhI7JvKU9faR+lf4TdMW/whNy fDpnp9/d3LvbWlBlyTmCJHBtd0D9qePHpF+iOS0qZYnrJColhfb/qLfatLZYL2WgLwKE LP+Q== 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 :in-reply-to:references:mime-version:dkim-signature; bh=rjwO1FwEHwaRe98ERPpJb4XhcKjr+G42GNFc2FaNjPY=; b=nwKDPB3B+PfDJUFwqSLrNMSiNrgpmVL/QLNEDK2Z+gBt17KKehHZXDrSO+IMmickQw 4yObf+POwqgW4JnAGc6pn3Y10SS6iyLxV0Ed9mSOy8hCpcMYfwpNNbrWs1vL892Z9ZoL NK8ps6AISQD5DSigc302UiBFQdxe7+A7jV58iB19QmRiFZhcMC6tSjkMxPIYnAF4iG+u iKqgdcSHLSVBRlZRY8S5Reuv4CWckCYaGczEDy0A97/56w0uhe0fZhRoXn6AYD8gckPa rJR+hQ9eW6vOhsBuxjzVwiV23H9H8wTWJHNKKXgaY+xLimZ5qEd9vDY/COj2EEkiJYUO vGlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="x2h/3aiI"; 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 l12si16768978edk.60.2019.11.29.00.27.07; Fri, 29 Nov 2019 00:27:32 -0800 (PST) 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="x2h/3aiI"; 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 S1726810AbfK2IZ7 (ORCPT + 99 others); Fri, 29 Nov 2019 03:25:59 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:44605 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726763AbfK2IZ7 (ORCPT ); Fri, 29 Nov 2019 03:25:59 -0500 Received: by mail-lj1-f193.google.com with SMTP id c19so4021431lji.11 for ; Fri, 29 Nov 2019 00:25:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rjwO1FwEHwaRe98ERPpJb4XhcKjr+G42GNFc2FaNjPY=; b=x2h/3aiIvlsEahqJZ/3btpCdFt4VmD5TTiD8V3r9A2XcxM+kI1n2O1vDNFBYlvTc4C w03cOACsyuypSasUEovKSkK/gGhjMthY2sd9WW6J6zzIDOjiv7jea8myB4sLc32X3Ku2 3nMKKMhEsspzTb1EznV4qpbStmbAZAZLqa6q59CBYHkXtJLQjkZnU2cxccmLf6c4Fp2P 6J4x1pyWdOvEQgZpQU1+NGwmCl00WWd0yeemqpqhQbgDhb8A1vjdMsCfCfE4Qlg6ZJV/ +YGEUzgyDtGQYsg283APPSsnaZGLJfNBSW8zIJvjX+n2sWC1PAMmgDXuUOEMBB5l6J70 WqFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rjwO1FwEHwaRe98ERPpJb4XhcKjr+G42GNFc2FaNjPY=; b=UvsBJwihDWmiX8pFvh9KmAWwPkISQjTe0pUoRnuPuD5f3z9cTGbdquHQfvfVNdnauk d8pzZZMqy0gszJZn7bb7NWu4SFNB2Yfo4raqtCwMCKOqHA8A5/eeMjIgnYEejS8CfiQI 5QKbsoS3MON7oR2xXxCXGcOH9tN9tYMMFHZLFdYujv7bmplaJ3cTKI2YoEz4B60WBFI9 TXl/4mcBNDCAcfHCLlBf1kAZ5u9VoW3MCqbAFjL6hRa8cGfbuWXae8JIjSXR78/n1xNc nmCuq4S2xvykddk1Z3Z6RYIzz1Xjxjk+aUffyWv6JSSorX0+n2WHC8rOdxg3Ujl+3PTO jVVg== X-Gm-Message-State: APjAAAWlM8ZoBO7ccaTOKov/VR839TqYYyO9yxTsEgTAhu1W7pyJ37WX RyPAKlR2t6+t9yPfoaNqH36YwKxQyOMeqIP7HFUbsw== X-Received: by 2002:a05:651c:102a:: with SMTP id w10mr7850453ljm.77.1575015956975; Fri, 29 Nov 2019 00:25:56 -0800 (PST) MIME-Version: 1.0 References: <20191127135932.7223-1-m.felsch@pengutronix.de> <20191127135932.7223-6-m.felsch@pengutronix.de> In-Reply-To: <20191127135932.7223-6-m.felsch@pengutronix.de> From: Linus Walleij Date: Fri, 29 Nov 2019 09:25:45 +0100 Message-ID: Subject: Re: [PATCH v2 5/5] regulator: da9062: add gpio based regulator dis-/enable support To: Marco Felsch Cc: Bartosz Golaszewski , Support Opensource , Lee Jones , Rob Herring , Liam Girdwood , Mark Brown , stwiss.opensource@diasemi.com, Adam Thomson , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org" , Sascha Hauer 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 On Wed, Nov 27, 2019 at 2:59 PM Marco Felsch wrote: > Each regulator can be enabeld/disabled by the internal pmic state > machine or by a gpio input signal. Typically the OTP configures the > regulators to be enabled/disabled on a specific sequence number which is > most the time fine. Sometimes we need to reconfigure that due to a PCB > bug. This patch adds the support to disable/enable the regulator based > on a gpio input signal. > > Signed-off-by: Marco Felsch Overall I think this is fine, it's a solid use case that need to be supported. > + struct reg_field ena_gpi; Maybe just add some doc comment to this struct member? IIUC it is a general purpose input that can be configured such that it will enable one of the DA9062 regulators when asserted. (Correct?) Yours, Linus Walleij