From patchwork Wed Sep 10 14:15:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pawel Moll X-Patchwork-Id: 37207 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qg0-f71.google.com (mail-qg0-f71.google.com [209.85.192.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EDB7A20293 for ; Wed, 10 Sep 2014 14:16:22 +0000 (UTC) Received: by mail-qg0-f71.google.com with SMTP id a108sf20364321qge.10 for ; Wed, 10 Sep 2014 07:16:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=87Nbi4yKW1I8gZTvq5nBoCMlPoGTfvcMnh+IgUbqZp4=; b=dZD1ZhUTrzoYoeVI415YqMJnEYxVkjMasyUwsyKdQzBwVid0GUVe5zGurDt5yJrmtD AzkRSnp0y6rKyyuwBANE626F79e+ebj9qBs722irgbOn//OWFo1f4XlEwdPVpkF7Dftr kr0L9bOKnFlB2C4ttDBSDBcs2BVjfqr33buwMkRlCNPfFUUWls3YtBiUi+8sKL3fSblm EzHGlaXJUXoMTgzdhjRj0rkCMuZ+elNI5UyWE0r5A+TTUGTXy07OcDnDRZGKWPa2/34d u1UaILEeq98+sC2sSUpB7LXGmceueWkJR2tcdf5mHo5bNBaBIoP6Xmxyww+fN9+kUZ+P hLuA== X-Gm-Message-State: ALoCoQmglEAl410FQTbebmfoUwayK7wpcYaR9qf7d7Zda1FzoM5Gxos7WkT+avt/82buD/L8tRCm X-Received: by 10.236.207.101 with SMTP id m65mr1736687yho.41.1410358582783; Wed, 10 Sep 2014 07:16:22 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.40.180 with SMTP id x49ls2602522qgx.97.gmail; Wed, 10 Sep 2014 07:16:22 -0700 (PDT) X-Received: by 10.221.68.66 with SMTP id xx2mr36734890vcb.1.1410358582659; Wed, 10 Sep 2014 07:16:22 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id xe15si6928824vdc.85.2014.09.10.07.16.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 10 Sep 2014 07:16:22 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id le20so4492790vcb.41 for ; Wed, 10 Sep 2014 07:16:22 -0700 (PDT) X-Received: by 10.221.26.70 with SMTP id rl6mr8591265vcb.0.1410358582469; Wed, 10 Sep 2014 07:16:22 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp444218vcb; Wed, 10 Sep 2014 07:16:22 -0700 (PDT) X-Received: by 10.68.192.35 with SMTP id hd3mr4476472pbc.144.1410358581679; Wed, 10 Sep 2014 07:16:21 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hp2si28227867pac.5.2014.09.10.07.16.21 for ; Wed, 10 Sep 2014 07:16:21 -0700 (PDT) Received-SPF: none (google.com: linux-fbdev-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751341AbaIJOQT (ORCPT ); Wed, 10 Sep 2014 10:16:19 -0400 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]:65415 "EHLO cam-admin0.cambridge.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751250AbaIJOQS (ORCPT ); Wed, 10 Sep 2014 10:16:18 -0400 Received: from hornet.Cambridge.Arm.com (hornet.cambridge.arm.com [10.2.201.42]) by cam-admin0.cambridge.arm.com (8.12.6/8.12.6) with ESMTP id s8AEG2wo028606; Wed, 10 Sep 2014 15:16:02 +0100 (BST) From: Pawel Moll To: Tomi Valkeinen , Jean-Christophe Plagniol-Villard , Russell King - ARM Linux Cc: linux-fbdev@vger.kernel.org, Pawel Moll Subject: [PATCH] video: ARM CLCD: Fix color model capabilities for DT platforms Date: Wed, 10 Sep 2014 15:15:53 +0100 Message-Id: <1410358553-2344-1-git-send-email-pawel.moll@arm.com> X-Mailer: git-send-email 1.9.1 Sender: linux-fbdev-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: pawel.moll@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The DT-based panel capabilities selection was picking up a subset of available modes based on hardware configuration. This was wrong, as the capabilities describe available memory models and adapt the display controller to them that the RGB output is wired up correctly (as in: R and B components are not swapped). This patch fixes it by removing the unnecessary limitation. Signed-off-by: Pawel Moll --- drivers/video/fbdev/amba-clcd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/fbdev/amba-clcd.c b/drivers/video/fbdev/amba-clcd.c index a7b6217..6ad23bd 100644 --- a/drivers/video/fbdev/amba-clcd.c +++ b/drivers/video/fbdev/amba-clcd.c @@ -639,9 +639,7 @@ static int clcdfb_of_init_tft_panel(struct clcd_fb *fb, u32 r0, u32 g0, u32 b0) if (g0 != panels[i].g0) continue; if (r0 == panels[i].r0 && b0 == panels[i].b0) - fb->panel->caps = panels[i].caps & CLCD_CAP_RGB; - if (r0 == panels[i].b0 && b0 == panels[i].r0) - fb->panel->caps = panels[i].caps & CLCD_CAP_BGR; + fb->panel->caps = panels[i].caps; } return fb->panel->caps ? 0 : -EINVAL;