Skip to content

Commit 34f49a5

Browse files
Mario Hrosmarcan
authored andcommitted
nvme: assume die 0 if clock-gates not set
Signed-off-by: Mario Hros <[email protected]>
1 parent 8bf08b0 commit 34f49a5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/nvme.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ bool nvme_init(void)
304304

305305
u32 cg;
306306
if (ADT_GETPROP(adt, node, "clock-gates", &cg) < 0) {
307-
printf("nvme: Error getting NVMe clock-gates\n");
308-
return NULL;
307+
printf("nvme: clock-gates not set\n");
308+
cg = 0;
309309
}
310310
nvme_die = FIELD_GET(PMGR_DIE_ID, cg);
311311
printf("nvme: ANS is on die %d\n", nvme_die);

0 commit comments

Comments
 (0)