Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b7a320d authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "platform: qpnp-power-on: Set boot reason in procfs"

parents b71a5b93 36f363fd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1204,6 +1204,8 @@ static int qpnp_pon_probe(struct spmi_device *spmi)
		return rc;
	}

	boot_reason = ffs(pon_sts);

	index = ffs(pon_sts) - 1;
	cold_boot = !qpnp_pon_is_warm_reset();
	if (index >= ARRAY_SIZE(qpnp_pon_reason) || index < 0)