Skip to content

Commit a4e5eed

Browse files
Tian Taodaeinki
authored andcommitted
drm/exynos: move to use request_irq by IRQF_NO_AUTOEN flag
After this patch cbe16f3 genirq: Add IRQF_NO_AUTOEN for request_irq/nmi() is merged. request_irq() after setting IRQ_NOAUTOEN as below irq_set_status_flags(irq, IRQ_NOAUTOEN); request_irq(dev, irq...); can be replaced by request_irq() with IRQF_NO_AUTOEN flag. v2: Fix the problem of using wrong flags Signed-off-by: Tian Tao <[email protected]> Signed-off-by: Inki Dae <[email protected]>
1 parent 99e5730 commit a4e5eed

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

drivers/gpu/drm/exynos/exynos5433_drm_decon.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -775,8 +775,8 @@ static int decon_conf_irq(struct decon_context *ctx, const char *name,
775775
return irq;
776776
}
777777
}
778-
irq_set_status_flags(irq, IRQ_NOAUTOEN);
779-
ret = devm_request_irq(ctx->dev, irq, handler, flags, "drm_decon", ctx);
778+
ret = devm_request_irq(ctx->dev, irq, handler,
779+
flags | IRQF_NO_AUTOEN, "drm_decon", ctx);
780780
if (ret < 0) {
781781
dev_err(ctx->dev, "IRQ %s request failed\n", name);
782782
return ret;

drivers/gpu/drm/exynos/exynos_drm_dsi.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,10 +1352,9 @@ static int exynos_dsi_register_te_irq(struct exynos_dsi *dsi,
13521352
}
13531353

13541354
te_gpio_irq = gpio_to_irq(dsi->te_gpio);
1355-
irq_set_status_flags(te_gpio_irq, IRQ_NOAUTOEN);
13561355

13571356
ret = request_threaded_irq(te_gpio_irq, exynos_dsi_te_irq_handler, NULL,
1358-
IRQF_TRIGGER_RISING, "TE", dsi);
1357+
IRQF_TRIGGER_RISING | IRQF_NO_AUTOEN, "TE", dsi);
13591358
if (ret) {
13601359
dev_err(dsi->dev, "request interrupt failed with %d\n", ret);
13611360
gpio_free(dsi->te_gpio);
@@ -1802,9 +1801,9 @@ static int exynos_dsi_probe(struct platform_device *pdev)
18021801
if (dsi->irq < 0)
18031802
return dsi->irq;
18041803

1805-
irq_set_status_flags(dsi->irq, IRQ_NOAUTOEN);
18061804
ret = devm_request_threaded_irq(dev, dsi->irq, NULL,
1807-
exynos_dsi_irq, IRQF_ONESHOT,
1805+
exynos_dsi_irq,
1806+
IRQF_ONESHOT | IRQF_NO_AUTOEN,
18081807
dev_name(dev), dsi);
18091808
if (ret) {
18101809
dev_err(dev, "failed to request dsi irq\n");

0 commit comments

Comments
 (0)