OSDN Git Service

msm: mdss: Do not attempt to request TE irq again if already requested
authorRashi Bindra <rbindra@codeaurora.org>
Mon, 5 Jun 2017 07:32:59 +0000 (13:02 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Thu, 8 Jun 2017 10:50:31 +0000 (03:50 -0700)
If the TE irq is alredy requested and registred with a GPIO, then
setting it to true and not continuing with further requesting of
the same.

Change-Id: Iacd1677127c2663d88826e58f1b72704b58db939
Signed-off-by: Rashi Bindra <rbindra@codeaurora.org>
drivers/video/fbdev/msm/mdss_dsi.c

index 4f13334..48b151b 100644 (file)
@@ -3429,9 +3429,10 @@ static int mdss_dsi_ctrl_probe(struct platform_device *pdev)
                        hw_vsync_handler, IRQF_TRIGGER_FALLING,
                        "VSYNC_GPIO", ctrl_pdata);
                if (rc) {
-                       pr_err("TE request_irq failed.\n");
+                       pr_err("%s: TE request_irq failed for ESD\n", __func__);
                        goto error_shadow_clk_deinit;
                }
+               te_irq_registered = 1;
                disable_irq(gpio_to_irq(ctrl_pdata->disp_te_gpio));
        }