mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 18:07:21 +07:00
6e8edf8a7d
Commit7d902c05b4
("drm: Nuke drm_atomic_helper_connector_dpms") removed drm_atomic_helper_connector_dpms() helper saying that it was a dead code. It was however indirectly used by Exynos DRM driver for implementing suspend/resume support. To fix this regression (after that patch Exynos DRM suspend/resume functions became no-ops and hardware fails to suspend), this patch rewrites them with drm_atomic_helper_suspend/resume() helpers. Fixes:7d902c05b4
("drm: Nuke drm_atomic_helper_connector_dpms") Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Acked-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Inki Dae <inki.dae@samsung.com>
55 lines
1.3 KiB
C
55 lines
1.3 KiB
C
/*
|
|
* Copyright (c) 2011 Samsung Electronics Co., Ltd.
|
|
*
|
|
* Authors:
|
|
* Inki Dae <inki.dae@samsung.com>
|
|
* Joonyoung Shim <jy0922.shim@samsung.com>
|
|
* Seung-Woo Kim <sw0312.kim@samsung.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License as published by the
|
|
* Free Software Foundation; either version 2 of the License, or (at your
|
|
* option) any later version.
|
|
*/
|
|
|
|
#ifndef _EXYNOS_DRM_FBDEV_H_
|
|
#define _EXYNOS_DRM_FBDEV_H_
|
|
|
|
#ifdef CONFIG_DRM_FBDEV_EMULATION
|
|
|
|
int exynos_drm_fbdev_init(struct drm_device *dev);
|
|
void exynos_drm_fbdev_fini(struct drm_device *dev);
|
|
void exynos_drm_fbdev_restore_mode(struct drm_device *dev);
|
|
void exynos_drm_output_poll_changed(struct drm_device *dev);
|
|
void exynos_drm_fbdev_suspend(struct drm_device *drm);
|
|
void exynos_drm_fbdev_resume(struct drm_device *drm);
|
|
|
|
#else
|
|
|
|
static inline int exynos_drm_fbdev_init(struct drm_device *dev)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void exynos_drm_fbdev_fini(struct drm_device *dev)
|
|
{
|
|
}
|
|
|
|
static inline void exynos_drm_fbdev_restore_mode(struct drm_device *dev)
|
|
{
|
|
}
|
|
|
|
#define exynos_drm_output_poll_changed (NULL)
|
|
|
|
static inline void exynos_drm_fbdev_suspend(struct drm_device *drm)
|
|
{
|
|
}
|
|
|
|
static inline void exynos_drm_fbdev_resume(struct drm_device *drm)
|
|
{
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|