Skip to content

Commit 3cdfd97

Browse files
committed
kboot_atc: fuses: Check only the first compatible
The t602x atc-phy nodes carry "[atc-phy,t6020, atc-phy,t8112]" as compatible property. This results in trying to read t8112 fuses on those machines which fails with SError when the adt_is_compatible() regression is fixed. Signed-off-by: Janne Grunau <[email protected]>
1 parent 9dc7220 commit 3cdfd97

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/kboot_atc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ static int dt_append_atc_fuses_helper(void *dt, int fdt_node, const struct atc_f
293293
static int dt_append_fuses(void *dt, int adt_node, int fdt_node, int port)
294294
{
295295
for (size_t i = 0; i < ARRAY_SIZE(atc_fuses); ++i) {
296-
if (!adt_is_compatible(adt, adt_node, atc_fuses[i].compatible))
296+
if (!adt_is_compatible_at(adt, adt_node, atc_fuses[i].compatible, 0))
297297
continue;
298298
if (atc_fuses[i].port >= 0 && port != atc_fuses[i].port)
299299
continue;

0 commit comments

Comments
 (0)