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

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

Merge "coresight-tmc: Add support to set default mem_type" into msm-4.9

parents b3adaeda 456490bd
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -436,8 +436,11 @@ static int tmc_probe(struct amba_device *adev, const struct amba_id *id)
		if (ret)
			drvdata->size = SZ_1M;

		drvdata->mem_size = drvdata->size;
		if (of_property_read_bool(np, "arm,sg-enable"))
			drvdata->memtype  = TMC_ETR_MEM_TYPE_SG;
		else
			drvdata->memtype  = TMC_ETR_MEM_TYPE_CONTIG;
		drvdata->mem_size = drvdata->size;
		drvdata->mem_type = drvdata->memtype;
	} else {
		drvdata->size = readl_relaxed(drvdata->base + TMC_RSZ) * 4;