diff options
author | James Clarke <jrtc27@jrtc27.com> | 2017-05-29 20:17:56 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-06 13:45:03 -0700 |
commit | c982aa9c304bf0b9a7522fd118fed4afa5a0263c (patch) | |
tree | 506653c7e93fdbebde465b906b5f900aa02338d1 /arch/sparc/include | |
parent | 654f4807624a657f364417c2a7454f0df9961734 (diff) | |
download | op-kernel-dev-c982aa9c304bf0b9a7522fd118fed4afa5a0263c.zip op-kernel-dev-c982aa9c304bf0b9a7522fd118fed4afa5a0263c.tar.gz |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/vio.h b/arch/sparc/include/asm/vio.h index 8174f6c..9dca7a8 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; |