From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guenter Roeck Subject: Re: [PATCH v3 3/3] DT: proc: Add runtime overlay interface in /proc Date: Fri, 8 Nov 2013 12:00:01 -0800 Message-ID: <20131108200001.GA26694@roeck-us.net> References: <1383923170-24914-1-git-send-email-panto@antoniou-consulting.com> <1383923170-24914-4-git-send-email-panto@antoniou-consulting.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1383923170-24914-4-git-send-email-panto@antoniou-consulting.com> Sender: linux-kernel-owner@vger.kernel.org To: Pantelis Antoniou Cc: Grant Likely , Rob Herring , Stephen Warren , Matt Porter , Koen Kooi , Alison Chaiken , Dinh Nguyen , Jan Lubbe , Alexander Sverdlin , Michael Stickel , Dirk Behme , Alan Tull , Sascha Hauer , Michael Bohan , Ionut Nicu , Michal Simek , Matt Ranostay , Joel Becker , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: devicetree@vger.kernel.org On Fri, Nov 08, 2013 at 05:06:10PM +0200, Pantelis Antoniou wrote: > Add a runtime interface to /proc to enable generic device tree overlay > usage. > Hi Pantelis, > --- > fs/proc/proc_devtree.c | 278 +++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 278 insertions(+) > [ ... ] > + > + /* start at 256K at first */ > + if (od->alloc == 0) > + od->alloc = SZ_256K / 2; > + I have to include to get this to build. Also, even though /proc/device-tree-overlay is supposed to be write only, I get this: # cat /proc/device-tree-overlay cat: [ 651.973568] overlay_proc_release: failed to unflatten tree /proc/device-tree-overlay: Input/output error which seems to be a bit odd. I did not spend any time to track it down, though. Otherwise, the code seems to be working well. Thanks, Guenter