summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
diff options
context:
space:
mode:
authorMichael Tretter <m.tretter@pengutronix.de>2023-10-09 12:37:53 +0200
committerHeiko Stuebner <heiko@sntech.de>2023-10-09 21:20:04 +0200
commiteb23cffdd7f085149799e5eda12a9aff792cc34d (patch)
treebb097bf9c5b27dbc1ab522db42c0310726811007 /drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
parent8badbaffbe490d76a54026e8988168d9493ad141 (diff)
downloadlinux-stable-eb23cffdd7f085149799e5eda12a9aff792cc34d.tar.gz
linux-stable-eb23cffdd7f085149799e5eda12a9aff792cc34d.tar.bz2
linux-stable-eb23cffdd7f085149799e5eda12a9aff792cc34d.zip
drm/rockchip: vop2: Demote message in mod_supported to drm_dbg_kms
Checking if a modifier is supported by a plane is normal behavior. It is normal that a plane may not support certain modifiers. Failing the check doesn't justify an error message in the kernel log and may mislead users. Demote the error message to drm_dbg_kms to only print the message if the respective debug messages are enabled. This is similar to the behavior in rockchip_drm_vop.c. Signed-off-by: Michael Tretter <m.tretter@pengutronix.de> Signed-off-by: Heiko Stuebner <heiko@sntech.de> Link: https://patchwork.freedesktop.org/patch/msgid/20231009103753.830458-1-m.tretter@pengutronix.de
Diffstat (limited to 'drivers/gpu/drm/rockchip/rockchip_drm_vop2.c')
-rw-r--r--drivers/gpu/drm/rockchip/rockchip_drm_vop2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
index c306806aa3de..957e42886ec3 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
@@ -469,8 +469,8 @@ static bool rockchip_vop2_mod_supported(struct drm_plane *plane, u32 format,
return true;
if (!rockchip_afbc(plane, modifier)) {
- drm_err(vop2->drm, "Unsupported format modifier 0x%llx\n",
- modifier);
+ drm_dbg_kms(vop2->drm, "Unsupported format modifier 0x%llx\n",
+ modifier);
return false;
}