coresight: Convert driver messages to dev_dbg
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Thu, 20 Sep 2018 19:17:53 +0000 (13:17 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Sep 2018 18:09:17 +0000 (20:09 +0200)
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: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-dynamic-replicator.c
drivers/hwtracing/coresight/coresight-etb10.c
drivers/hwtracing/coresight/coresight-etm3x.c
drivers/hwtracing/coresight/coresight-etm4x.c
drivers/hwtracing/coresight/coresight-funnel.c
drivers/hwtracing/coresight/coresight-replicator.c
drivers/hwtracing/coresight/coresight-stm.c
drivers/hwtracing/coresight/coresight-tmc-etf.c
drivers/hwtracing/coresight/coresight-tmc-etr.c
drivers/hwtracing/coresight/coresight-tmc.c
drivers/hwtracing/coresight/coresight-tpiu.c

index f6d0571ab9dd59e10066f6143d6206f69b022dc7..ebb80438f6a554f7f6a064fdfc32f1d932048f7d 100644 (file)
@@ -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 = {
index 0dad8626bcfbf422f2a04c73304ab169ddb028eb..3d4b6df32a061d226b506c2e8b88a229a6a14833 100644 (file)
@@ -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)
index 7c74263c333d4862bcb89bfb77fe194585d16c08..9ce8fba20b0f9e62b1f6ed4902fa1bb7e37ed660 100644 (file)
@@ -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,
index 1d94ebec027b52054f6aaf22a54dd29c96db535a..c1dcc7c289a50a17a3acaa6a87130f74ab640c62 100644 (file)
@@ -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,
index 448145a36675ea8b995257cbb08ce99765aa47f1..ee7a30bf9480fc46c9b0f03b3e4d61b9c70aaf09 100644 (file)
@@ -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 = {
index 8d2eaaab6c2f8e5fd767d5ccd9e79218e1fd24f1..feac9831547107874d827fff7c5174cf9b992327 100644 (file)
@@ -35,7 +35,7 @@ static int replicator_enable(struct coresight_device *csdev, int inport,
 {
        struct replicator_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent);
 
-       dev_info(drvdata->dev, "REPLICATOR enabled\n");
+       dev_dbg(drvdata->dev, "REPLICATOR enabled\n");
        return 0;
 }
 
@@ -44,7 +44,7 @@ static void replicator_disable(struct coresight_device *csdev, int inport,
 {
        struct replicator_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent);
 
-       dev_info(drvdata->dev, "REPLICATOR disabled\n");
+       dev_dbg(drvdata->dev, "REPLICATOR disabled\n");
 }
 
 static const struct coresight_ops_link replicator_link_ops = {
index c46c70aec1d50534031f023a8612b5b1055574dd..35d6f9709274d9bf45cf19905dce0a6340366829 100644 (file)
@@ -211,7 +211,7 @@ static int stm_enable(struct coresight_device *csdev,
        stm_enable_hw(drvdata);
        spin_unlock(&drvdata->spinlock);
 
-       dev_info(drvdata->dev, "STM tracing enabled\n");
+       dev_dbg(drvdata->dev, "STM tracing enabled\n");
        return 0;
 }
 
@@ -274,7 +274,7 @@ static void stm_disable(struct coresight_device *csdev,
                pm_runtime_put(drvdata->dev);
 
                local_set(&drvdata->mode, CS_MODE_DISABLED);
-               dev_info(drvdata->dev, "STM tracing disabled\n");
+               dev_dbg(drvdata->dev, "STM tracing disabled\n");
        }
 }
 
index 0549249f4b3988050224ee016281922434bfde16..434003a43346cf30b60cbc76194a04423c7f0cb6 100644 (file)
@@ -233,7 +233,7 @@ static int tmc_enable_etf_sink(struct coresight_device *csdev, u32 mode)
        if (ret)
                return ret;
 
-       dev_info(drvdata->dev, "TMC-ETB/ETF enabled\n");
+       dev_dbg(drvdata->dev, "TMC-ETB/ETF enabled\n");
        return 0;
 }
 
@@ -256,7 +256,7 @@ static void tmc_disable_etf_sink(struct coresight_device *csdev)
 
        spin_unlock_irqrestore(&drvdata->spinlock, flags);
 
-       dev_info(drvdata->dev, "TMC-ETB/ETF disabled\n");
+       dev_dbg(drvdata->dev, "TMC-ETB/ETF disabled\n");
 }
 
 static int tmc_enable_etf_link(struct coresight_device *csdev,
@@ -275,7 +275,7 @@ static int tmc_enable_etf_link(struct coresight_device *csdev,
        drvdata->mode = CS_MODE_SYSFS;
        spin_unlock_irqrestore(&drvdata->spinlock, flags);
 
-       dev_info(drvdata->dev, "TMC-ETF enabled\n");
+       dev_dbg(drvdata->dev, "TMC-ETF enabled\n");
        return 0;
 }
 
@@ -295,7 +295,7 @@ static void tmc_disable_etf_link(struct coresight_device *csdev,
        drvdata->mode = CS_MODE_DISABLED;
        spin_unlock_irqrestore(&drvdata->spinlock, flags);
 
-       dev_info(drvdata->dev, "TMC-ETF disabled\n");
+       dev_dbg(drvdata->dev, "TMC-ETF disabled\n");
 }
 
 static void *tmc_alloc_etf_buffer(struct coresight_device *csdev, int cpu,
index bafd73e71c4c793ca6a5360d361b278a93e718a8..5e9bb2f0e9c0c147a403073f08f8c0c63bf7c14d 100644 (file)
@@ -1098,7 +1098,7 @@ out:
                tmc_etr_free_sysfs_buf(free_buf);
 
        if (!ret)
-               dev_info(drvdata->dev, "TMC-ETR enabled\n");
+               dev_dbg(drvdata->dev, "TMC-ETR enabled\n");
 
        return ret;
 }
@@ -1141,7 +1141,7 @@ static void tmc_disable_etr_sink(struct coresight_device *csdev)
 
        spin_unlock_irqrestore(&drvdata->spinlock, flags);
 
-       dev_info(drvdata->dev, "TMC-ETR disabled\n");
+       dev_dbg(drvdata->dev, "TMC-ETR disabled\n");
 }
 
 static const struct coresight_ops_sink tmc_etr_sink_ops = {
index 1b817ec1192c0b2e3483dac2c5456d0250bf73b5..ea249f0bcd73c63e54645aab10dce41e5455c831 100644 (file)
@@ -81,7 +81,7 @@ static int tmc_read_prepare(struct tmc_drvdata *drvdata)
        }
 
        if (!ret)
