Skip to content

Commit

Permalink
Add patch to silence the vop warn on spam
Browse files Browse the repository at this point in the history
  • Loading branch information
SolidHal committed Jun 25, 2019
1 parent 1dbd94b commit fedca1d
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
index 48c222d..f8f9ae6 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
@@ -845,7 +845,7 @@ static int vop_crtc_enable_vblank(struct drm_crtc *crtc)
struct vop *vop = to_vop(crtc);
unsigned long flags;

- if (!vop->is_enabled)
+ if (WARN_ON(!vop->is_enabled))
return -EPERM;

spin_lock_irqsave(&vop->irq_lock, flags);

0 comments on commit fedca1d

Please sign in to comment.