sparc64: Enhance search for VIO device in MDESC
authorJag Raman <jag.raman@oracle.com>
Fri, 23 Jun 2017 18:58:39 +0000 (14:58 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jun 2017 20:43:14 +0000 (13:43 -0700)
commitf4d29ca7defdec9c8010a20a9ce10a71462a9978
tree83a6313d01bb3c8e0718d6f16f42a0a05780ce60
parentaa512d5edeab267d612c6be93eb6a2368ee7a6d6
sparc64: Enhance search for VIO device in MDESC

Enhances search for VIO device in MDESC by leveraging already existing
MDESC APIs. Enhances changes in earlier patch,
"sparc: Machine description indices can vary", by using existing MD
search functions. It also specifies a match function, thereby
enabling device_find_child() to use it for the purpose of matching
device nodes in MDESC.

An API to find VDEV node in MDESC based on its md_node_info is also
added. It is planned to be used by VIO device clients in the future.

Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
Reviewed-by: Liam Merwick <liam.merwick@oracle.com>
Reviewed-by: Shannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/vio.h
arch/sparc/kernel/mdesc.c
arch/sparc/kernel/vio.c