<feed xmlns='http://www.w3.org/2005/Atom'>
<title>BMC/Intel-BMC/linux.git/drivers/of/unittest.c, branch dev-4.4</title>
<subtitle>Intel OpenBMC Linux kernel source tree (mirror)</subtitle>
<id>https://git.radix-linux.su/BMC/Intel-BMC/linux.git/atom?h=dev-4.4</id>
<link rel='self' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/atom?h=dev-4.4'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/'/>
<updated>2015-10-22T14:26:28+00:00</updated>
<entry>
<title>of/unittest: add missing of_node_put</title>
<updated>2015-10-22T14:26:28+00:00</updated>
<author>
<name>Julia Lawall</name>
<email>Julia.Lawall@lip6.fr</email>
</author>
<published>2015-10-22T09:02:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=855ff2878ec5ef15f0a69a528b2ca676edfb3ee4'/>
<id>urn:sha1:855ff2878ec5ef15f0a69a528b2ca676edfb3ee4</id>
<content type='text'>
for_each_child_of_node performs an of_node_get on each iteration, so
a break out of the loop requires an of_node_put.

A simplified version of the semantic patch that fixes this problem is as
follows (http://coccinelle.lip6.fr):

// &lt;smpl&gt;
@@
expression root,e;
local idexpression child;
@@

 for_each_child_of_node(root, child) {
   ... when != of_node_put(child)
       when != e = child
(
   return child;
|
+  of_node_put(child);
?  return ...;
)
   ...
 }
// &lt;/smpl&gt;

Combine the puts into code at the end of the function, for conciseness.

Signed-off-by: Julia Lawall &lt;Julia.Lawall@lip6.fr&gt;
Signed-off-by: Rob Herring &lt;robh@kernel.org&gt;
</content>
</entry>
<entry>
<title>of: Drop owner assignment from platform and i2c driver</title>
<updated>2015-07-27T13:24:39+00:00</updated>
<author>
<name>Krzysztof Kozlowski</name>
<email>k.kozlowski@samsung.com</email>
</author>
<published>2015-07-10T06:26:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=599ad5ac9a59587a46f6540a8e2ab79dff811f7d'/>
<id>urn:sha1:599ad5ac9a59587a46f6540a8e2ab79dff811f7d</id>
<content type='text'>
platform_driver and i2c_driver do not need to set an owner because core
will set it.

Signed-off-by: Krzysztof Kozlowski &lt;k.kozlowski@samsung.com&gt;
Signed-off-by: Rob Herring &lt;robh@kernel.org&gt;
</content>
</entry>
<entry>
<title>Merge tag 'devicetree-for-4.1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux</title>
<updated>2015-04-24T15:46:18+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2015-04-24T15:46:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=d56a669ca59c37ed0a7282a251b2f2f22533343a'/>
<id>urn:sha1:d56a669ca59c37ed0a7282a251b2f2f22533343a</id>
<content type='text'>
Pull second batch of devicetree updates from Rob Herring:
 "As Grant mentioned in the first devicetree pull request, here is the
  2nd batch of DT changes for 4.1.  The main remaining item here is the
  endianness bindings and related 8250 driver support.

   - DT endianness specification bindings

   - big-endian 8250 serial support

   - DT overlay unittest updates

   - various DT doc updates

   - compile fixes for OF_IRQ=n"

* tag 'devicetree-for-4.1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
  frv: add io{read,write}{16,32}be functions
  mn10300: add io{read,write}{16,32}be functions
  Documentation: DT bindings: add doc for Altera's SoCFPGA platform
  of: base: improve of_get_next_child() kernel-doc
  Doc: dt: arch_timer: discourage clock-frequency use
  of: unittest: overlay: Keep track of created overlays
  of/fdt: fix allocation size for device node path
  serial: of_serial: Support big-endian register accesses
  serial: 8250: Add support for big-endian MMIO accesses
  of: Document {little,big,native}-endian bindings
  of/fdt: Add endianness helper function for early init code
  of: Add helper function to check MMIO register endianness
  of/fdt: Remove "reg" data prints from early_init_dt_scan_memory
  of: add vendor prefix for Artesyn
  of: Add dummy of_irq_to_resource_table() for IRQ_OF=n
  of: OF_IRQ should depend on IRQ_DOMAIN
</content>
</entry>
<entry>
<title>of: unittest: overlay: Keep track of created overlays</title>
<updated>2015-04-15T00:35:46+00:00</updated>
<author>
<name>Pantelis Antoniou</name>
<email>pantelis.antoniou@konsulko.com</email>
</author>
<published>2015-04-07T19:23:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=492a22aceb75e34e7b1c1b300ecc8bef2a2f42dc'/>
<id>urn:sha1:492a22aceb75e34e7b1c1b300ecc8bef2a2f42dc</id>
<content type='text'>
During the course of the overlay selftests some of them remain
applied. While this does not pose a real problem, make sure you track
them and destroy them at the end of the test.

Signed-off-by: Pantelis Antoniou &lt;pantelis.antoniou@konsulko.com&gt;
Signed-off-by: Rob Herring &lt;robh@kernel.org&gt;
</content>
</entry>
<entry>
<title>Merge remote-tracking branch 'robh/for-next' into devicetree/next</title>
<updated>2015-03-29T07:59:58+00:00</updated>
<author>
<name>Grant Likely</name>
<email>grant.likely@linaro.org</email>
</author>
<published>2015-03-29T07:59:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=a2166ca5f3204794e8b59f01c93a0f1564e3e138'/>
<id>urn:sha1:a2166ca5f3204794e8b59f01c93a0f1564e3e138</id>
<content type='text'>
Conflicts:
	drivers/of/unittest.c
</content>
</entry>
<entry>
<title>of/unittest: Fix of_platform_depopulate test case</title>
<updated>2015-03-29T07:56:20+00:00</updated>
<author>
<name>Grant Likely</name>
<email>grant.likely@linaro.org</email>
</author>
<published>2015-03-28T03:30:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=37791b6fbe7ab772020e714d34515f144fa981a0'/>
<id>urn:sha1:37791b6fbe7ab772020e714d34515f144fa981a0</id>
<content type='text'>
The previous commit, "of/unittest: early return from test skips tests"
exposed broken tests for the of_platform_unpopulate() function. The
problem was the populate and depopulate calls were not symmetrical like
they were intended to be, and unpopulate depends on the parent device to
have it's of_node pointer pointing to the parent device node. Fix these
bugs so that the test case works correctly.

In the process, the test_bus used as a container for the test devices
has been changed from a statically allocated struct device (which is
bad) to a properly allocated device with a .release() method (which is
good). This stops the test code from being a bad example of abusing the
device model.

Signed-off-by: Grant Likely &lt;grant.likely@linaro.org&gt;
Cc: Frank Rowand &lt;frank.rowand@sonymobile.com&gt;
Cc: Pantelis Antoniou &lt;pantelis.antoniou@konsulko.com&gt;
Cc: Pawel Moll &lt;pawel.moll@arm.com&gt;
</content>
</entry>
<entry>
<title>of/unittest: early return from test skips tests</title>
<updated>2015-03-29T07:56:19+00:00</updated>
<author>
<name>Frank Rowand</name>
<email>frank.rowand@sonymobile.com</email>
</author>
<published>2015-03-14T06:57:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=716e1d493a8717251158c708b2f161017bdcb3f9'/>
<id>urn:sha1:716e1d493a8717251158c708b2f161017bdcb3f9</id>
<content type='text'>
Fix bugs pointed out by checkpatch: Mis-coding of two if statements
caused early return from function.

Number of tests completed increased from 102 to 107.
Number of tests failed increased from 0 to 2.

Signed-off-by: Frank Rowand &lt;frank.rowand@sonymobile.com&gt;
Signed-off-by: Grant Likely &lt;grant.likely@linaro.org&gt;
</content>
</entry>
<entry>
<title>of/unittest: breadcrumbs to reduce pain of future maintainers</title>
<updated>2015-03-29T07:56:19+00:00</updated>
<author>
<name>Frank Rowand</name>
<email>frank.rowand@sonymobile.com</email>
</author>
<published>2015-03-14T07:04:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=c8547119ce54ef6d3c0685ef3837514fa6e11d28'/>
<id>urn:sha1:c8547119ce54ef6d3c0685ef3837514fa6e11d28</id>
<content type='text'>
Fix warnings pointed out by checkpatch.

Checkpatch warns: externs should be avoided in .c files

Reducing pain for future maintainers - adding a comment so that anyone trying
to find where the extern data is created will be able to find it.
(grep will not find that location)

Signed-off-by: Frank Rowand &lt;frank.rowand@sonymobile.com&gt;
Signed-off-by: Grant Likely &lt;grant.likely@linaro.org&gt;
</content>
</entry>
<entry>
<title>of/unittest: reduce checkpatch noise - line after declarations</title>
<updated>2015-03-29T07:56:18+00:00</updated>
<author>
<name>Frank Rowand</name>
<email>frank.rowand@sonymobile.com</email>
</author>
<published>2015-03-14T07:02:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=3db316d00bfa60c673c54f27cd5edc329a3b28b5'/>
<id>urn:sha1:3db316d00bfa60c673c54f27cd5edc329a3b28b5</id>
<content type='text'>
Fix warnings pointed out by checkpatch.

No bug fixes, but reduce the number of checkpatch warnings so that future
problems will stand out better.

Signed-off-by: Frank Rowand &lt;frank.rowand@sonymobile.com&gt;
Signed-off-by: Grant Likely &lt;grant.likely@linaro.org&gt;
</content>
</entry>
<entry>
<title>of/unittest: typo in error string</title>
<updated>2015-03-29T07:56:18+00:00</updated>
<author>
<name>Frank Rowand</name>
<email>frank.rowand@sonymobile.com</email>
</author>
<published>2015-03-14T06:59:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=a6bb121e16ae1e1cedc8cf37616a4d13c5a9a65b'/>
<id>urn:sha1:a6bb121e16ae1e1cedc8cf37616a4d13c5a9a65b</id>
<content type='text'>
Fix bug pointed out by checkpatch.

Splitting string incorrectly removed a space between two words.

Signed-off-by: Frank Rowand &lt;frank.rowand@sonymobile.com&gt;
Signed-off-by: Grant Likely &lt;grant.likely@linaro.org&gt;
</content>
</entry>
</feed>
