devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problem with commit to add overlay symbols to live device tree
@ 2017-10-19 17:06 Alexander.Steffen-d0qZbvYSIPpWk0Htik3J/w
       [not found] ` <85c5a40bb6eb4d4ebe522b3034528a36-d0qZbvYSIPpWk0Htik3J/w@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Alexander.Steffen-d0qZbvYSIPpWk0Htik3J/w @ 2017-10-19 17:06 UTC (permalink / raw)
  To: frank.rowand-7U/KSKJipcs, robh-DgEjT+Ai2ygdnm+yROfE0A
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA

Hi Frank, Rob,

I ran some tests with kernel v4.14-rc2, where I came across an issue with your commit "of: overlay: add overlay symbols to live device tree" (d1651b03c2df75db8eda3fbcd3a07adb337ee8b0, https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/of?h=v4.14-rc5&id=d1651b03c2df75db8eda3fbcd3a07adb337ee8b0). I am not sure whether this is a problem with your change or whether I made a mistake somewhere.

Without this commit, the following device tree overlay works fine on a Raspberry Pi:

/dts-v1/;
/plugin/;

/ {
	fragment@0 {
		target-path = "/soc/spi@7e204000";
		__overlay__ {
			#address-cells = <1>;
			#size-cells = <0>;
			status = "okay";

		        spidev1: spi@1 {
				compatible = "spidev";
				reg = <1>;
				spi-max-frequency = <5000000>;
			};
		};
	};
};

But with the commit, it is rejected:

OF: overlay: no symbols in root of device tree.
OF: overlay: of_build_overlay_info() failed for tree@/
create_overlay: Failed to create overlay (err=-22)

Only if I remove the spidev1 label, it continues to work with the commit (but this is not always possible in more complex overlays).

I hope this does not make a difference, but I use the configfs interface to load the overlay, that is not part of mainline, but shipped by several distributions nonetheless (for example in the Raspberry Pi kernel, https://github.com/raspberrypi/linux/commit/cccc24635da69799335566eb464a4c9e1fb4a8ad).

Could you tell me whether this change in behavior is intentional and whether I have to fix something in my usage?

Thanks
Alexander
--
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] 8+ messages in thread

end of thread, other threads:[~2017-11-13 19:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-19 17:06 Problem with commit to add overlay symbols to live device tree Alexander.Steffen-d0qZbvYSIPpWk0Htik3J/w
     [not found] ` <85c5a40bb6eb4d4ebe522b3034528a36-d0qZbvYSIPpWk0Htik3J/w@public.gmane.org>
2017-10-19 19:53   ` Frank Rowand
     [not found]     ` <59E9029D.1030700-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-10-20 12:11       ` Alexander.Steffen-d0qZbvYSIPpWk0Htik3J/w
     [not found]         ` <d0bd4312e9314c8ba6c56d800d07c0a9-d0qZbvYSIPpWk0Htik3J/w@public.gmane.org>
2017-10-20 20:57           ` Frank Rowand
     [not found]             ` <59EA6348.5020205-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-11-09 17:09               ` Alexander.Steffen-d0qZbvYSIPpWk0Htik3J/w
     [not found]                 ` <c4deba835169411ea2645c27c734dd31-d0qZbvYSIPpWk0Htik3J/w@public.gmane.org>
2017-11-09 20:02                   ` Frank Rowand
     [not found]                     ` <a444bccd-1d42-44b9-398c-095fb4fb9055-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-11-13 12:11                       ` Alexander.Steffen-d0qZbvYSIPpWk0Htik3J/w
     [not found]                         ` <5a3447ded9eb407989b5af4cc2ad4aab-d0qZbvYSIPpWk0Htik3J/w@public.gmane.org>
2017-11-13 19:48                           ` Frank Rowand

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).