.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2013 Red Hat |
---|
3 | 4 | * Author: Rob Clark <robdclark@gmail.com> |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or modify it |
---|
6 | | - * under the terms of the GNU General Public License version 2 as published by |
---|
7 | | - * the Free Software Foundation. |
---|
8 | | - * |
---|
9 | | - * This program is distributed in the hope that it will be useful, but WITHOUT |
---|
10 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
11 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
---|
12 | | - * more details. |
---|
13 | | - * |
---|
14 | | - * You should have received a copy of the GNU General Public License along with |
---|
15 | | - * this program. If not, see <http://www.gnu.org/licenses/>. |
---|
16 | 5 | */ |
---|
| 6 | + |
---|
| 7 | +#include <drm/drm_damage_helper.h> |
---|
| 8 | +#include <drm/drm_fourcc.h> |
---|
17 | 9 | |
---|
18 | 10 | #include "mdp4_kms.h" |
---|
19 | 11 | |
---|
.. | .. |
---|
68 | 60 | { |
---|
69 | 61 | struct mdp4_plane *mdp4_plane = to_mdp4_plane(plane); |
---|
70 | 62 | |
---|
71 | | - drm_plane_helper_disable(plane, NULL); |
---|
72 | 63 | drm_plane_cleanup(plane); |
---|
73 | 64 | |
---|
74 | 65 | kfree(mdp4_plane); |
---|
.. | .. |
---|
235 | 226 | format = to_mdp_format(msm_framebuffer_format(fb)); |
---|
236 | 227 | |
---|
237 | 228 | if (src_w > (crtc_w * DOWN_SCALE_MAX)) { |
---|
238 | | - dev_err(dev->dev, "Width down scaling exceeds limits!\n"); |
---|
| 229 | + DRM_DEV_ERROR(dev->dev, "Width down scaling exceeds limits!\n"); |
---|
239 | 230 | return -ERANGE; |
---|
240 | 231 | } |
---|
241 | 232 | |
---|
242 | 233 | if (src_h > (crtc_h * DOWN_SCALE_MAX)) { |
---|
243 | | - dev_err(dev->dev, "Height down scaling exceeds limits!\n"); |
---|
| 234 | + DRM_DEV_ERROR(dev->dev, "Height down scaling exceeds limits!\n"); |
---|
244 | 235 | return -ERANGE; |
---|
245 | 236 | } |
---|
246 | 237 | |
---|
247 | 238 | if (crtc_w > (src_w * UP_SCALE_MAX)) { |
---|
248 | | - dev_err(dev->dev, "Width up scaling exceeds limits!\n"); |
---|
| 239 | + DRM_DEV_ERROR(dev->dev, "Width up scaling exceeds limits!\n"); |
---|
249 | 240 | return -ERANGE; |
---|
250 | 241 | } |
---|
251 | 242 | |
---|
252 | 243 | if (crtc_h > (src_h * UP_SCALE_MAX)) { |
---|
253 | | - dev_err(dev->dev, "Height up scaling exceeds limits!\n"); |
---|
| 244 | + DRM_DEV_ERROR(dev->dev, "Height up scaling exceeds limits!\n"); |
---|
254 | 245 | return -ERANGE; |
---|
255 | 246 | } |
---|
256 | 247 | |
---|
.. | .. |
---|
398 | 389 | |
---|
399 | 390 | mdp4_plane_install_properties(plane, &plane->base); |
---|
400 | 391 | |
---|
| 392 | + drm_plane_enable_fb_damage_clips(plane); |
---|
| 393 | + |
---|
401 | 394 | return plane; |
---|
402 | 395 | |
---|
403 | 396 | fail: |
---|