]> git.baikalelectronics.ru Git - kernel.git/commit
sparc: Machine description indices can vary
authorJames Clarke <jrtc27@jrtc27.com>
Mon, 29 May 2017 19:17:56 +0000 (20:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Jun 2017 20:45:03 +0000 (13:45 -0700)
commit28fbaff6145c96cf66162c708013ebe5ea0abb2a
tree506653c7e93fdbebde465b906b5f900aa02338d1
parente951d32c8e6e90b9474ce2def394849d477c9d81
sparc: Machine description indices can vary

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>
arch/sparc/include/asm/vio.h
arch/sparc/kernel/vio.c