From: hjc Date: Sat, 12 Jul 2014 07:46:17 +0000 (+0800) Subject: rk3036 hdmi: use irq to trigger hdmi mode change X-Git-Tag: firefly_0821_release~4916^2~247^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0f24a80293a4cca33f7f1e7aa74a9fa897f40e1e;p=firefly-linux-kernel-4.4.55.git rk3036 hdmi: use irq to trigger hdmi mode change --- diff --git a/drivers/video/rockchip/hdmi/chips/rk616/rk616_hdmi.c b/drivers/video/rockchip/hdmi/chips/rk616/rk616_hdmi.c index c58dec98908d..6f15b43b865f 100755 --- a/drivers/video/rockchip/hdmi/chips/rk616/rk616_hdmi.c +++ b/drivers/video/rockchip/hdmi/chips/rk616/rk616_hdmi.c @@ -249,7 +249,6 @@ static void __maybe_unused rk616_irq_work_func(struct work_struct *work) dev_info(hdmi_drv->dev, "func: %s, enable_irq\n", __func__); enable_irq(hdmi_drv->irq); } -#if 0 static irqreturn_t rk616_hdmi_irq(int irq, void *dev_id) { struct work_struct *rk616_irq_work_struct; @@ -271,7 +270,7 @@ static irqreturn_t rk616_hdmi_irq(int irq, void *dev_id) } return IRQ_HANDLED; } -#endif + static int rk616_hdmi_drv_init(struct hdmi *hdmi_drv) { int ret = 0; @@ -398,7 +397,6 @@ static int rk616_hdmi_probe(struct platform_device *pdev) hdmi_drv->irq = 0; } else { /* request the IRQ */ - #if 0 ret = devm_request_irq(hdmi_drv->dev, hdmi_drv->irq, rk616_hdmi_irq, 0, dev_name(hdmi_drv->dev), hdmi_drv); @@ -407,7 +405,6 @@ static int rk616_hdmi_probe(struct platform_device *pdev) ret); goto err2; } - #endif } #else if (gpio_is_valid(hdmi_dev->rk616_drv->pdata->hdmi_irq)) { diff --git a/drivers/video/rockchip/hdmi/chips/rk616/rk616_hdmi_hw.c b/drivers/video/rockchip/hdmi/chips/rk616/rk616_hdmi_hw.c index fcc35e1a27f7..ebbe334ea938 100755 --- a/drivers/video/rockchip/hdmi/chips/rk616/rk616_hdmi_hw.c +++ b/drivers/video/rockchip/hdmi/chips/rk616/rk616_hdmi_hw.c @@ -631,7 +631,7 @@ static void rk616_hdmi_reset(struct hdmi *hdmi_drv) #ifdef SOC_CONFIG_RK3036 hdmi_readl(hdmi_dev, HDMI_STATUS,&val);//enable hpg val |= m_MASK_INT_HOTPLUG; - hdmi_writel(hdmi_dev, HDMI_STATUS,val); + //hdmi_writel(hdmi_dev, HDMI_STATUS,val); #else hdmi_writel(hdmi_dev, INTERRUPT_MASK1, m_INT_HOTPLUG); #endif