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

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

Merge "coresight: set only required bits in the bitmap"

parents 60f39e54 29bf969f
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -650,7 +650,7 @@ static const struct attribute_group *tpdm_attr_grps[] = {

static int tpdm_probe(struct platform_device *pdev)
{
	int ret;
	int ret, i;
	uint32_t pidr;
	struct device *dev = &pdev->dev;
	struct coresight_platform_data *pdata;
@@ -698,7 +698,11 @@ static int tpdm_probe(struct platform_device *pdev)

	clk_disable_unprepare(drvdata->clk);

	bitmap_fill(drvdata->datasets, pidr);
	for (i = 0; i < TPDM_DATASETS; i++) {
		if (pidr & BIT(i))
			__set_bit(i, drvdata->datasets);
	}

	if (test_bit(TPDM_DS_CMB, drvdata->datasets)) {
		drvdata->cmb = devm_kzalloc(dev, sizeof(*drvdata->cmb),
					    GFP_KERNEL);