<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/of/fdt.c, branch v3.11.1</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v3.11.1</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v3.11.1'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2013-08-22T01:05:49+00:00</updated>
<entry>
<title>of: fdt: fix memory initialization for expanded DT</title>
<updated>2013-08-22T01:05:49+00:00</updated>
<author>
<name>Wladislav Wiebe</name>
<email>wladislav.kw@gmail.com</email>
</author>
<published>2013-08-12T11:06:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=9e40127526e857fa3f29d51e83277204fbdfc6ba'/>
<id>urn:sha1:9e40127526e857fa3f29d51e83277204fbdfc6ba</id>
<content type='text'>
Already existing property flags are filled wrong for properties created from
initial FDT. This could cause problems if this DYNAMIC device-tree functions
are used later, i.e. properties are attached/detached/replaced. Simply dumping
flags from the running system show, that some initial static (not allocated via
kzmalloc()) nodes are marked as dynamic.

I putted some debug extensions to property_proc_show(..) :
..
+       if (OF_IS_DYNAMIC(pp))
+               pr_err("DEBUG: xxx : OF_IS_DYNAMIC\n");
+       if (OF_IS_DETACHED(pp))
+               pr_err("DEBUG: xxx : OF_IS_DETACHED\n");

when you operate on the nodes (e.g.: ~$ cat /proc/device-tree/*some_node*) you
will see that those flags are filled wrong, basically in most cases it will dump
a DYNAMIC or DETACHED status, which is in not true.
(BTW. this OF_IS_DETACHED is a own define for debug purposes which which just
make a test_bit(OF_DETACHED, &amp;x-&gt;_flags)

If nodes are dynamic kernel is allowed to kfree() them. But it will crash
attempting to do so on the nodes from FDT -- they are not allocated via
kzmalloc().

Signed-off-by: Wladislav Wiebe &lt;wladislav.kw@gmail.com&gt;
Acked-by: Alexander Sverdlin &lt;alexander.sverdlin@nsn.com&gt;
Cc: stable@vger.kernel.org
Signed-off-by: Rob Herring &lt;rob.herring@calxeda.com&gt;
</content>
</entry>
<entry>
<title>open firmware: "/aliasas" -&gt; "/aliases"</title>
<updated>2013-06-18T11:46:26+00:00</updated>
<author>
<name>Robert P. J. Day</name>
<email>rpjday@crashcourse.ca</email>
</author>
<published>2013-05-30T09:38:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=4c7d6361fa0dc9817ef878a7fbb6e50dd33c2f6d'/>
<id>urn:sha1:4c7d6361fa0dc9817ef878a7fbb6e50dd33c2f6d</id>
<content type='text'>
Fix "/aliasas" typo in comments, no functional change.

Signed-off-by: Robert P. J. Day &lt;rpjday@crashcourse.ca&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>drivers/of/fdt.c: re-use kernel's kbasename()</title>
<updated>2012-12-18T01:15:18+00:00</updated>
<author>
<name>Andy Shevchenko</name>
<email>andriy.shevchenko@linux.intel.com</email>
</author>
<published>2012-12-18T00:01:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=375da3a76dc49f10c35e243ebef62df12e3adf4e'/>
<id>urn:sha1:375da3a76dc49f10c35e243ebef62df12e3adf4e</id>
<content type='text'>
Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Acked-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
Cc: Rob Herring &lt;rob.herring@calxeda.com&gt;
Cc: Fabio Estevam &lt;fabio.estevam@freescale.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>Fix build when CONFIG_W1_MASTER_GPIO=m b exporting "allnodes"</title>
<updated>2012-11-30T10:04:06+00:00</updated>
<author>
<name>Randy Dunlap</name>
<email>rdunlap@infradead.org</email>
</author>
<published>2012-11-30T10:01:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=465aac6d496aa3e99caaa6868865fb3830f73d80'/>
<id>urn:sha1:465aac6d496aa3e99caaa6868865fb3830f73d80</id>
<content type='text'>
ERROR: "allnodes" [drivers/w1/masters/w1-gpio.ko] undefined!

Signed-off-by: Randy Dunlap &lt;rdunlap@infradead.org&gt;
[grant.likely: allnodes is too generic; rename to of_allnodes]
Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
Cc: Ville Syrjala &lt;syrjala@sci.fi&gt;
</content>
</entry>
<entry>
<title>of/fdt: NULL-terminate the root node path</title>
<updated>2012-11-21T04:58:53+00:00</updated>
<author>
<name>Catalin Marinas</name>
<email>catalin.marinas@arm.com</email>
</author>
<published>2012-11-16T15:14:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=0fca5deafeac764c2ab0d37c2409fdd0962d5724'/>
<id>urn:sha1:0fca5deafeac764c2ab0d37c2409fdd0962d5724</id>
<content type='text'>
Commit 509b7455 (of/fdt: Don't copy garbage after "/" in root node path)
sets the path length to 0 to ignore any garbage after "/" in the root
node path. This has the side effect of also ignoring '\0' at the end of
the root node path. This patch sets the ignores the garbage by setting
the last character to '\0' and length to 1.

Signed-off-by: Catalin Marinas &lt;catalin.marinas@arm.com&gt;
Cc: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Signed-off-by: Rob Herring &lt;rob.herring@calxeda.com&gt;
</content>
</entry>
<entry>
<title>of: fdt: Constify 'pathp'</title>
<updated>2012-11-21T04:57:40+00:00</updated>
<author>
<name>Fabio Estevam</name>
<email>fabio.estevam@freescale.com</email>
</author>
<published>2012-11-12T20:30:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=e55b0829cbace88f4b50036432a12146d22cd106'/>
<id>urn:sha1:e55b0829cbace88f4b50036432a12146d22cd106</id>
<content type='text'>
Constify 'pathp' in order to get rid of the following warning:

drivers/of/fdt.c:491:10: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]

Signed-off-by: Fabio Estevam &lt;fabio.estevam@freescale.com&gt;
[Rob Herring: also constify np and lp]
Signed-off-by: Rob Herring &lt;rob.herring@calxeda.com&gt;
</content>
</entry>
<entry>
<title>drivers/of: Constify device_node-&gt;name and -&gt;path_component_name</title>
<updated>2012-11-17T12:05:57+00:00</updated>
<author>
<name>Grant Likely</name>
<email>grant.likely@secretlab.ca</email>
</author>
<published>2012-11-14T22:37:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=c22618a11d1ba2966bd2cfd5e4918ed4f2dad13e'/>
<id>urn:sha1:c22618a11d1ba2966bd2cfd5e4918ed4f2dad13e</id>
<content type='text'>
Neither of these should ever be changed once set. Make them const and
fix up the users that try to modify it in-place. In one case
kmalloc+memcpy is replaced with kstrdup() to avoid modifying the string.

Build tested with defconfigs on ARM, PowerPC, Sparc, MIPS, x86 among
others.

Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
Acked-by: David S. Miller &lt;davem@davemloft.net&gt;
Cc: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Cc: Julian Calaby &lt;julian.calaby@gmail.com&gt;
</content>
</entry>
<entry>
<title>of/fdt: Don't copy garbage after "/" in root node path</title>
<updated>2012-11-11T03:53:04+00:00</updated>
<author>
<name>Benjamin Herrenschmidt</name>
<email>benh@kernel.crashing.org</email>
</author>
<published>2012-10-22T00:32:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=509b7455ef87e1447670c51037cabbf93d772d6f'/>
<id>urn:sha1:509b7455ef87e1447670c51037cabbf93d772d6f</id>
<content type='text'>
The root node path must be internally converted to "/", or various
pieces of code looking for it that way will fail. The code to do
that however had a bug where we might incorrectly append pieces
of the original path from the fdt to the "/".

We should probably add a proper dedicated accessor for the root node
but in the meantime this patch should fix it.

Signed-off-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Signed-off-by: Rob Herring &lt;rob.herring@calxeda.com&gt;
</content>
</entry>
<entry>
<title>of/fdt.c: asm/setup.h included twice</title>
<updated>2012-02-27T16:09:25+00:00</updated>
<author>
<name>Danny Kukawka</name>
<email>danny.kukawka@bisect.de</email>
</author>
<published>2012-02-15T17:55:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=d022bbc712eb1fc53fbbec27a9f0ae07f55f9b65'/>
<id>urn:sha1:d022bbc712eb1fc53fbbec27a9f0ae07f55f9b65</id>
<content type='text'>
drivers/of/fdt.c included 'asm/setup.h' twice, remove the duplicate.

Signed-off-by: Danny Kukawka &lt;danny.kukawka@bisect.de&gt;
Signed-off-by: Rob Herring &lt;rob.herring@calxeda.com&gt;
</content>
</entry>
<entry>
<title>of: add include asm/setup.h in drivers/of/fdt.c</title>
<updated>2012-01-10T02:29:41+00:00</updated>
<author>
<name>Yu Yue</name>
<email>yuyue@mprc.pku.edu.cn</email>
</author>
<published>2011-08-26T10:03:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=eb52d5801302a3515506891c13338fbaa7222f36'/>
<id>urn:sha1:eb52d5801302a3515506891c13338fbaa7222f36</id>
<content type='text'>
In the file drivers/of/fdt.c, it uses the COMMAND_LINE_SIZE which is stated
in asm/setup.h, so asm/setup.h should be included in drivers/of/fdt.c.

Signed-off-by: Yu Yue &lt;yuyue@mprc.pku.edu.cn&gt;
Signed-off-by: Guan Xuetao &lt;guanxuetao@mprc.pku.edu.cn&gt;

Cc: Grant Likerly &lt;grant.likely@secretlab.ca&gt;
Cc: devicetree-discuss@lists.ozlabs.org
Cc: Arnd Bergmann &lt;arnd@arndb.de&gt;
</content>
</entry>
</feed>
