mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
drm/rockchip: vop2: Remove prepare_fb/cleanup_fb callback
According to commit9bde4e671f("drm/rockchip: vop: fix iommu crash with async atomic") These two callback were added to avoid iommu crash on async commit caused by drm_atomic_clean_old_fb after drm_atomic_async_commit. drm_atomic_clean_old_fb was removed after commite00fb8564e("drm: Stop updating plane->crtc/fb/old_fb on atomic drivers") So we can remove them to make life simpler. Change-Id: Iea1f2dbadd9bcfad5b8447831c0d31068d4fa97b Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
This commit is contained in:
@@ -2731,22 +2731,6 @@ static void vop2_crtc_atomic_disable(struct drm_crtc *crtc,
|
||||
}
|
||||
}
|
||||
|
||||
static int vop2_plane_prepare_fb(struct drm_plane *plane,
|
||||
struct drm_plane_state *new_state)
|
||||
{
|
||||
if (plane->state->fb)
|
||||
drm_framebuffer_get(plane->state->fb);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void vop2_plane_cleanup_fb(struct drm_plane *plane,
|
||||
struct drm_plane_state *old_state)
|
||||
{
|
||||
if (old_state->fb)
|
||||
drm_framebuffer_put(old_state->fb);
|
||||
}
|
||||
|
||||
static int vop2_plane_atomic_check(struct drm_plane *plane, struct drm_plane_state *state)
|
||||
{
|
||||
struct vop2_plane_state *vpstate = to_vop2_plane_state(state);
|
||||
@@ -3246,8 +3230,6 @@ static void vop2_plane_atomic_update(struct drm_plane *plane, struct drm_plane_s
|
||||
}
|
||||
|
||||
static const struct drm_plane_helper_funcs vop2_plane_helper_funcs = {
|
||||
.prepare_fb = vop2_plane_prepare_fb,
|
||||
.cleanup_fb = vop2_plane_cleanup_fb,
|
||||
.atomic_check = vop2_plane_atomic_check,
|
||||
.atomic_update = vop2_plane_atomic_update,
|
||||
.atomic_disable = vop2_plane_atomic_disable,
|
||||
|
||||
Reference in New Issue
Block a user