sparc: Machine description indices can vary
PATCH v2 1/1 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 <[email protected]>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id2541
--- arch/sparc/include/asm/vio.h | 1 + arch/sparc/kernel/vio.c | 68 +++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 65 insertions(+), 4 deletions(-)
arch/sparc/include/asm/vio.h +1 -0
@@ -327,6 +327,7 @@ struct vio_dev {int compat_len;u64 dev_no; +u64 id;unsigned long channel_id;
arch/sparc/kernel/vio.c +64 -4
104 lines not on this page · raw message
--
2.11.0