Skip to content

Commit e2b9fc2

Browse files
andreas-gaislerdavem330
authored andcommitted
sparc32, leon: Stop adding vendor and device id to prom ambapp path components
These extra fields before the @ are not handled in of_node_name_eq, making commit b3e46d1 break node name comparisons for ambapp path components, thereby making LEON systems unable to boot. As there is no need for the tacked on vendor and device ID fields in the path component, resolve this situation by removing them. Signed-off-by: Andreas Larsson <andreas@gaisler.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 548f0b9 commit e2b9fc2

1 file changed

Lines changed: 4 additions & 14 deletions

File tree

‎arch/sparc/kernel/prom_32.c‎

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,13 @@ static void __init ebus_path_component(struct device_node *dp, char *tmp_buf)
132132
regs->which_io, regs->phys_addr);
133133
}
134134

135-
/* "name:vendor:device@irq,addrlo" */
135+
/* "name@irq,addrlo" */
136136
static void __init ambapp_path_component(struct device_node *dp, char *tmp_buf)
137137
{
138138
const char *name = of_get_property(dp, "name", NULL);
139139
struct amba_prom_registers *regs;
140-
unsigned int *intr, *device, *vendor, reg0;
140+
unsigned int *intr;
141+
unsigned int reg0;
141142
struct property *prop;
142143
int interrupt = 0;
143144

@@ -159,18 +160,7 @@ static void __init ambapp_path_component(struct device_node *dp, char *tmp_buf)
159160
else
160161
intr = prop->value;
161162

162-
prop = of_find_property(dp, "vendor", NULL);
163-
if (!prop)
164-
return;
165-
vendor = prop->value;
166-
prop = of_find_property(dp, "device", NULL);
167-
if (!prop)
168-
return;
169-
device = prop->value;
170-
171-
sprintf(tmp_buf, "%s:%d:%d@%x,%x",
172-
name, *vendor, *device,
173-
*intr, reg0);
163+
sprintf(tmp_buf, "%s@%x,%x", name, *intr, reg0);
174164
}
175165

176166
static void __init __build_path_component(struct device_node *dp, char *tmp_buf)

0 commit comments

Comments
 (0)