OSDN Git Service

drivers property: When no children in primary, try secondary
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 20 May 2020 10:29:59 +0000 (13:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 May 2020 09:03:47 +0000 (11:03 +0200)
commit114dbb4fa7c4053a51964d112e2851e818e085c6
treedff6319490da7591e7951e5532ed7579ccdb793e
parentc82c83c330654c5639960ebc3dabbae53c43f79e
drivers property: When no children in primary, try secondary

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 <andriy.shevchenko@linux.intel.com>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20200520102959.34812-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/property.c