From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Rutland Subject: Re: [PATCH 1/5] regulator: of: Add regulator-initial-mode parse support Date: Fri, 10 Oct 2014 14:17:59 +0100 Message-ID: <20141010131759.GB6004@leverpostej> References: <1412775847-15213-1-git-send-email-javier.martinez@collabora.co.uk> <1412775847-15213-2-git-send-email-javier.martinez@collabora.co.uk> <20141008142511.GA4609@sirena.org.uk> <54354C7D.7090104@collabora.co.uk> <20141008151220.GE4609@sirena.org.uk> <54356666.4090003@collabora.co.uk> <20141009102717.GG3869@leverpostej> <5436A793.6090204@collabora.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <5436A793.6090204@collabora.co.uk> Sender: linux-samsung-soc-owner@vger.kernel.org To: Javier Martinez Canillas Cc: Mark Brown , Doug Anderson , Chanwoo Choi , Olof Johansson , Chris Zhong , Krzysztof Kozlowski , Abhilash Kesavan , "linux-samsung-soc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" List-Id: devicetree@vger.kernel.org On Thu, Oct 09, 2014 at 04:19:47PM +0100, Javier Martinez Canillas wrote: > Hello Mark, > > On 10/09/2014 12:27 PM, Mark Rutland wrote: > >> > >> Well, is not fairly obvious to me. One can also say the opposite, why the > >> kernel is documenting a DT binding that is not (currently) implemented? > > > > Checkpatch will complain regarding undocumented bindings, so from a > > pragmatic point of view the binding must come first. > > > > Personally, when I read a patch series I do an initial pass in-order, > > and having the binding first makes things clearer. I might have some > > questions regarding the binding that the driver answers later, and it makes it > > easier to spot undocumented properties or conventions used by the > > driver. Doing so the other way around usually leaves me with more > > questions at the end. > > > > Thanks a lot for the explanation, it certainly makes sense then to have > the DT binding before. I'll propose a patch to add that information to > Documentation/devicetree/bindings/submitting-patches.txt so people > (like me) who didn't find it obvious can know what the convention is. That sounds like a good idea; yes please. Thanks, Mark.