summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/tegra/dsi.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2017-08-15 16:41:12 +0300
committerThierry Reding <treding@nvidia.com>2017-08-17 18:57:16 +0300
commit75af8fa7fd47e8f76198e13052b42e66d9e1f233 (patch)
treeefb9bf9f372461341d315a96c91a2ee1e8cb1493 /drivers/gpu/drm/tegra/dsi.c
parent07a8aab89927ee58100b9a0d121dafacbcc3a5dd (diff)
downloadlinux-75af8fa7fd47e8f76198e13052b42e66d9e1f233.tar.xz
drm/tegra: dsi: Trace register accesses
Add tracepoint events for DSI controller register accesses. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/dsi.c')
-rw-r--r--drivers/gpu/drm/tegra/dsi.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/dsi.c b/drivers/gpu/drm/tegra/dsi.c
index 444664b92fbb..6050cc4ebbaf 100644
--- a/drivers/gpu/drm/tegra/dsi.c
+++ b/drivers/gpu/drm/tegra/dsi.c
@@ -28,6 +28,7 @@
#include "drm.h"
#include "dsi.h"
#include "mipi-phy.h"
+#include "trace.h"
struct tegra_dsi_state {
struct drm_connector_state base;
@@ -107,12 +108,17 @@ static struct tegra_dsi_state *tegra_dsi_get_state(struct tegra_dsi *dsi)
static inline u32 tegra_dsi_readl(struct tegra_dsi *dsi, unsigned int offset)
{
- return readl(dsi->regs + (offset << 2));
+ u32 value = readl(dsi->regs + (offset << 2));
+
+ trace_dsi_readl(dsi->dev, offset, value);
+
+ return value;
}
static inline void tegra_dsi_writel(struct tegra_dsi *dsi, u32 value,
unsigned int offset)
{
+ trace_dsi_writel(dsi->dev, offset, value);
writel(value, dsi->regs + (offset << 2));
}