Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/exynos/exynos7_drm_decon: Use platform_get_irq_byname() to get the interrupt

platform_get_resource_byname(pdev, IORESOURCE_IRQ, ..) relies on static
allocation of IRQ resources in DT core code, this causes an issue
when using hierarchical interrupt domains using "interrupts" property
in the node as this bypassed the hierarchical setup and messed up the
irq chaining.

In preparation for removal of static setup of IRQ resource from DT core
code use platform_get_irq_byname().

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>

authored by

Lad Prabhakar and committed by
Inki Dae
970dc5ed 6de7e4f0

+3 -9
+3 -9
drivers/gpu/drm/exynos/exynos7_drm_decon.c
··· 678 678 struct device *dev = &pdev->dev; 679 679 struct decon_context *ctx; 680 680 struct device_node *i80_if_timings; 681 - struct resource *res; 682 681 int ret; 683 682 684 683 if (!dev->of_node) ··· 727 728 goto err_iounmap; 728 729 } 729 730 730 - res = platform_get_resource_byname(pdev, IORESOURCE_IRQ, 731 - ctx->i80_if ? "lcd_sys" : "vsync"); 732 - if (!res) { 733 - dev_err(dev, "irq request failed.\n"); 734 - ret = -ENXIO; 731 + ret = platform_get_irq_byname(pdev, ctx->i80_if ? "lcd_sys" : "vsync"); 732 + if (ret < 0) 735 733 goto err_iounmap; 736 - } 737 734 738 - ret = devm_request_irq(dev, res->start, decon_irq_handler, 739 - 0, "drm_decon", ctx); 735 + ret = devm_request_irq(dev, ret, decon_irq_handler, 0, "drm_decon", ctx); 740 736 if (ret) { 741 737 dev_err(dev, "irq request failed.\n"); 742 738 goto err_iounmap;