From patchwork Fri Jun 12 12:59:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hyungwon Hwang X-Patchwork-Id: 6598311 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8A5BDC0020 for ; Fri, 12 Jun 2015 12:59:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2EF8720685 for ; Fri, 12 Jun 2015 12:59:41 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 4D1A120678 for ; Fri, 12 Jun 2015 12:59:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 403E16EAB8; Fri, 12 Jun 2015 05:59:33 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 7ED1F6EAA5 for ; Fri, 12 Jun 2015 05:59:30 -0700 (PDT) Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NPU02D3J1EV6230@mailout1.samsung.com> for dri-devel@lists.freedesktop.org; Fri, 12 Jun 2015 21:59:19 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.114]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 27.00.20564.0B7DA755; Fri, 12 Jun 2015 21:59:28 +0900 (KST) X-AuditID: cbfee690-f796f6d000005054-f0-557ad7b0632c Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 0F.25.25346.0B7DA755; Fri, 12 Jun 2015 21:59:28 +0900 (KST) Received: from localhost.localdomain ([10.252.82.145]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NPU002KS1F1AP00@mmp2.samsung.com>; Fri, 12 Jun 2015 21:59:28 +0900 (KST) From: Hyungwon Hwang To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Subject: [PATCH 1/2] drm/exynos: ipp: fix wrong index referencing a config element Date: Fri, 12 Jun 2015 21:59:11 +0900 Message-id: <1434113958-15877-17-git-send-email-human.hwang@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1434113958-15877-1-git-send-email-human.hwang@samsung.com> References: <1434113958-15877-1-git-send-email-human.hwang@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKLMWRmVeSWpSXmKPExsWyRsSkSHfD9apQgxlt6hZXWqezWsw/co7V 4srX92wWS2f0sVpMuj+BxeLFvYssFjMmv2RzYPd48XUbs8f97uNMHn1bVjF6fN4kF8ASxWWT kpqTWZZapG+XwJXR27yLpeAEW8Xys5eYGxhPsXYxcnBICJhILN+f38XICWSKSVy4t56ti5GL Q0hgKaPE9+uH2SASJhIHOu6xQCSmM0rce7UKLCEk8INR4vDTaBCbTUBPYsG1H+wgtoiAvcTi ryALuDiYBboZJVaefwqWEBYIkdj/cCNYM4uAqkTL/KmsIDavgIfEiWnX2CG2yUmcPDYZLM4J FL978BYLxDJ3if/3D0HV9LNL7HsmBTFHQOLb5EMsEN/ISmw6wAxRIilxcMUNlgmMwgsYGVYx iqYWJBcUJ6UXmegVJ+YWl+al6yXn525iBIb26X/PJuxgvHfA+hCjAAejEg8vh0ZVqBBrYllx Ze4hRlOgDROZpUST84ERlFcSb2hsZmRhamJqbGRuaaYkzvta6mewkEB6YklqdmpqQWpRfFFp TmrxIUYmDk6pBsYF7xX5Msp3XTmVltrvJHcywEzxX5DJYdZp1urctxNvv73xKdd2StueL3vk 9/yWnrfwd6WJu4KMrMTmExXRZ1ZHr37FavpulVFyRErLP/O7aRPPd0lEM1nMbzllvlih7kxO yG7jIk4B7yVix32/uAU33L24enrt9emPZijaOz1JWai0mtVp03UlluKMREMt5qLiRADCMOEP aAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrIIsWRmVeSWpSXmKPExsVy+t9jQd0N16tCDZbfVLK40jqd1WL+kXOs Fle+vmezWDqjj9Vi0v0JLBYv7l1ksZgx+SWbA7vHi6/bmD3udx9n8ujbsorR4/MmuQCWqAZG m4zUxJTUIoXUvOT8lMy8dFsl7+B453hTMwNDXUNLC3MlhbzE3FRbJRefAF23zBygE5QUyhJz SoFCAYnFxUr6dpgmhIa46VrANEbo+oYEwfUYGaCBhDWMGb3Nu1gKTrBVLD97ibmB8RRrFyMn h4SAicSBjnssELaYxIV769m6GLk4hASmM0rce7WKDSQhJPCDUeLw02gQm01AT2LBtR/sILaI gL3E4q8gg7g4mAW6GSVWnn8KlhAWCJHY/3AjWDOLgKpEy/ypYNt4BTwkTky7xg6xTU7i5LHJ YHFOoPjdg7dYIJa5S/y/f4h9AiPvAkaGVYyiqQXJBcVJ6bmGesWJucWleel6yfm5mxjB0fNM agfjygaLQ4wCHIxKPLwP/atChVgTy4orcw8xSnAwK4nwdm8HCvGmJFZWpRblxxeV5qQWH2I0 BbpqIrOUaHI+MLLzSuINjU3MjCyNzA0tjIzNlcR5T+b7hAoJpCeWpGanphakFsH0MXFwSjUw LrSpnnZhWZP4lhpVc69udrk9shdfVp4sXTft8QaGUu9/m9YzZaWFzeI/NnvjEsHj1ZFvShOn y8jU356utv+onMzCQx1Of55PqFJ6qDv7NOc75rU3TrhufSSYd9l1xv5rP6a1bG9gld214nJS A8eWul+H2gV/rw6frGfKx5t0Iv6yUYnAJPnZn5RYijMSDbWYi4oTAUloaOW0AgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Cc: sw0312.kim@samsung.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Config depends on the opreation. So it must be referenced by an operation id, not a property id. Signed-off-by: Hyungwon Hwang --- drivers/gpu/drm/exynos/exynos_drm_ipp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_ipp.c b/drivers/gpu/drm/exynos/exynos_drm_ipp.c index b7f1cbc..54c5cf4 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_ipp.c +++ b/drivers/gpu/drm/exynos/exynos_drm_ipp.c @@ -486,8 +486,7 @@ static int ipp_validate_mem_node(struct drm_device *drm_dev, unsigned int bpp; int i; - /* The property id should already be varified */ - ipp_cfg = &c_node->property.config[m_node->prop_id]; + ipp_cfg = &c_node->property.config[m_node->ops_id]; num_plane = drm_format_num_planes(ipp_cfg->fmt); /**