summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/msm
diff options
context:
space:
mode:
authorUjwal Patel <ujwalp@codeaurora.org>2013-03-07 10:23:12 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:15:09 -0700
commit156bdf7fe197bbf3ff34bba557636aab2590fc35 (patch)
tree11818794ebb58a76691eef48e404baeaf0f4cfbc /drivers/video/fbdev/msm
parent7ff5d6cfe89441bc7aa23f3e3a2bc79649fa5243 (diff)
msm: mdss: hdmi: remove cable state notifications using uevents
Sending cable connect/disconnect notfications to userspace using uevents is obsolete in presense of switch state notifications. Remove this notifications in order to prevent user-space uevent threads from waking up. Change-Id: If362db7d46ee171d7e3ac5c23aed799618ecf362 Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
Diffstat (limited to 'drivers/video/fbdev/msm')
-rw-r--r--drivers/video/fbdev/msm/mdss_hdmi_tx.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/drivers/video/fbdev/msm/mdss_hdmi_tx.c b/drivers/video/fbdev/msm/mdss_hdmi_tx.c
index 6eb28a02b840..f7f3770af530 100644
--- a/drivers/video/fbdev/msm/mdss_hdmi_tx.c
+++ b/drivers/video/fbdev/msm/mdss_hdmi_tx.c
@@ -428,9 +428,6 @@ static int hdmi_tx_sysfs_create(struct hdmi_tx_ctrl *hdmi_ctrl,
hdmi_ctrl->kobj = &fbi->dev->kobj;
DEV_DBG("%s: sysfs group %p\n", __func__, hdmi_ctrl->kobj);
- kobject_uevent(hdmi_ctrl->kobj, KOBJ_ADD);
- DEV_DBG("%s: kobject_uevent(KOBJ_ADD)\n", __func__);
-
return 0;
} /* hdmi_tx_sysfs_create */
@@ -697,17 +694,13 @@ static void hdmi_tx_hpd_int_work(struct work_struct *work)
if (hdmi_ctrl->hpd_state) {
hdmi_tx_read_sink_info(hdmi_ctrl);
- DEV_INFO("HDMI HPD: sense CONNECTED: send ONLINE\n");
- kobject_uevent(hdmi_ctrl->kobj, KOBJ_ONLINE);
switch_set_state(&hdmi_ctrl->sdev, 1);
- DEV_INFO("%s: Hdmi state switch to %d\n", __func__,
- hdmi_ctrl->sdev.state);
+ DEV_INFO("%s: sense cable CONNECTED: state switch to %d\n",
+ __func__, hdmi_ctrl->sdev.state);
} else {
- DEV_INFO("HDMI HPD: sense DISCONNECTED: send OFFLINE\n");
- kobject_uevent(hdmi_ctrl->kobj, KOBJ_OFFLINE);
switch_set_state(&hdmi_ctrl->sdev, 0);
- DEV_INFO("%s: Hdmi state switch to %d\n", __func__,
- hdmi_ctrl->sdev.state);
+ DEV_INFO("%s: sense cable DISCONNECTED: state switch to %d\n",
+ __func__, hdmi_ctrl->sdev.state);
}
if (!completion_done(&hdmi_ctrl->hpd_done))
@@ -2267,8 +2260,6 @@ static int hdmi_tx_sysfs_enable_hpd(struct hdmi_tx_ctrl *hdmi_ctrl, int on)
switch_set_state(&hdmi_ctrl->sdev, 0);
DEV_DBG("%s: Hdmi state switch to %d\n", __func__,
hdmi_ctrl->sdev.state);
- DEV_DBG("HDMI HPD: sent fake OFFLINE event\n");
- kobject_uevent(hdmi_ctrl->kobj, KOBJ_OFFLINE);
}
}
@@ -2488,10 +2479,7 @@ static int hdmi_tx_panel_event_handler(struct mdss_panel_data *panel_data,
if (!timeout & !hdmi_ctrl->hpd_state) {
DEV_INFO("%s: cable removed during suspend\n",
__func__);
-
- kobject_uevent(hdmi_ctrl->kobj, KOBJ_OFFLINE);
switch_set_state(&hdmi_ctrl->sdev, 0);
-
rc = -EPERM;
} else {
DEV_DBG("%s: cable present after resume\n",