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/imx: ipuv3-plane: decouple zpos from plane type

The overlay plane may be placed over or under the primary plane. Using
zpos to determine, if the plane is the primary or overlay plane is not
valid anymore.

Use the plane type for determining the name of the plane in the error
message.

Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://patch.msgid.link/20260219-drm-imx-underlay-plane-v2-1-26ef829c5483@pengutronix.de

authored by

Michael Tretter and committed by
Philipp Zabel
a872e90e 02df94d9

+2 -2
+2 -2
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
··· 915 915 type, NULL); 916 916 if (IS_ERR(ipu_plane)) { 917 917 DRM_ERROR("failed to allocate and initialize %s plane\n", 918 - zpos ? "overlay" : "primary"); 918 + (type == DRM_PLANE_TYPE_PRIMARY) ? "primary" : "overlay"); 919 919 return ipu_plane; 920 920 } 921 921 ··· 949 949 ret = ipu_plane_get_resources(dev, ipu_plane); 950 950 if (ret) { 951 951 DRM_ERROR("failed to get %s plane resources: %pe\n", 952 - zpos ? "overlay" : "primary", &ret); 952 + (type == DRM_PLANE_TYPE_PRIMARY) ? "primary" : "overlay", &ret); 953 953 return ERR_PTR(ret); 954 954 } 955 955