Skip to contentSkip to conversation

sparc: Machine description indices can vary

PATCH New James Clarke 1 participant 1 message May 29, 2017 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

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.

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
index 8174f6cdbbbb..9dca7a892978 100644
@@ -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