bcm27xx: update to latest patches from RPi foundation
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.4 / 950-0228-drm-v3d-Hook-up-the-runtime-PM-ops.patch
1 From 0b1f35dfb545dab884df2b4761e1af731f41ca9e 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] 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 @@ -69,7 +69,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 @@ -362,6 +362,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