brcm2708: update to latest patches from the RPi foundation
[openwrt/staging/lynxis.git] / target / linux / brcm2708 / patches-4.19 / 950-0584-drm-v3d-Hook-up-the-runtime-PM-ops.patch
1 From f436620c2c61e76adcd2d4d694ad9f4d87f301e3 Mon Sep 17 00:00:00 2001
2 From: Eric Anholt <eric@anholt.net>
3 Date: Mon, 14 Jan 2019 14:47:57 -0800
4 Subject: [PATCH 584/725] drm/v3d: Hook up the runtime PM ops.
5
6 In translating the runtime PM code from vc4, I missed the ".pm"
7 assignment to actually connect them up. Fixes missing MMU setup if
8 runtime PM resets V3D.
9
10 Signed-off-by: Eric Anholt <eric@anholt.net>
11 (cherry picked from commit ca197699af29baa8236c74c53d4904ca8957ee06)
12 ---
13 drivers/gpu/drm/v3d/v3d_drv.c | 3 ++-
14 1 file changed, 2 insertions(+), 1 deletion(-)
15
16 --- a/drivers/gpu/drm/v3d/v3d_drv.c
17 +++ b/drivers/gpu/drm/v3d/v3d_drv.c
18 @@ -66,7 +66,7 @@ static int v3d_runtime_resume(struct dev
19 }
20 #endif
21
22 -static const struct dev_pm_ops v3d_v3d_pm_ops = {
23 +static const struct dev_pm_ops v3d_pm_ops = {
24 SET_RUNTIME_PM_OPS(v3d_runtime_suspend, v3d_runtime_resume, NULL)
25 };
26
27 @@ -371,6 +371,7 @@ static struct platform_driver v3d_platfo
28 .driver = {
29 .name = "v3d",
30 .of_match_table = v3d_of_match,
31 + .pm = &v3d_pm_ops,
32 },
33 };
34