From 2ec153e47e2aaa9f3bf8f658dce60cc5160f2177 Mon Sep 17 00:00:00 2001 From: Clarence Ip Date: Fri, 2 Sep 2016 17:46:25 -0400 Subject: drm/msm/sde: update register writes to use SDE logging macros Update low level register write function to use common SDE debug macros to allow the logs to be enabled both from the drm_debug and dynamic debug interfaces. Change-Id: I232fcd205c52ce91f215fa0b4f2c363103c3864d Signed-off-by: Clarence Ip --- drivers/gpu/drm/msm/sde/sde_hw_util.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'drivers/gpu') diff --git a/drivers/gpu/drm/msm/sde/sde_hw_util.c b/drivers/gpu/drm/msm/sde/sde_hw_util.c index 51d8c2e50529..6f52f31a7569 100644 --- a/drivers/gpu/drm/msm/sde/sde_hw_util.c +++ b/drivers/gpu/drm/msm/sde/sde_hw_util.c @@ -9,7 +9,9 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ +#define pr_fmt(fmt) "[drm:%s:%d] " fmt, __func__, __LINE__ #include "msm_drv.h" +#include "sde_kms.h" #include "sde_hw_mdss.h" #include "sde_hw_util.h" @@ -23,7 +25,8 @@ void sde_reg_write(struct sde_hw_blk_reg_map *c, { /* don't need to mutex protect this */ if (c->log_mask & sde_hw_util_log_mask) - DBG("[%s:0x%X] <= 0x%X", name, c->blk_off + reg_off, val); + SDE_DEBUG_DRIVER("[%s:0x%X] <= 0x%X\n", + name, c->blk_off + reg_off, val); writel_relaxed(val, c->base_off + c->blk_off + reg_off); } -- cgit v1.2.3