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/exynos_drm_fimd: 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
9df3f43a 6a91548e

+4 -9
+4 -9
drivers/gpu/drm/exynos/exynos_drm_fimd.c
··· 1133 1133 struct device *dev = &pdev->dev; 1134 1134 struct fimd_context *ctx; 1135 1135 struct device_node *i80_if_timings; 1136 - struct resource *res; 1137 1136 int ret; 1138 1137 1139 1138 if (!dev->of_node) ··· 1205 1206 if (IS_ERR(ctx->regs)) 1206 1207 return PTR_ERR(ctx->regs); 1207 1208 1208 - res = platform_get_resource_byname(pdev, IORESOURCE_IRQ, 1209 - ctx->i80_if ? "lcd_sys" : "vsync"); 1210 - if (!res) { 1211 - dev_err(dev, "irq request failed.\n"); 1212 - return -ENXIO; 1213 - } 1209 + ret = platform_get_irq_byname(pdev, ctx->i80_if ? "lcd_sys" : "vsync"); 1210 + if (ret < 0) 1211 + return ret; 1214 1212 1215 - ret = devm_request_irq(dev, res->start, fimd_irq_handler, 1216 - 0, "drm_fimd", ctx); 1213 + ret = devm_request_irq(dev, ret, fimd_irq_handler, 0, "drm_fimd", ctx); 1217 1214 if (ret) { 1218 1215 dev_err(dev, "irq request failed.\n"); 1219 1216 return ret;