<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/base/property.c, branch linux-5.10.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.10.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.10.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2024-10-17T13:07:44Z</updated>
<entry>
<title>device property: Add const qualifier to device_get_match_data() parameter</title>
<updated>2024-10-17T13:07:44Z</updated>
<author>
<name>Andy Shevchenko</name>
</author>
<published>2022-09-22T13:54:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=167e4371ef929e679e7e5568cff0ff05ce1f57b9'/>
<id>urn:sha1:167e4371ef929e679e7e5568cff0ff05ce1f57b9</id>
<content type='text'>
commit aade55c86033bee868a93e4bf3843c9c99e84526 upstream.

Add const qualifier to the device_get_match_data() parameter.
Some of the future users may utilize this function without
forcing the type.

All the same, dev_fwnode() may be used with a const qualifier.

Reported-by: kernel test robot &lt;lkp@intel.com&gt;
Acked-by: Heikki Krogerus &lt;heikki.krogerus@linux.intel.com&gt;
Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Link: https://lore.kernel.org/r/20220922135410.49694-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>device property: Fix fwnode_graph_devcon_match() fwnode leak</title>
<updated>2022-01-27T09:54:25Z</updated>
<author>
<name>Sakari Ailus</name>
</author>
<published>2021-12-01T12:59:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6c1e3d8b1bff4c861c9ebe2d37a5b296fc7ee207'/>
<id>urn:sha1:6c1e3d8b1bff4c861c9ebe2d37a5b296fc7ee207</id>
<content type='text'>
commit 4a7f4110f79163fd53ea65438041994ed615e3af upstream.

For each endpoint it encounters, fwnode_graph_devcon_match() checks
whether the endpoint's remote port parent device is available. If it is
not, it ignores the endpoint but does not put the reference to the remote
endpoint port parent fwnode. For available devices the fwnode handle
reference is put as expected.

Put the reference for unavailable devices now.

Fixes: 637e9e52b185 ("device connection: Find device connections also from device graphs")
Cc: 5.1+ &lt;stable@vger.kernel.org&gt; # 5.1+
Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Reviewed-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>device property: Move fwnode_connection_find_match() under drivers/base/property.c</title>
<updated>2020-09-08T11:32:06Z</updated>
<author>
<name>Heikki Krogerus</name>
</author>
<published>2020-09-07T12:05:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d7cf5590393132993f2e6d2618fd23a20a6342ca'/>
<id>urn:sha1:d7cf5590393132993f2e6d2618fd23a20a6342ca</id>
<content type='text'>
The function is now only a helper that searches the
connection from device graph and then by checking if the
supplied connection identifier matches a property that
contains reference.

Signed-off-by: Heikki Krogerus &lt;heikki.krogerus@linux.intel.com&gt;
Link: https://lore.kernel.org/r/20200907120532.37611-2-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>device property: Avoid NULL pointer dereference in device_get_next_child_node()</title>
<updated>2020-07-23T15:04:28Z</updated>
<author>
<name>Andy Shevchenko</name>
</author>
<published>2020-07-16T18:27:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=29c4a54bc645c8b6745eeb58519e9ad794ceb419'/>
<id>urn:sha1:29c4a54bc645c8b6745eeb58519e9ad794ceb419</id>
<content type='text'>
When we have no primary fwnode or when it's a software node, we may end up
in the situation when fwnode is a NULL pointer. There is no point to look for
secondary fwnode in such case. Add a necessary check to a condition.

