]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:07:35 +0000 (15:07 +0200)
commita091e625ed7fe0132ac7c901d295705378f3d49f
treea6690611bfab059b3a45cee1bdcffba797f6163b
parent376452d48eb2603f46391e3f73343ba67f3e636e
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