devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
To: Maxime Ripard
	<maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
Cc: "Pantelis Antoniou"
	<pantelis.antoniou-OWPKS81ov/FWk0Htik3J/w@public.gmane.org>,
	"Simon Glass" <sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>,
	"Boris Brezillon"
	<boris.brezillon-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>,
	"Alexander Kaplan" <alex-MflLfwwFzuz+yO7R74ARew@public.gmane.org>,
	"Thomas Petazzoni"
	<thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>,
	devicetree-compiler-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	"Antoine Ténart"
	<antoine.tenart-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>,
	"Stefan Agner" <stefan-XLVq0VzYD2Y@public.gmane.org>,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH v5 5/8] libfdt: Add fdt_setprop_inplace_namelen_partial
Date: Fri, 23 Sep 2016 15:31:20 +1000	[thread overview]
Message-ID: <20160923053120.GY2085@umbus.fritz.box> (raw)
In-Reply-To: <20160922063922.GJ8719@lukather>

[-- Attachment #1: Type: text/plain, Size: 2364 bytes --]

On Thu, Sep 22, 2016 at 09:39:22AM +0300, Maxime Ripard wrote:
> Hi David,
> 
> On Mon, Aug 22, 2016 at 09:01:56AM -0400, David Gibson wrote:
> > On Mon, Aug 22, 2016 at 12:07:21PM +0200, Maxime Ripard wrote:
> > > Hi David,
> > > 
> > > On Mon, Aug 01, 2016 at 01:36:42PM +1000, David Gibson wrote:
> > > > On Fri, Jul 29, 2016 at 11:55:48AM +0200, Maxime Ripard wrote:
> > > > > Add a function to modify inplace only a portion of a property..
> > > > > 
> > > > > This is especially useful when the property is an array of values, and you
> > > > > want to update one of them without changing the DT size.
> > > > > 
> > > > > Acked-by: Simon Glass <sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
> > > > > Reviewed-by: David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
> > > > > Signed-off-by: Maxime Ripard <maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
> > > > 
> > > > Applied, though I made a couple of tiny tweaks, see below.
> > > 
> > > Awesome, thanks!
> > > 
> > > Do you still have comments on the last 3 patches?
> > 
> > Sorry, I got sidetracked by other things.
> > 
> > The only remaining thing I'd like some changes in is the error
> > reporting.
> > 
> > The biggset problem is that in some places you are returning
> > BADSTRUCTURE for badly formatter fixup or other overlay properties.
> > BADSTRUCTURE should only be used when there is a problem in the
> > encoding of the tree structure itself, not a problem in the encoding
> > within a specific property or properties.
> > 
> > I don't think your code should ever generate BADSTRUCTURE directly
> > (but it could return it when it gets that value returned from a lower
> > level function).
> > 
> > What I was hoping to have a closer look at was to see if I'd prefer
> > just a single 'BADOVERLAY' error for any problem in te overlay
> > encoding, or if I'd prefer sveral: BADFIXUP, BADTARGET, or something
> > like that.  I'll try to get a closer look, but it probably won't
> > happen this week (I'm at KVM Forum).
> 
> Did you have time to think about this?

Finally, yes.  Just sent the detailed reply.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2016-09-23  5:31 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-29  9:55 [PATCH v5 0/8] libfdt: Add support for device tree overlays Maxime Ripard
     [not found] ` <20160729095551.13592-1-maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2016-07-29  9:55   ` [PATCH v5 1/8] libfdt: Add a subnodes iterator macro Maxime Ripard
2016-07-29  9:55   ` [PATCH v5 2/8] libfdt: Add iterator over properties Maxime Ripard
2016-07-29  9:55   ` [PATCH v5 3/8] libfdt: Add max phandle retrieval function Maxime Ripard
2016-07-29  9:55   ` [PATCH v5 4/8] libfdt: Add fdt_getprop_namelen_w Maxime Ripard
2016-07-29  9:55   ` [PATCH v5 5/8] libfdt: Add fdt_setprop_inplace_namelen_partial Maxime Ripard
     [not found]     ` <20160729095551.13592-6-maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2016-08-01  3:36       ` David Gibson
     [not found]         ` <20160801033642.GV2588-RXTfZT5YzpxwFLYp8hBm2A@public.gmane.org>
2016-08-22 10:07           ` Maxime Ripard
2016-08-22 13:01             ` David Gibson
2016-08-24  6:44               ` Maxime Ripard
2016-09-22  6:39               ` Maxime Ripard
2016-09-23  5:31                 ` David Gibson [this message]
     [not found]                   ` <20160923053120.GY2085-K0bRW+63XPQe6aEkudXLsA@public.gmane.org>
2016-09-23 12:02                     ` Maxime Ripard
2016-07-29  9:55   ` [PATCH v5 6/8] libfdt: Introduce FDT_ERR_BADFIXUP Maxime Ripard
2016-07-29  9:55   ` [PATCH v5 7/8] libfdt: Add overlay application function Maxime Ripard
     [not found]     ` <20160729095551.13592-8-maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2016-09-23  5:31       ` David Gibson
2016-07-29  9:55   ` [PATCH v5 8/8] tests: Add tests cases for the overlay code Maxime Ripard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160923053120.GY2085@umbus.fritz.box \
    --to=david-xt8fgy+axnrb3ne2bgzf6laj5h9x9tb+@public.gmane.org \
    --cc=alex-MflLfwwFzuz+yO7R74ARew@public.gmane.org \
    --cc=antoine.tenart-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org \
    --cc=boris.brezillon-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org \
    --cc=devicetree-compiler-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org \
    --cc=pantelis.antoniou-OWPKS81ov/FWk0Htik3J/w@public.gmane.org \
    --cc=sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org \
    --cc=stefan-XLVq0VzYD2Y@public.gmane.org \
    --cc=thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).