diff options
author | Dave Airlie <airlied@redhat.com> | 2019-01-17 18:20:10 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2019-01-17 18:31:28 -0500 |
commit | f164a94c2c87752caeb1a3cbe068c440e7f7921f (patch) | |
tree | e914296ef0ce1df83e506a12bf4306d5aa468b24 /drivers/gpu/drm/drm_crtc.c | |
parent | b122153c7198e35fcb981ca9efd63b0df8ef3eab (diff) | |
parent | 94520db52fc0e931327bb77fe79a952a0e9dd2b0 (diff) |
Merge tag 'drm-misc-next-2019-01-16' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
drm-misc-next for 5.1:
UAPI Changes:
- New fourcc identifier for ARM Framebuffer Compression v1.3
Cross-subsystem Changes:
Core Changes:
- Reorganisation of drm_device and drm_framebuffer headers
- Cleanup of the drmP inclusion
- Fix leaks in the fb-helpers
- Allow for depth different from bpp in fb-helper fbdev emulation
- Remove drm_mode_object from drm_display_mode
Driver Changes:
- Add reflection properties to rockchip
- a bunch of fixes for virtio
- a bunch of fixes for dp_mst and drivers using it, and introduction of a
new refcounting scheme
- Convertion of bochs to atomic and generic fbdev emulation
- Allow meson to remove the firmware framebuffers
[airlied: patch rcar-du to add drm_modes.h]
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190116200428.u2n4jbk4mzza7n6e@flea
Diffstat (limited to 'drivers/gpu/drm/drm_crtc.c')
-rw-r--r-- | drivers/gpu/drm/drm_crtc.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 1593dd6cdfb7..7dabbaf033a1 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c | |||
@@ -93,15 +93,6 @@ struct drm_crtc *drm_crtc_from_index(struct drm_device *dev, int idx) | |||
93 | } | 93 | } |
94 | EXPORT_SYMBOL(drm_crtc_from_index); | 94 | EXPORT_SYMBOL(drm_crtc_from_index); |
95 | 95 | ||
96 | /** | ||
97 | * drm_crtc_force_disable - Forcibly turn off a CRTC | ||
98 | * @crtc: CRTC to turn off | ||
99 | * | ||
100 | * Note: This should only be used by non-atomic legacy drivers. | ||
101 | * | ||
102 | * Returns: | ||
103 | * Zero on success, error code on failure. | ||
104 | */ | ||
105 | int drm_crtc_force_disable(struct drm_crtc *crtc) | 96 | int drm_crtc_force_disable(struct drm_crtc *crtc) |
106 | { | 97 | { |
107 | struct drm_mode_set set = { | 98 | struct drm_mode_set set = { |
@@ -112,38 +103,6 @@ int drm_crtc_force_disable(struct drm_crtc *crtc) | |||
112 | 103 | ||
113 | return drm_mode_set_config_internal(&set); | 104 | return drm_mode_set_config_internal(&set); |
114 | } | 105 | } |
115 | EXPORT_SYMBOL(drm_crtc_force_disable); | ||
116 | |||
117 | /** | ||
118 | * drm_crtc_force_disable_all - Forcibly turn off all enabled CRTCs | ||
119 | * @dev: DRM device whose CRTCs to turn off | ||
120 | * | ||
121 | * Drivers may want to call this on unload to ensure that all displays are | ||
122 | * unlit and the GPU is in a consistent, low power state. Takes modeset locks. | ||
123 | * | ||
124 | * Note: This should only be used by non-atomic legacy drivers. For an atomic | ||
125 | * version look at drm_atomic_helper_shutdown(). | ||
126 | * | ||
127 | * Returns: | ||
128 | * Zero on success, error code on failure. | ||
129 | */ | ||
130 | int drm_crtc_force_disable_all(struct drm_device *dev) | ||
131 | { | ||
132 | struct drm_crtc *crtc; | ||
133 | int ret = 0; | ||
134 | |||
135 | drm_modeset_lock_all(dev); | ||
136 | drm_for_each_crtc(crtc, dev) | ||
137 | if (crtc->enabled) { | ||
138 | ret = drm_crtc_force_disable(crtc); | ||
139 | if (ret) | ||
140 | goto out; | ||
141 | } | ||
142 | out: | ||
143 | drm_modeset_unlock_all(dev); | ||
144 | return ret; | ||
145 | } | ||
146 | EXPORT_SYMBOL(drm_crtc_force_disable_all); | ||
147 | 106 | ||
148 | static unsigned int drm_num_crtcs(struct drm_device *dev) | 107 | static unsigned int drm_num_crtcs(struct drm_device *dev) |
149 | { | 108 | { |