-               dev_info(drvdata->dev, "TMC read start\n");
+               dev_dbg(drvdata->dev, "TMC read start\n");
 
        return ret;
 }
@@ -103,7 +103,7 @@ static int tmc_read_unprepare(struct tmc_drvdata *drvdata)
        }
 
        if (!ret)
-               dev_info(drvdata->dev, "TMC read end\n");
+               dev_dbg(drvdata->dev, "TMC read end\n");
 
        return ret;
 }
index 459ef930d98cdc91e40a5f56a0329bd40e3a96ff..ce0b84583861d35b72beb3904403a9280ed71011 100644 (file)
@@ -74,7 +74,7 @@ static int tpiu_enable(struct coresight_device *csdev, u32 mode)
 
        tpiu_enable_hw(drvdata);
 
-       dev_info(drvdata->dev, "TPIU enabled\n");
+       dev_dbg(drvdata->dev, "TPIU enabled\n");
        return 0;
 }
 
@@ -100,7 +100,7 @@ static void tpiu_disable(struct coresight_device *csdev)
 
        tpiu_disable_hw(drvdata);
 
-       dev_info(drvdata->dev, "TPIU disabled\n");
+       dev_dbg(drvdata->dev, "TPIU disabled\n");
 }
 
 static const struct coresight_ops_sink tpiu_sink_ops = {