Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/tidss: Convert to drm logging

DRM drivers should prefer the drm logging functions to the dev logging
ones when possible. Let's convert the existing dev_* logs to their drm
counterparts.

Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://lore.kernel.org/r/20250902-drm-state-readout-v1-18-14ad5315da3f@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20250902-drm-state-readout-v1-18-14ad5315da3f@kernel.org

+6 -4
+2 -2
drivers/gpu/drm/tidss/tidss_crtc.c
··· 103 103 104 104 ok = dispc_vp_mode_valid(dispc, hw_videoport, mode); 105 105 if (ok != MODE_OK) { 106 - dev_dbg(ddev->dev, "%s: bad mode: %ux%u pclk %u kHz\n", 106 + drm_dbg(ddev, "%s: bad mode: %ux%u pclk %u kHz\n", 107 107 __func__, mode->hdisplay, mode->vdisplay, mode->clock); 108 108 return -EINVAL; 109 109 } ··· 172 172 struct tidss_device *tidss = to_tidss(ddev); 173 173 unsigned long flags; 174 174 175 - dev_dbg(ddev->dev, "%s: %s is %sactive, %s modeset, event %p\n", 175 + drm_dbg(ddev, "%s: %s is %sactive, %s modeset, event %p\n", 176 176 __func__, crtc->name, crtc->state->active ? "" : "not ", 177 177 drm_atomic_crtc_needs_modeset(crtc->state) ? "needs" : "doesn't need", 178 178 crtc->state->event);
+4 -2
drivers/gpu/drm/tidss/tidss_dispc.c
··· 1051 1051 int dispc_vp_bus_check(struct dispc_device *dispc, u32 hw_videoport, 1052 1052 const struct drm_crtc_state *state) 1053 1053 { 1054 + struct tidss_device *tidss = dispc->tidss; 1055 + struct drm_device *dev = &tidss->ddev; 1054 1056 const struct tidss_crtc_state *tstate = to_tidss_crtc_state(state); 1055 1057 const struct dispc_bus_format *fmt; 1056 1058 1057 1059 fmt = dispc_vp_find_bus_fmt(dispc, hw_videoport, tstate->bus_format, 1058 1060 tstate->bus_flags); 1059 1061 if (!fmt) { 1060 - dev_dbg(dispc->dev, "%s: Unsupported bus format: %u\n", 1062 + drm_dbg(dev, "%s: Unsupported bus format: %u\n", 1061 1063 __func__, tstate->bus_format); 1062 1064 return -EINVAL; 1063 1065 } 1064 1066 1065 1067 if (dispc->feat->vp_bus_type[hw_videoport] != DISPC_VP_OLDI_AM65X && 1066 1068 fmt->is_oldi_fmt) { 1067 - dev_dbg(dispc->dev, "%s: %s is not OLDI-port\n", 1069 + drm_dbg(dev, "%s: %s is not OLDI-port\n", 1068 1070 __func__, dispc->feat->vp_name[hw_videoport]); 1069 1071 return -EINVAL; 1070 1072 }