bcm27xx-userland: update to latest version
[openwrt/staging/wigyori.git] / target / linux / bcm27xx / patches-5.4 / 950-0557-drm-vc4-crtc-Use-a-shared-interrupt.patch
1 From 5451dc04ff87dcf514c422f180ea5e23b7b60151 Mon Sep 17 00:00:00 2001
2 From: Maxime Ripard <maxime@cerno.tech>
3 Date: Thu, 9 Jan 2020 18:40:49 +0100
4 Subject: [PATCH] drm/vc4: crtc: Use a shared interrupt
5
6 Some pixelvalves in vc5 use the same interrupt line so let's register our
7 interrupt handler as a shared one.
8
9 Signed-off-by: Maxime Ripard <maxime@cerno.tech>
10 ---
11 drivers/gpu/drm/vc4/vc4_crtc.c | 4 +++-
12 1 file changed, 3 insertions(+), 1 deletion(-)
13
14 --- a/drivers/gpu/drm/vc4/vc4_crtc.c
15 +++ b/drivers/gpu/drm/vc4/vc4_crtc.c
16 @@ -1177,7 +1177,9 @@ static int vc4_crtc_bind(struct device *
17 CRTC_WRITE(PV_INTEN, 0);
18 CRTC_WRITE(PV_INTSTAT, PV_INT_VFP_START);
19 ret = devm_request_irq(dev, platform_get_irq(pdev, 0),
20 - vc4_crtc_irq_handler, 0, "vc4 crtc", vc4_crtc);
21 + vc4_crtc_irq_handler,
22 + IRQF_SHARED,
23 + "vc4 crtc", vc4_crtc);
24 if (ret)
25 goto err_destroy_planes;
26