diff options
author | James Clarke <jrtc27@jrtc27.com> | 2017-05-29 21:17:56 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-06 22:45:03 +0200 |
commit | c982aa9c304bf0b9a7522fd118fed4afa5a0263c (patch) | |
tree | 506653c7e93fdbebde465b906b5f900aa02338d1 /arch/sparc/include/asm/vio.h | |
parent | sparc64: mm: fix copy_tsb to correctly copy huge page TSBs (diff) | |
download | linux-c982aa9c304bf0b9a7522fd118fed4afa5a0263c.tar.xz linux-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/asm/vio.h')
-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 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; |