summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClarence Ip <cip@codeaurora.org>2016-09-02 17:46:25 -0400
committerClarence Ip <cip@codeaurora.org>2016-10-05 10:54:01 -0400
commit2ec153e47e2aaa9f3bf8f658dce60cc5160f2177 (patch)
tree2bc753ff61f22d46464a9b2e3a99d8ccb0ff42cd
parent1f819168bd4460619d250e1053886ffa7175d724 (diff)
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 <cip@codeaurora.org>
-rw-r--r--drivers/gpu/drm/msm/sde/sde_hw_util.c5
1 files changed, 4 insertions, 1 deletions
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);
}