diff options
author | Dave Airlie <airlied@redhat.com> | 2021-11-26 10:36:06 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2021-11-26 10:36:33 +1000 |
commit | fc026c8b926835b46509a2757732bfa38a2162f1 (patch) | |
tree | ba00cb78a31f29d42c12dbb7be7070bff858b065 /drivers/gpu/drm/i915/pxp/intel_pxp_pm.h | |
parent | 7798a7369272b523646d6810ffe71012cf9f420a (diff) | |
parent | b8d8436840caa2e9b6d156e69336d2135f49f10f (diff) | |
download | linux-fc026c8b926835b46509a2757732bfa38a2162f1.tar.bz2 |
Merge tag 'drm-intel-fixes-2021-11-24' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
Fix wakeref handling of PXP suspend.
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/YZ65bsPOK+6JLv0d@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/pxp/intel_pxp_pm.h')
-rw-r--r-- | drivers/gpu/drm/i915/pxp/intel_pxp_pm.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/pxp/intel_pxp_pm.h b/drivers/gpu/drm/i915/pxp/intel_pxp_pm.h index c89e97a0c3d0..16990a3f2f85 100644 --- a/drivers/gpu/drm/i915/pxp/intel_pxp_pm.h +++ b/drivers/gpu/drm/i915/pxp/intel_pxp_pm.h @@ -9,16 +9,29 @@ #include "intel_pxp_types.h" #ifdef CONFIG_DRM_I915_PXP -void intel_pxp_suspend(struct intel_pxp *pxp, bool runtime); +void intel_pxp_suspend_prepare(struct intel_pxp *pxp); +void intel_pxp_suspend(struct intel_pxp *pxp); void intel_pxp_resume(struct intel_pxp *pxp); +void intel_pxp_runtime_suspend(struct intel_pxp *pxp); #else -static inline void intel_pxp_suspend(struct intel_pxp *pxp, bool runtime) +static inline void intel_pxp_suspend_prepare(struct intel_pxp *pxp) +{ +} + +static inline void intel_pxp_suspend(struct intel_pxp *pxp) { } static inline void intel_pxp_resume(struct intel_pxp *pxp) { } -#endif +static inline void intel_pxp_runtime_suspend(struct intel_pxp *pxp) +{ +} +#endif +static inline void intel_pxp_runtime_resume(struct intel_pxp *pxp) +{ + intel_pxp_resume(pxp); +} #endif /* __INTEL_PXP_PM_H__ */ |