OSDN Git Service

sparc: Machine description indices can vary
authorJames Clarke <jrtc27@jrtc27.com>
Mon, 29 May 2017 19:17:56 +0000 (20:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jun 2017 13:05:53 +0000 (15:05 +0200)
commitb3ad7a3e57b3c1af5c15a16b3f6c05f943035f1d
tree31379384d9ef837bfdcd0ee9f4d7bde503d3de87
parent8d665e039e6621aa9449f22d74f81ca803a748c9
sparc: Machine description indices can vary

[ Upstream commit c982aa9c304bf0b9a7522fd118fed4afa5a0263c ]

VIO devices were being looked up by their index in the machine
description node block, but this often varies over time as devices are
added and removed. Instead, store the ID and look up using the type,
config handle and ID.

Signed-off-by: James Clarke <jrtc27@jrtc27.com>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=112541
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/sparc/include/asm/vio.h
arch/sparc/kernel/vio.c