Fixes: 114dbb4fa7c4 ("drivers property: When no children in primary, try secondary")
Reported-by: Maxim Levitsky &lt;mlevitsk@redhat.com&gt;
Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Tested-by: Maxim Levitsky &lt;mlevitsk@redhat.com&gt;
Link: https://lore.kernel.org/r/20200716182747.54929-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>drivers property: When no children in primary, try secondary</title>
<updated>2020-05-21T09:03:47Z</updated>
<author>
<name>Andy Shevchenko</name>
</author>
<published>2020-05-20T10:29:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=114dbb4fa7c4053a51964d112e2851e818e085c6'/>
<id>urn:sha1:114dbb4fa7c4053a51964d112e2851e818e085c6</id>
<content type='text'>
Software firmware nodes can provide a child node to its parent.
Since software node can be secondary, we need a mechanism to access
the children. The idea is to list children of the primary node first
and when they are finished, continue with secondary node if available.

Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Reviewed-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
Acked-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Reviewed-by: Heikki Krogerus &lt;heikki.krogerus@linux.intel.com&gt;
Link: https://lore.kernel.org/r/20200520102959.34812-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>device property: Export fwnode_get_name()</title>
<updated>2020-03-16T06:47:58Z</updated>
<author>
<name>Heikki Krogerus</name>
</author>
<published>2020-03-02T13:53:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6fafbbe8d4140e44e0a64d6c914d628bdb2902ed'/>
<id>urn:sha1:6fafbbe8d4140e44e0a64d6c914d628bdb2902ed</id>
<content type='text'>
This makes it possible to take advantage of the function in
the device drivers.

Signed-off-by: Heikki Krogerus &lt;heikki.krogerus@linux.intel.com&gt;
Acked-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
Link: https://lore.kernel.org/r/20200302135353.56659-8-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>device property: Add a function to obtain a node's prefix</title>
<updated>2019-10-11T09:26:55Z</updated>
<author>
<name>Sakari Ailus</name>
</author>
<published>2019-10-03T12:32:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e7e242bccb209b5f73455b33928b8680cc6e3319'/>
<id>urn:sha1:e7e242bccb209b5f73455b33928b8680cc6e3319</id>
<content type='text'>
The prefix is used for printing purpose before a node, and it also works
as a separator between two nodes.

Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Acked-by: Rob Herring &lt;robh@kernel.org&gt; (for OF)
Reviewed-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>device property: Add fwnode_get_name for returning the name of a node</title>
<updated>2019-10-11T09:26:55Z</updated>
<author>
<name>Sakari Ailus</name>
</author>
<published>2019-10-03T12:32:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bc0500c1e43d95cca5352d2345fb0769f314ba22'/>
<id>urn:sha1:bc0500c1e43d95cca5352d2345fb0769f314ba22</id>
<content type='text'>
The fwnode framework did not have means to obtain the name of a node. Add
that now, in form of the fwnode_get_name() function and a corresponding
get_name fwnode op. OF and ACPI support is included.

Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Acked-by: Rob Herring &lt;robh@kernel.org&gt; (for OF)
Reviewed-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>device property: Add functions for accessing node's parents</title>
<updated>2019-10-11T09:26:55Z</updated>
<author>
<name>Sakari Ailus</name>
</author>
<published>2019-10-03T12:32:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=87e5e95db31a27d117fbb4a5d464f44adb4c2ee2'/>
<id>urn:sha1:87e5e95db31a27d117fbb4a5d464f44adb4c2ee2</id>
<content type='text'>
Add two convenience functions for accessing node's parents:

fwnode_count_parents() returns the number of parent nodes a given node
has. fwnode_get_nth_parent() returns node's parent at a given distance
from the node itself.

Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Reviewed-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
<entry>
<title>device property: Move fwnode_get_parent() up</title>
<updated>2019-10-11T09:26:55Z</updated>
<author>
<name>Sakari Ailus</name>
</author>
<published>2019-10-03T12:32:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a57b7fb783eb352d91b0bf8391682b30bacae667'/>
<id>urn:sha1:a57b7fb783eb352d91b0bf8391682b30bacae667</id>
<content type='text'>
Move fwnode_get_parent() above fwnode_get_next_parent(), making the order
the same as in the header file.

Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Reviewed-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
</content>
</entry>
</feed>
