aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/include
diff options
context:
space:
mode:
authorJames Clarke <jrtc27@jrtc27.com>2017-05-29 20:17:56 +0100
committerDavid S. Miller <davem@davemloft.net>2017-06-06 13:45:03 -0700
commitc982aa9c304bf0b9a7522fd118fed4afa5a0263c (patch)
tree506653c7e93fdbebde465b906b5f900aa02338d1 /arch/sparc/include
parentsparc64: mm: fix copy_tsb to correctly copy huge page TSBs (diff)
downloadlinux-dev-c982aa9c304bf0b9a7522fd118fed4afa5a0263c.tar.xz
linux-dev-c982aa9c304bf0b9a7522fd118fed4afa5a0263c.zip
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>
Diffstat (limited to 'arch/sparc/include')
-rw-r--r--arch/sparc/include/asm/vio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/vio.h b/arch/sparc/include/asm/vio.h
index 8174f6cdbbbb..9dca7a892978 100644
--- a/arch/sparc/include/asm/vio.h
+++ b/arch/sparc/include/asm/vio.h
@@ -327,6 +327,7 @@ struct vio_dev {
int compat_len;
u64 dev_no;
+ u64 id;
unsigned long channel_id;