Commit 41a75cdd authored by Suzuki K Poulose's avatar Suzuki K Poulose Committed by Greg Kroah-Hartman
Browse files

coresight: Convert driver messages to dev_dbg



Convert component enable/disable messages from dev_info to dev_dbg.
When used with perf, the components in the paths are enabled/disabled
during each schedule of the run, which can flood the dmesg with these
messages. Moreover, they are only useful for debug purposes. So,
convert such messages to dev_dbg() which can be turned on as
needed.

Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cad5f8d3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ static int replicator_enable(struct coresight_device *csdev, int inport,

	CS_LOCK(drvdata->base);

	dev_info(drvdata->dev, "REPLICATOR enabled\n");
	dev_dbg(drvdata->dev, "REPLICATOR enabled\n");
	return 0;
}

@@ -75,7 +75,7 @@ static void replicator_disable(struct coresight_device *csdev, int inport,

	CS_LOCK(drvdata->base);

	dev_info(drvdata->dev, "REPLICATOR disabled\n");
	dev_dbg(drvdata->dev, "REPLICATOR disabled\n");
}

static const struct coresight_ops_link replicator_link_ops = {
+3 −3
Original line number Diff line number Diff line
@@ -160,7 +160,7 @@ static int etb_enable(struct coresight_device *csdev, u32 mode)
	spin_unlock_irqrestore(&drvdata->spinlock, flags);

out:
	dev_info(drvdata->dev, "ETB enabled\n");
	dev_dbg(drvdata->dev, "ETB enabled\n");
	return 0;
}

@@ -266,7 +266,7 @@ static void etb_disable(struct coresight_device *csdev)

	local_set(&drvdata->mode, CS_MODE_DISABLED);

	dev_info(drvdata->dev, "ETB disabled\n");
	dev_dbg(drvdata->dev, "ETB disabled\n");
}

static void *etb_alloc_buffer(struct coresight_device *csdev, int cpu,
@@ -509,7 +509,7 @@ static void etb_dump(struct etb_drvdata *drvdata)
	}
	spin_unlock_irqrestore(&drvdata->spinlock, flags);

	dev_info(drvdata->dev, "ETB dumped\n");
	dev_dbg(drvdata->dev, "ETB dumped\n");
}

static int etb_open(struct inode *inode, struct file *file)
+2 −2
Original line number Diff line number Diff line
@@ -501,7 +501,7 @@ static int etm_enable_sysfs(struct coresight_device *csdev)
	drvdata->sticky_enable = true;
	spin_unlock(&drvdata->spinlock);

	dev_info(drvdata->dev, "ETM tracing enabled\n");
	dev_dbg(drvdata->dev, "ETM tracing enabled\n");
	return 0;

err:
@@ -604,7 +604,7 @@ static void etm_disable_sysfs(struct coresight_device *csdev)
	spin_unlock(&drvdata->spinlock);
	cpus_read_unlock();

	dev_info(drvdata->dev, "ETM tracing disabled\n");
	dev_dbg(drvdata->dev, "ETM tracing disabled\n");
}

static void etm_disable(struct coresight_device *csdev,
+2 −2
Original line number Diff line number Diff line
@@ -267,7 +267,7 @@ static int etm4_enable_sysfs(struct coresight_device *csdev)
	drvdata->sticky_enable = true;
	spin_unlock(&drvdata->spinlock);

	dev_info(drvdata->dev, "ETM tracing enabled\n");
	dev_dbg(drvdata->dev, "ETM tracing enabled\n");
	return 0;

err:
@@ -380,7 +380,7 @@ static void etm4_disable_sysfs(struct coresight_device *csdev)
	spin_unlock(&drvdata->spinlock);
	cpus_read_unlock();

	dev_info(drvdata->dev, "ETM tracing disabled\n");
	dev_dbg(drvdata->dev, "ETM tracing disabled\n");
}

static void etm4_disable(struct coresight_device *csdev,
+2 −2
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ static int funnel_enable(struct coresight_device *csdev, int inport,

	funnel_enable_hw(drvdata, inport);

	dev_info(drvdata->dev, "FUNNEL inport %d enabled\n", inport);
	dev_dbg(drvdata->dev, "FUNNEL inport %d enabled\n", inport);
	return 0;
}

@@ -89,7 +89,7 @@ static void funnel_disable(struct coresight_device *csdev, int inport,

	funnel_disable_hw(drvdata, inport);

	dev_info(drvdata->dev, "FUNNEL inport %d disabled\n", inport);
	dev_dbg(drvdata->dev, "FUNNEL inport %d disabled\n", inport);
}

static const struct coresight_ops_link funnel_link_ops = {
Loading