projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c54a8f1
)
gpu/drm: ingenic: Fix bogus crtc_atomic_check callback
author
Paul Cercueil
<paul@crapouillou.net>
Sat, 16 May 2020 21:50:49 +0000
(23:50 +0200)
committer
Paul Cercueil
<paul@crapouillou.net>
Sun, 17 May 2020 12:14:17 +0000
(14:14 +0200)
The code was comparing the SoC's maximum height with the mode's width,
and vice-versa. D'oh.
Cc: stable@vger.kernel.org # v5.6
Fixes: a7c909b7c037 ("gpu/drm: ingenic: Check for display size in CRTC atomic check")
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link:
https://patchwork.freedesktop.org/patch/msgid/20200516215057.392609-4-paul@crapouillou.net
Acked-by: Sam Ravnborg <sam@ravnborg.org>
drivers/gpu/drm/ingenic/ingenic-drm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/ingenic/ingenic-drm.c
b/drivers/gpu/drm/ingenic/ingenic-drm.c
index 1754c054706906f6a419923b3e239f27aa8a4328..a5ad6a4353e144cb5e1a85d11d8d8c6691efb946 100644
(file)
--- a/
drivers/gpu/drm/ingenic/ingenic-drm.c
+++ b/
drivers/gpu/drm/ingenic/ingenic-drm.c
@@
-328,8
+328,8
@@
static int ingenic_drm_crtc_atomic_check(struct drm_crtc *crtc,
if (!drm_atomic_crtc_needs_modeset(state))
return 0;
- if (state->mode.hdisplay > priv->soc_info->max_
height
||
- state->mode.vdisplay > priv->soc_info->max_
width
)
+ if (state->mode.hdisplay > priv->soc_info->max_
width
||
+ state->mode.vdisplay > priv->soc_info->max_
height
)
return -EINVAL;
rate = clk_round_rate(priv->pix_clk,