diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2019-07-09 20:32:28 +0200 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2019-07-14 12:44:14 +0200 |
commit | 42954857190b9df16d9d873ecc7f6cc38e013e44 (patch) | |
tree | 98c588f629ff534d458eb0884782ea99672d7634 /target/linux/brcm2708/patches-4.19/950-0590-drm-v3d-Update-to-upstream-IRQ-code.patch | |
parent | f1875e902d0afb7d9b9e5285b4fd8da7f6c5e30a (diff) | |
download | upstream-42954857190b9df16d9d873ecc7f6cc38e013e44.tar.gz upstream-42954857190b9df16d9d873ecc7f6cc38e013e44.tar.bz2 upstream-42954857190b9df16d9d873ecc7f6cc38e013e44.zip |
brcm2708: add linux 4.19 support
Boot tested on Raspberry Pi B+ (BCM2708) and Raspberry Pi 2 (BCM2709)
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/brcm2708/patches-4.19/950-0590-drm-v3d-Update-to-upstream-IRQ-code.patch')
-rw-r--r-- | target/linux/brcm2708/patches-4.19/950-0590-drm-v3d-Update-to-upstream-IRQ-code.patch | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/target/linux/brcm2708/patches-4.19/950-0590-drm-v3d-Update-to-upstream-IRQ-code.patch b/target/linux/brcm2708/patches-4.19/950-0590-drm-v3d-Update-to-upstream-IRQ-code.patch new file mode 100644 index 0000000000..2cb16a97e6 --- /dev/null +++ b/target/linux/brcm2708/patches-4.19/950-0590-drm-v3d-Update-to-upstream-IRQ-code.patch @@ -0,0 +1,59 @@ +From 97f75af520bb5c124641b0704ebbd171f80d0bfb Mon Sep 17 00:00:00 2001 +From: Eric Anholt <eric@anholt.net> +Date: Tue, 12 Mar 2019 09:08:10 -0700 +Subject: [PATCH 590/703] drm/v3d: Update to upstream IRQ code. + +--- + drivers/gpu/drm/v3d/v3d_irq.c | 25 +++++++++++++++---------- + 1 file changed, 15 insertions(+), 10 deletions(-) + +--- a/drivers/gpu/drm/v3d/v3d_irq.c ++++ b/drivers/gpu/drm/v3d/v3d_irq.c +@@ -168,7 +168,7 @@ v3d_hub_irq(int irq, void *arg) + int + v3d_irq_init(struct v3d_dev *v3d) + { +- int ret, core; ++ int irq1, ret, core; + + INIT_WORK(&v3d->overflow_mem_work, v3d_overflow_mem_work); + +@@ -179,24 +179,29 @@ v3d_irq_init(struct v3d_dev *v3d) + V3D_CORE_WRITE(core, V3D_CTL_INT_CLR, V3D_CORE_IRQS); + V3D_WRITE(V3D_HUB_INT_CLR, V3D_HUB_IRQS); + +- if (platform_get_irq(v3d->pdev, 1) < 0) { +- ret = devm_request_irq(v3d->dev, platform_get_irq(v3d->pdev, 0), ++ irq1 = platform_get_irq(v3d->pdev, 1); ++ if (irq1 == -EPROBE_DEFER) ++ return irq1; ++ if (irq1 > 0) { ++ ret = devm_request_irq(v3d->dev, irq1, + v3d_irq, IRQF_SHARED, +- "v3d", v3d); +- v3d->single_irq_line = true; +- } else { ++ "v3d_core0", v3d); ++ if (ret) ++ goto fail; + ret = devm_request_irq(v3d->dev, platform_get_irq(v3d->pdev, 0), + v3d_hub_irq, IRQF_SHARED, + "v3d_hub", v3d); + if (ret) + goto fail; ++ } else { ++ v3d->single_irq_line = true; + +- ret = devm_request_irq(v3d->dev, platform_get_irq(v3d->pdev, 1), ++ ret = devm_request_irq(v3d->dev, platform_get_irq(v3d->pdev, 0), + v3d_irq, IRQF_SHARED, +- "v3d_core0", v3d); ++ "v3d", v3d); ++ if (ret) ++ goto fail; + } +- if (ret) +- goto fail; + + v3d_irq_enable(v3d); + return 0; |