Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1820470ybl; Thu, 15 Aug 2019 01:39:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzhpUCAt6Yu+P9O14X54Q6s7oW/0Ko5BMxq6zRTH51iOmAdZG7XDlW7MM0Z7Cfxhtm1gIfZ X-Received: by 2002:a17:902:166:: with SMTP id 93mr3361515plb.195.1565858368339; Thu, 15 Aug 2019 01:39:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565858368; cv=none; d=google.com; s=arc-20160816; b=irXCtPJ5Rw9E2QcQXdJTzzOkLa42+4cALQSDH7R/0Ob2le94G3pJKliVMV84fzdd71 TQAM2ZAwB5W5Nt4JUwJgd77Rw2z3eFVsHZ6XynMaZ6ilK77y6kE9cSC2U/zTLDwc1ffH tXoQ+CIU08ZaQAvXsX3TLu5MhuWrUOxhY9e8YvfFAgBH/YvIBfhb6Of8bwKxlJN82HPJ 4inP1oncvTGXrFDCiNlmymLtfg5rRzyvJS3fzflziLV5gHa5SikokAcymYXh0FlS+a9W uJyAnqpSfr2EXjYGea4BN3HEkB0K0BZxkUZWFp+CQdCAI4Cau9LWcECe40cSLnaj4Vly KPTA== 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=rNifjZHy9qpEjr0GVjpJDJGNo3i2//VHyToq2Gi1I5o=; b=G6TBbfAtqjNgJy/UQuXQUiAEclk8Fn64qGYXaICRQh519YyNghbcbqpllckQaPZALv YNKCr744+U6ve9OBa/YpZgHmGoO7ASOz91gabmJbmvd8FfHE5BNmy3QUwoqb9ESIoyDL 0v0FF7r+K7zTrzgFncsTQYmA6EuYA0DbB33ioM+obr7KaHOQVhBrvKOdwQ+zAYQtsPPc Mg7lEk2Lf4rv2TOgzS4DYB7EPkCQodpe46urI1NJGysJij+I2Ki9JqgZ0/zc8d2QWgdQ RwBRBXjiqmfsIufOkyU/4nnoYTfnqVBKFlnB7tD8swgH3Mv3Swm3ZzE48/hQ3DiOKrCp ZKLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OlwYctZR; 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 m10si563369pjs.85.2019.08.15.01.39.12; Thu, 15 Aug 2019 01:39:28 -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=OlwYctZR; 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 S1730892AbfHOIW7 (ORCPT + 99 others); Thu, 15 Aug 2019 04:22:59 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:41599 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729668AbfHOIW7 (ORCPT ); Thu, 15 Aug 2019 04:22:59 -0400 Received: by mail-lj1-f193.google.com with SMTP id m24so1529012ljg.8 for ; Thu, 15 Aug 2019 01:22:57 -0700 (PDT) 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=rNifjZHy9qpEjr0GVjpJDJGNo3i2//VHyToq2Gi1I5o=; b=OlwYctZRlIMTjnglbFz8m9UPeYHKRsw+HS0cqHa/AZrP3rCVWXzJ5gTfiLfl40hRWX cX599NGltZt5oVIqpRPPhMuFrdyeOZm97dwPU+CAxT5l2Fmeh/ZSbFOCb/7nY3jY2z0d CIjrlvHSyzJD4VsaZOWNL8WGygu6Rqv8F2u1V5+5Vq2p/D6QfBUPCY82EgeyCZmGRItF sjGHEgbToBdt25gqu0ZmUeiwWbzQ33NvDXBHQd6ysLH7sZmeFJ9duV5eFYsKV7RiV72h eNWFtqLstPI4m/mvgNB4pqyITfo+BGeWUfVdKBuxzmRIaxr6JBuXwM1U7lK/HLoL9KU5 xc1w== 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=rNifjZHy9qpEjr0GVjpJDJGNo3i2//VHyToq2Gi1I5o=; b=T1Ey7DHiLV8FDaEerhpNRiDxVzoLHZ8PQ8A+w4TDfoqKttpJoDkWfIL0FvuMUQ5bJe db2HIporhWcUhySdcTpNw7SjKi34r2kLnLjGbbxigxlE6eeyGRPGvBq3rz/yFCPWw0el S/XJsF5Run0UAsmaKL4dFfftHbXvgUviaLGx+AAwOq8F7B4DjAzkIvYNbeYgxPIkmZ5K gqXaglMDAQWewqSL0dWR4e1lnwQbnWpgPUIpEzf+j9E5CjhbhrwYbCuzUkWBTjTdPPBr ABw9f1RRkgoBdwmEAtjpPX9YhVeRe3yqYQTYpZxvGysP+/06kHS9yGMj/ALK8Zfz6aW5 swoA== X-Gm-Message-State: APjAAAViZvothvmrKFbvFHdrn/HFH0FrFjp7TrVqCZBEjhbXkZK43TVv drEQNgrVI3CkkDwXtz7fAbiaBboMyVGK1ML2bcbeWA== X-Received: by 2002:a2e:781a:: with SMTP id t26mr2027257ljc.28.1565857377246; Thu, 15 Aug 2019 01:22:57 -0700 (PDT) MIME-Version: 1.0 References: <20190815004854.19860-1-masneyb@onstation.org> <20190815004854.19860-7-masneyb@onstation.org> In-Reply-To: <20190815004854.19860-7-masneyb@onstation.org> From: Linus Walleij Date: Thu, 15 Aug 2019 10:22:45 +0200 Message-ID: Subject: Re: [PATCH RFC 06/11] drm/bridge: analogix-anx78xx: add support for avdd33 regulator To: Brian Masney Cc: Bjorn Andersson , Rob Herring , Andy Gross , Andrzej Hajda , Neil Armstrong , Rob Clark , Sean Paul , Dave Airlie , Daniel Vetter , Mark Rutland , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Enric Balletbo i Serra , "open list:DRM PANEL DRIVERS" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org" , MSM , Linux ARM , freedreno 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 Thu, Aug 15, 2019 at 2:49 AM Brian Masney wrote: > Add support for the avdd33 regulator to the analogix-anx78xx driver. > Note that the regulator is currently enabled during driver probe and > disabled when the driver is removed. This is currently how the > downstream MSM kernel sources do this. > > Let's not merge this upstream for the mean time until I get the external > display fully working on the Nexus 5 and then I can submit proper > support then that powers down this regulator in the power off function. > > Signed-off-by: Brian Masney > +static void anx78xx_disable_regulator_action(void *_data) > +{ > + struct anx78xx_platform_data *pdata = _data; > + > + regulator_disable(pdata->avdd33); > +} (...) > + err = devm_add_action(dev, anx78xx_disable_regulator_action, > + pdata); Clever idea. Good for initial support, probably later on it would need to be reworked using runtime PM so it's not constantly powered up. See for example how I try to push down power dissipation of sensors in 3d838118c6aa. Reviewed-by: Linus Walleij Yours, Linus Walleij