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

drm/imx: ipuv3-plane: add IDMAC timeout warning

ipu_plane_disable should never be called while the plane IDMAC channel
is active. The busy wait is just a safety net that should never time
out.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>

+7 -1
+7 -1
drivers/gpu/drm/imx/ipuv3-plane.c
··· 228 228 229 229 void ipu_plane_disable(struct ipu_plane *ipu_plane, bool disable_dp_channel) 230 230 { 231 + int ret; 232 + 231 233 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__); 232 234 233 - ipu_idmac_wait_busy(ipu_plane->ipu_ch, 50); 235 + ret = ipu_idmac_wait_busy(ipu_plane->ipu_ch, 50); 236 + if (ret == -ETIMEDOUT) { 237 + DRM_ERROR("[PLANE:%d] IDMAC timeout\n", 238 + ipu_plane->base.base.id); 239 + } 234 240 235 241 if (ipu_plane->dp && disable_dp_channel) 236 242 ipu_dp_disable_channel(ipu_plane->dp, false);