diff --git a/drivers/gpu/drm/msm/sde/sde_plane.c b/drivers/gpu/drm/msm/sde/sde_plane.c index 7aef3749e15f..07595177a1e5 100644 --- a/drivers/gpu/drm/msm/sde/sde_plane.c +++ b/drivers/gpu/drm/msm/sde/sde_plane.c @@ -4709,8 +4709,8 @@ static int sde_plane_atomic_set_property(struct drm_plane *plane, idx = msm_property_index(&psde->property_info, property); if (idx == PLANE_PROP_ZPOS) { - if (val & 0x20000000u) { - val &= ~0x20000000u; + if (val & FOD_PRESSED_LAYER_ZORDER) { + val &= ~FOD_PRESSED_LAYER_ZORDER; fod_val = 1; } diff --git a/include/uapi/drm/sde_drm.h b/include/uapi/drm/sde_drm.h index 1a43659a857f..1d52bdc1743e 100644 --- a/include/uapi/drm/sde_drm.h +++ b/include/uapi/drm/sde_drm.h @@ -446,4 +446,9 @@ struct sde_drm_roi_v1 { #define SDE_MODE_DPMS_SUSPEND 4 #define SDE_MODE_DPMS_OFF 5 +/** + * sde fod dim layer + */ +#define FOD_PRESSED_LAYER_ZORDER 0x20000000u + #endif /* _SDE_DRM_H_ */