OSDN Git Service

drm/lima: add pm resume/suspend ops
authorQiang Yu <yuq825@gmail.com>
Tue, 21 Apr 2020 13:35:50 +0000 (21:35 +0800)
committerQiang Yu <yuq825@gmail.com>
Fri, 24 Apr 2020 12:51:19 +0000 (20:51 +0800)
commit63945d51490f16aede6d635e785faf56521e5e4a
treee4bc1915f491fa4c7f8857c19d07efb0cdde7556
parent7a475eb470ac482306c9281b2faadf2cbfb6b84c
drm/lima: add pm resume/suspend ops

Add driver pm system and runtime hardware resume/suspend ops.
Note this won't enable runtime pm of the device yet.

v2:
Do clock and power gating when suspend/resume.

Tested-by: Bhushan Shah <bshah@kde.org>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200421133551.31481-10-yuq825@gmail.com
drivers/gpu/drm/lima/lima_device.c
drivers/gpu/drm/lima/lima_device.h
drivers/gpu/drm/lima/lima_drv.c