From 55fe2104bb60099282e1b7c110e2fe8400db7574 Mon Sep 17 00:00:00 2001 From: zwl Date: Wed, 14 May 2014 14:33:35 +0800 Subject: [PATCH] rk hdmi: fix hdmi win state err when suspend --- drivers/video/rockchip/hdmi/rk_hdmi_task.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/video/rockchip/hdmi/rk_hdmi_task.c b/drivers/video/rockchip/hdmi/rk_hdmi_task.c index 135688f8ecbf..fecf87d25456 100755 --- a/drivers/video/rockchip/hdmi/rk_hdmi_task.c +++ b/drivers/video/rockchip/hdmi/rk_hdmi_task.c @@ -119,10 +119,11 @@ static int hdmi_process_command(struct hdmi *hdmi) mutex_lock(&hdmi->enable_mutex); if(!hdmi->enable || hdmi->suspend) { - if(hdmi->hotplug == HDMI_HPD_ACTIVED) + if(hdmi->hotplug != HDMI_HPD_REMOVED) { + hdmi->hotplug = HDMI_HPD_REMOVED; hdmi_sys_remove(hdmi); + } hdmi->state = HDMI_SLEEP; - hdmi->hotplug = HDMI_HPD_REMOVED; hdmi->remove(hdmi); state = HDMI_SLEEP; } -- 2.34.1