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

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

Merge "coresight: etm3x: Check fuse status after clearing power down bit"

parents 3d4e1dc1 d674645f
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -712,10 +712,6 @@ static void etm_init_arch_data(void *info)

	CS_UNLOCK(drvdata->base);

	/* check the state of the fuse */
	if (!coresight_authstatus_enabled(drvdata->base))
		goto out;

	/* First dummy read */
	(void)etm_readl(drvdata, ETMPDSR);
	/* Provide power to ETM: ETMPDCR[3] == 1 */
@@ -725,6 +721,11 @@ static void etm_init_arch_data(void *info)
	 * certain registers might be ignored.
	 */
	etm_clr_pwrdwn(drvdata);

	/* check the state of the fuse */
	if (!coresight_authstatus_enabled(drvdata->base))
		goto out;

	/*
	 * Set prog bit. It will be set from reset but this is included to
	 * ensure it is set