* [PATCH] of: overlay: pr_err from return NOTIFY_OK to overlay apply/remove @ 2017-10-19 21:18 frowand.list-Re5JQEeQqe8AvxtiuMwx3w [not found] ` <1508447907-4462-1-git-send-email-frowand.list-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: frowand.list-Re5JQEeQqe8AvxtiuMwx3w @ 2017-10-19 21:18 UTC (permalink / raw) To: Rob Herring, atull-DgEjT+Ai2ygdnm+yROfE0A, pantelis.antoniou-OWPKS81ov/FWk0Htik3J/w, Pantelis Antoniou Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA From: Frank Rowand <frank.rowand-7U/KSKJipcs@public.gmane.org> A device tree overlay notifier can return NOTIFY_OK, NOTIFY_STOP, or an embedded errno. overlay_notify() incorrectly reports an error for NOTIFY_OK. Reported-by: atull-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org Signed-off-by: Frank Rowand <frank.rowand-7U/KSKJipcs@public.gmane.org> --- drivers/of/overlay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/overlay.c b/drivers/of/overlay.c index c99842bb4b09..f5fce0fea40b 100644 --- a/drivers/of/overlay.c +++ b/drivers/of/overlay.c @@ -133,7 +133,7 @@ static int overlay_notify(struct overlay_changeset *ovcs, ret = blocking_notifier_call_chain(&overlay_notify_chain, action, &nd); - if (ret == NOTIFY_STOP) + if (ret == NOTIFY_OK || ret == NOTIFY_STOP) return 0; if (ret) { ret = notifier_to_errno(ret); -- Frank Rowand <frank.rowand-7U/KSKJipcs@public.gmane.org> -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 3+ messages in thread
[parent not found: <1508447907-4462-1-git-send-email-frowand.list-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH] of: overlay: pr_err from return NOTIFY_OK to overlay apply/remove [not found] ` <1508447907-4462-1-git-send-email-frowand.list-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2017-10-19 21:49 ` Frank Rowand 2017-10-19 22:13 ` Rob Herring 1 sibling, 0 replies; 3+ messages in thread From: Frank Rowand @ 2017-10-19 21:49 UTC (permalink / raw) To: Rob Herring, atull-DgEjT+Ai2ygdnm+yROfE0A, pantelis.antoniou-OWPKS81ov/FWk0Htik3J/w, Pantelis Antoniou Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA On 10/19/17 14:18, frowand.list-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > From: Frank Rowand <frank.rowand-7U/KSKJipcs@public.gmane.org> > > A device tree overlay notifier can return NOTIFY_OK, NOTIFY_STOP, > or an embedded errno. overlay_notify() incorrectly reports an > error for NOTIFY_OK. > > Reported-by: atull-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org > Signed-off-by: Frank Rowand <frank.rowand-7U/KSKJipcs@public.gmane.org> > --- > drivers/of/overlay.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/of/overlay.c b/drivers/of/overlay.c > index c99842bb4b09..f5fce0fea40b 100644 > --- a/drivers/of/overlay.c > +++ b/drivers/of/overlay.c > @@ -133,7 +133,7 @@ static int overlay_notify(struct overlay_changeset *ovcs, > > ret = blocking_notifier_call_chain(&overlay_notify_chain, > action, &nd); > - if (ret == NOTIFY_STOP) > + if (ret == NOTIFY_OK || ret == NOTIFY_STOP) > return 0; > if (ret) { > ret = notifier_to_errno(ret); > Not needed in any stable kernel. This is caused by "[PATCH v3 00/12] of: overlay: clean up device tree overlay code". -Frank -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] of: overlay: pr_err from return NOTIFY_OK to overlay apply/remove [not found] ` <1508447907-4462-1-git-send-email-frowand.list-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2017-10-19 21:49 ` Frank Rowand @ 2017-10-19 22:13 ` Rob Herring 1 sibling, 0 replies; 3+ messages in thread From: Rob Herring @ 2017-10-19 22:13 UTC (permalink / raw) To: Frank Rowand Cc: Alan Tull, Pantelis Antoniou, Pantelis Antoniou, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Thu, Oct 19, 2017 at 4:18 PM, <frowand.list-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > From: Frank Rowand <frank.rowand-7U/KSKJipcs@public.gmane.org> > > A device tree overlay notifier can return NOTIFY_OK, NOTIFY_STOP, > or an embedded errno. overlay_notify() incorrectly reports an > error for NOTIFY_OK. > > Reported-by: atull-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org > Signed-off-by: Frank Rowand <frank.rowand-7U/KSKJipcs@public.gmane.org> > --- > drivers/of/overlay.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied. Rob -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-10-19 22:13 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-10-19 21:18 [PATCH] of: overlay: pr_err from return NOTIFY_OK to overlay apply/remove frowand.list-Re5JQEeQqe8AvxtiuMwx3w [not found] ` <1508447907-4462-1-git-send-email-frowand.list-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2017-10-19 21:49 ` Frank Rowand 2017-10-19 22:13 ` Rob Herring
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).