Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp258985ybl; Thu, 15 Aug 2019 16:52:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxoto7CG8XjNHYSG5K9DdXLaudkJKmVbkWehd7O+DSxjeq5EjDTfEmWc1KUTmBfqJZH3Quh X-Received: by 2002:a63:de43:: with SMTP id y3mr5456414pgi.211.1565913158167; Thu, 15 Aug 2019 16:52:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565913158; cv=none; d=google.com; s=arc-20160816; b=H2xR2al1lZFIVWsilr59Rwph5rr16fWP3xgXxdMHsKT8UztjyrvWrGyL39V4C3LTy4 dRfhEVmD41Vqqbdzuf6gT7MYSm+Q2SSHFqLZRtJW9VRgXuFImgPok6PlHp9GOLZElJwg lS0czEZOai8DnHtTdgunIKy2Re3Tm/WEHjOHB74H8r71/q59gfskmjNb4NrWUDm47e1D DsJIaa5TdwGqP7896MT3xCS7xdgloGkwg4Ajj0BWbLntQvFhWkm3C+8GY1o7epY2h5jR AZ2z5glp1pQBPpkEdKYWc1ePl1kVN+hCICyLMFr7KYWenMGBKg2w3MG+48DaqrvBQ8UP jRaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=aWP68CCW3AaFPD/SRfXw8ucTh3mWPeVkzQtcU8lmZ6c=; b=DqrvoR2t9IvLySK6LJ7zbahgP28oEdwZl0jmb+fmALQCwx0d6ToeUpEE5b1wH0hd39 0n8YtsFoafbZSYg5aI7A/OC8ShOcdjib5qUxacEh30dNnf2A/cEAxQQTgQLNZ+plO4j7 UKog49bgZ46tKLJiVEwAlOyRe3r+sZWogY0E9iS0LSpsjVmx0ijdvfDCbRVp1uv6AaZV GziZjqyFztigZqj9Kz59v8dzfmVTTi3E9aYhKg5ASbJALdPfPoS4AGNejflW9NT87xGN xgHchoVwPTGLHEPQ6keqOoQv2In2lmwQKMqpd3iMQH6tdWNVGh6s82L3JkO0nZ5JrNkZ G2bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b=kbBRmB2A; 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 g17si2770459plo.406.2019.08.15.16.52.22; Thu, 15 Aug 2019 16:52:38 -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 (test mode) header.i=@onstation.org header.s=default header.b=kbBRmB2A; 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 S1733271AbfHOWvJ (ORCPT + 99 others); Thu, 15 Aug 2019 18:51:09 -0400 Received: from onstation.org ([52.200.56.107]:49700 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730406AbfHOWvH (ORCPT ); Thu, 15 Aug 2019 18:51:07 -0400 Received: from localhost (c-98-239-145-235.hsd1.wv.comcast.net [98.239.145.235]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: masneyb) by onstation.org (Postfix) with ESMTPSA id D89F23E998; Thu, 15 Aug 2019 22:51:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1565909466; bh=GlErRnlbnhtp3xOCD8QDuEBNzdpIzm/CEjl/t+YePi4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kbBRmB2Ag3E2vXFKqyIe3P3JBKnDCf2Gw4yfO4jcxecQTEdBlDWG3wDJ+vxPQ+XQN a1BNwFsIm8w50ApVariWEfK20tN4ggz3LwN3Ya5I93TAxtpu1h1nThdsONxNN6uX7o QkSapavjafeT34+PmnZN/YYXcO0hocqwBz5MLwfA= Date: Thu, 15 Aug 2019 18:51:04 -0400 From: Brian Masney To: Linus Walleij 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 Subject: Re: [PATCH RFC 06/11] drm/bridge: analogix-anx78xx: add support for avdd33 regulator Message-ID: <20190815225104.GB32072@onstation.org> References: <20190815004854.19860-1-masneyb@onstation.org> <20190815004854.19860-7-masneyb@onstation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 10:22:45AM +0200, Linus Walleij wrote: > 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. Yes, that's my plan. I suspect that I may have a regulator disabled somewhere so I was planning to leave this on all the time for the time being to match the downstream behavior until I get the hot plug detect GPIO working. > Reviewed-by: Linus Walleij Thanks, Brian