disp: msm: dp: adding prefix for logs
Adding prefixes for error, debug and info messages in dp files. To enable debug logs run "echo 0x100 > /sys/module/drm/parameters/debug" CRs-Fixed: 2493739 Change-Id: Ibf509e837f527be6bff6b7a1c34b0cde2921b388 Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
这个提交包含在:
@@ -3,8 +3,6 @@
|
||||
* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#define pr_fmt(fmt) "[drm-dp] %s: " fmt, __func__
|
||||
|
||||
#include <linux/interrupt.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/kernel.h>
|
||||
@@ -15,6 +13,7 @@
|
||||
#include <linux/sde_io_util.h>
|
||||
#include <linux/of_gpio.h>
|
||||
#include "dp_gpio_hpd.h"
|
||||
#include "dp_debug.h"
|
||||
|
||||
struct dp_gpio_hpd_private {
|
||||
struct device *dev;
|
||||
@@ -31,7 +30,7 @@ static int dp_gpio_hpd_connect(struct dp_gpio_hpd_private *gpio_hpd, bool hpd)
|
||||
int rc = 0;
|
||||
|
||||
if (!gpio_hpd) {
|
||||
pr_err("invalid input\n");
|
||||
DP_ERR("invalid input\n");
|
||||
rc = -EINVAL;
|
||||
goto error;
|
||||
}
|
||||
@@ -43,7 +42,7 @@ static int dp_gpio_hpd_connect(struct dp_gpio_hpd_private *gpio_hpd, bool hpd)
|
||||
if (!gpio_hpd->cb ||
|
||||
!gpio_hpd->cb->configure ||
|
||||
!gpio_hpd->cb->disconnect) {
|
||||
pr_err("invalid cb\n");
|
||||
DP_ERR("invalid cb\n");
|
||||
rc = -EINVAL;
|
||||
goto error;
|
||||
}
|
||||
@@ -62,7 +61,7 @@ static int dp_gpio_hpd_attention(struct dp_gpio_hpd_private *gpio_hpd)
|
||||
int rc = 0;
|
||||
|
||||
if (!gpio_hpd) {
|
||||
pr_err("invalid input\n");
|
||||
DP_ERR("invalid input\n");
|
||||
rc = -EINVAL;
|
||||
goto error;
|
||||
}
|
||||
@@ -144,7 +143,7 @@ static void dp_gpio_hpd_work(struct work_struct *work)
|
||||
}
|
||||
|
||||
if (ret < 0)
|
||||
pr_err("Cannot claim IRQ dp-gpio-intp\n");
|
||||
DP_ERR("Cannot claim IRQ dp-gpio-intp\n");
|
||||
}
|
||||
|
||||
static int dp_gpio_hpd_simulate_connect(struct dp_hpd *dp_hpd, bool hpd)
|
||||
@@ -153,7 +152,7 @@ static int dp_gpio_hpd_simulate_connect(struct dp_hpd *dp_hpd, bool hpd)
|
||||
struct dp_gpio_hpd_private *gpio_hpd;
|
||||
|
||||
if (!dp_hpd) {
|
||||
pr_err("invalid input\n");
|
||||
DP_ERR("invalid input\n");
|
||||
rc = -EINVAL;
|
||||
goto error;
|
||||
}
|
||||
@@ -171,7 +170,7 @@ static int dp_gpio_hpd_simulate_attention(struct dp_hpd *dp_hpd, int vdo)
|
||||
struct dp_gpio_hpd_private *gpio_hpd;
|
||||
|
||||
if (!dp_hpd) {
|
||||
pr_err("invalid input\n");
|
||||
DP_ERR("invalid input\n");
|
||||
rc = -EINVAL;
|
||||
goto error;
|
||||
}
|
||||
@@ -202,7 +201,7 @@ int dp_gpio_hpd_register(struct dp_hpd *dp_hpd)
|
||||
edge | IRQF_ONESHOT,
|
||||
"dp-gpio-intp", gpio_hpd);
|
||||
if (rc) {
|
||||
pr_err("Failed to request INTP threaded IRQ: %d\n", rc);
|
||||
DP_ERR("Failed to request INTP threaded IRQ: %d\n", rc);
|
||||
return rc;
|
||||
}
|
||||
|
||||
@@ -221,7 +220,7 @@ struct dp_hpd *dp_gpio_hpd_get(struct device *dev,
|
||||
struct dp_pinctrl pinctrl = {0};
|
||||
|
||||
if (!dev || !cb) {
|
||||
pr_err("invalid device\n");
|
||||
DP_ERR("invalid device\n");
|
||||
rc = -EINVAL;
|
||||
goto error;
|
||||
}
|
||||
@@ -240,7 +239,7 @@ struct dp_hpd *dp_gpio_hpd_get(struct device *dev,
|
||||
rc = pinctrl_select_state(pinctrl.pin,
|
||||
pinctrl.state_hpd_active);
|
||||
if (rc) {
|
||||
pr_err("failed to set hpd active state\n");
|
||||
DP_ERR("failed to set hpd active state\n");
|
||||
goto gpio_error;
|
||||
}
|
||||
}
|
||||
@@ -249,7 +248,7 @@ struct dp_hpd *dp_gpio_hpd_get(struct device *dev,
|
||||
gpio_hpd->gpio_cfg.gpio = of_get_named_gpio(dev->of_node,
|
||||
hpd_gpio_name, 0);
|
||||
if (!gpio_is_valid(gpio_hpd->gpio_cfg.gpio)) {
|
||||
pr_err("%s gpio not specified\n", hpd_gpio_name);
|
||||
DP_ERR("%s gpio not specified\n", hpd_gpio_name);
|
||||
rc = -EINVAL;
|
||||
goto gpio_error;
|
||||
}
|
||||
@@ -261,7 +260,7 @@ struct dp_hpd *dp_gpio_hpd_get(struct device *dev,
|
||||
rc = gpio_request(gpio_hpd->gpio_cfg.gpio,
|
||||
gpio_hpd->gpio_cfg.gpio_name);
|
||||
if (rc) {
|
||||
pr_err("%s: failed to request gpio\n", hpd_gpio_name);
|
||||
DP_ERR("%s: failed to request gpio\n", hpd_gpio_name);
|
||||
goto gpio_error;
|
||||
}
|
||||
gpio_direction_input(gpio_hpd->gpio_cfg.gpio);
|
||||
|
在新工单中引用
屏蔽一个用户