Skip to content

Commit 043bc79

Browse files
committed
kboot_atc: Drop "apple,tunable-fuses" backward compatibility
No published asahi downstream or upstream Linux kernel used this property. Signed-off-by: Janne Grunau <[email protected]>
1 parent 31a60d7 commit 043bc79

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

src/kboot_atc.c

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ static void dt_copy_atc_tunables(void *dt, const char *adt_path, const char *dt_
405405

406406
/*
407407
* For backwards compatibility with downstream drivers copy apple,tunable-common-b to
408-
* apple,tunable-common and apple,tunable-common-a to apple,tunable-fuses.
408+
* apple,tunable-common.
409409
* Don't remove this before 2027-01-01.
410410
*/
411411
int prop_len;
@@ -421,18 +421,6 @@ static void dt_copy_atc_tunables(void *dt, const char *adt_path, const char *dt_
421421
goto cleanup;
422422
}
423423

424-
const void *tunable_common_b = fdt_getprop(dt, fdt_node, "apple,tunable-common-b", &prop_len);
425-
if (!tunable_common_b) {
426-
printf("kboot: Unable to find apple,tunable-common-b for %s\n", adt_path);
427-
goto cleanup;
428-
}
429-
ret = fdt_setprop(dt, fdt_node, "apple,tunable-fuses", tunable_common_b, prop_len);
430-
if (ret) {
431-
printf("kboot: Unable to copy apple,tunable-common-a to apple,tunable-fuses for %s\n",
432-
adt_path);
433-
goto cleanup;
434-
}
435-
436424
return;
437425

438426
cleanup:
@@ -445,7 +433,6 @@ static void dt_copy_atc_tunables(void *dt, const char *adt_path, const char *dt_
445433
fdt_delprop(dt, fdt_node, atc_tunables[i].fdt_name);
446434
fdt_delprop(dt, fdt_node, "apple,tunable-common-a");
447435
fdt_delprop(dt, fdt_node, "apple,tunable-common");
448-
fdt_delprop(dt, fdt_node, "apple,tunable-fuses");
449436

450437
printf("FDT: Unable to setup ATC tunables for %s - USB3/Thunderbolt will not work\n", adt_path);
451438
}

0 commit comments

Comments
 (0)