Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4578762pxu; Tue, 20 Oct 2020 23:10:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb+KkSzfNGTdHt4byr0MWZHYpGIe/omHDcPLOWKvFwG7HmXEcbnZRSBX4m+rAUtaI7fBED X-Received: by 2002:a17:906:453:: with SMTP id e19mr1920294eja.391.1603260644279; Tue, 20 Oct 2020 23:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603260644; cv=none; d=google.com; s=arc-20160816; b=FIrjfS+v0aK3tKt0pEh9fcGb2EGmLfl8Vn3KJeN7uvB3sWdIKrSn6oYkHYQ3odCENp wT13bmVzAqAkyH40Kijpr6Efc+slUgwfpHmLl0YXVtcDuRGDtoJxNTThgUQ1A6nHfVcp OnQsuDf9bMola5/W5Y8+gpUredHGrGzOeYRwS92JJx42n6oHRonfCzCtW0yt/9RNF9SQ YCIPi4KnybrA6O7MYDcN/zzPGv3at9QLyZwc3Wiuo+r7Zc4Gi5dh2QRcf5IhaPPiFbDN snSWmgJ+h1BRUnDaE/aQriF5pHaqZgv/l3oQqZ01hBiGrsAS+gSzLxdpXv9tefFg7C8R 3+mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=EVRjWHwUI3qAC7MdcslQD3gxvqUi3/V4Ck8MR6+KZvA=; b=QlTftYEJtQGjaRXD0Cey028dHt+J/Z2YK3HeVERc87KBCEFzLRukqlQ7SeO40Hg8Ix wHgrPi2vPZ4YBfs2T3o6o8dC3JJMgqLkzkVPlqEfT/RMgwqD/A+R4w1+dE04/nYVkhko ltCNkvkUA5PtsDEKzY62eR9Hk1F5vKSkwozL+1SrGJyBNNsAt+2W96ITKns08Vxh/zJl i9/Kyg67pt0wILYzoFbYLtzbGlSOwFIierZhbSUSj947FTcdsbqGZy9YYw6/YxQlf52G KIy8bbBNfIpfhTjYtSXPlt03IsaXuocSePfKuw1O1Op7LU8pTACwQ5DrgYydEjdAKKy3 O3CA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k9si724381edv.487.2020.10.20.23.10.21; Tue, 20 Oct 2020 23:10:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408535AbgJTPIw (ORCPT + 99 others); Tue, 20 Oct 2020 11:08:52 -0400 Received: from asavdk3.altibox.net ([109.247.116.14]:40452 "EHLO asavdk3.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731500AbgJTPIv (ORCPT ); Tue, 20 Oct 2020 11:08:51 -0400 Received: from ravnborg.org (unknown [188.228.123.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk3.altibox.net (Postfix) with ESMTPS id 34794200CF; Tue, 20 Oct 2020 17:08:47 +0200 (CEST) Date: Tue, 20 Oct 2020 17:08:45 +0200 From: Sam Ravnborg To: "Alex G." Cc: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, Jernej Skrabec , Thomas Bogendoerfer , Neil Armstrong , David Airlie , Mark Brown , Jonas Karlman , open list , Andrzej Hajda , Rob Herring , Laurent Pinchart , Mauro Carvalho Chehab Subject: Re: [PATCH v2 1/2] drm/bridge: sii902x: Enable I/O and core VCC supplies if present Message-ID: <20201020150845.GA1913775@ravnborg.org> References: <20200924200507.1175888-1-mr.nuke.me@gmail.com> <20200928173056.1674274-1-mr.nuke.me@gmail.com> <20201020071628.GA1737816@ravnborg.org> <5c21a4a4-717c-9f8a-9764-6e3fb9554e46@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5c21a4a4-717c-9f8a-9764-6e3fb9554e46@gmail.com> X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=S433PrkP c=1 sm=1 tr=0 a=S6zTFyMACwkrwXSdXUNehg==:117 a=S6zTFyMACwkrwXSdXUNehg==:17 a=kj9zAlcOel0A:10 a=Q3oUw9V0dMcNOY3BEmcA:9 a=CjuIK1q_8ugA:10 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alex. On Tue, Oct 20, 2020 at 09:01:27AM -0500, Alex G. wrote: > > > On 10/20/20 2:16 AM, Sam Ravnborg wrote: > > Hi Alex. > > [snip] > > > > > > > > > > > diff --git a/drivers/gpu/drm/bridge/sii902x.c b/drivers/gpu/drm/bridge/sii902x.c > > > > index 33fd33f953ec..d15e9f2c0d8a 100644 > > > > --- a/drivers/gpu/drm/bridge/sii902x.c > > > > +++ b/drivers/gpu/drm/bridge/sii902x.c > > > > @@ -17,6 +17,7 @@ > > > > #include > > > > #include > > > > #include > > > > +#include > > > > #include > > > > #include > > > > @@ -168,6 +169,8 @@ struct sii902x { > > > > struct drm_connector connector; > > > > struct gpio_desc *reset_gpio; > > > > struct i2c_mux_core *i2cmux; > > > > + struct regulator *iovcc; > > > > + struct regulator *cvcc12; > > > > /* > > > > * Mutex protects audio and video functions from interfering > > > > * each other, by keeping their i2c command sequences atomic. > > > > @@ -954,13 +957,13 @@ static const struct drm_bridge_timings default_sii902x_timings = { > > > > | DRM_BUS_FLAG_DE_HIGH, > > > > }; > > > > +static int sii902x_init(struct sii902x *sii902x); > > Please re-arrange the code so this prototype is not needed. > > I'd be happy to re-arrange things. It will make the diff look a lot bigger > than what it is. Is that okay? The best way would be to split it in two patches. One that is pure code movement and one that does the actula changes. Sam