]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita4b452b0366080165041e77d644509268b18ed5e
treee4bc1915f491fa4c7f8857c19d07efb0cdde7556
parent3338aeff06fedc77e9b502d51c5a4cbed7dc6436
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