From 0088b50c6dfb8aaac488526ed3ad91f29fd9a8f4 Mon Sep 17 00:00:00 2001 From: Abhijit Kulkarni Date: Tue, 16 Aug 2016 15:14:57 -0700 Subject: [PATCH] msm: mdss: fix pipe priority validation This change corrects the pipe priority validation logic, without this change pipes with higher priority failed validation. For ex dma3 rect 0 is higher priority than dma0 rect 1, was failing priority test. CRs-Fixed: 1054404, 1047814 Change-Id: I260bbe5ddcb4da1bd175cafda2fbfec4a6e0cd39 Signed-off-by: Abhijit Kulkarni --- drivers/video/fbdev/msm/mdss_mdp_layer.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/video/fbdev/msm/mdss_mdp_layer.c b/drivers/video/fbdev/msm/mdss_mdp_layer.c index 3a39d4fdc895..db5f23d7ba96 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_layer.c +++ b/drivers/video/fbdev/msm/mdss_mdp_layer.c @@ -747,10 +747,6 @@ static int __validate_pipe_priorities(struct mdss_mdp_pipe *left, (left->priority >= right->priority)) return -EINVAL; - if ((left->multirect.num < right->multirect.num) && - (left->priority > right->priority)) - return -EINVAL; - return 0; }