mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-13 02:47:07 +00:00
nvme: assume die 0 if clock-gates not set
Signed-off-by: Mario Hros <git@reversity.org>
This commit is contained in:
parent
8bf08b0ff1
commit
34f49a56fc
1 changed files with 2 additions and 2 deletions
|
@ -304,8 +304,8 @@ bool nvme_init(void)
|
||||||
|
|
||||||
u32 cg;
|
u32 cg;
|
||||||
if (ADT_GETPROP(adt, node, "clock-gates", &cg) < 0) {
|
if (ADT_GETPROP(adt, node, "clock-gates", &cg) < 0) {
|
||||||
printf("nvme: Error getting NVMe clock-gates\n");
|
printf("nvme: clock-gates not set\n");
|
||||||
return NULL;
|
cg = 0;
|
||||||
}
|
}
|
||||||
nvme_die = FIELD_GET(PMGR_DIE_ID, cg);
|
nvme_die = FIELD_GET(PMGR_DIE_ID, cg);
|
||||||
printf("nvme: ANS is on die %d\n", nvme_die);
|
printf("nvme: ANS is on die %d\n", nvme_die);
|
||||||
|
|
Loading…
Reference in a new issue