From patchwork Sun Jul 31 19:42:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Longerbeam X-Patchwork-Id: 9253451 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A1461608A1 for ; Sun, 31 Jul 2016 19:45:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 93A4D28492 for ; Sun, 31 Jul 2016 19:45:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 84A6228495; Sun, 31 Jul 2016 19:45:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC68F2848F for ; Sun, 31 Jul 2016 19:45:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751850AbcGaTno (ORCPT ); Sun, 31 Jul 2016 15:43:44 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:33729 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751125AbcGaTnT (ORCPT ); Sun, 31 Jul 2016 15:43:19 -0400 Received: by mail-pf0-f194.google.com with SMTP id i6so8904013pfe.0; Sun, 31 Jul 2016 12:42:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=sGGbCekv5wn093eIMbJKD5BieUBbPOh8bcLgWsy+1rs=; b=bXGu3ykhuV816hka1OYdtBEABlcxlAmpP412jUbqUuOEEOQf98I1CDzSKree104n9Z fYf1bDOjzChccZMyKm1N1JlZT7oQDhPurqqQLHNYYtVNEP9HTrl8cR1SA00PVjnWjRww gksdnltPNcl/HEGa20x0/4Mtx0aeziOyZVvyS7H2CbLmwtoHsYdtXz+RDvKzkqCTbNMW dqfHk4mITVhDCuRaYBPCxIRJMk/2AnZO2du8mgldautCq3clYQksH6fNwn5q5GBz8FAb EMSR8pwniGkyhAoWIBaI/yB0r9T/q6sZpVi3K76ryH7vzl4HJV6xy4dujhrSxxnSoVnq YkHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=sGGbCekv5wn093eIMbJKD5BieUBbPOh8bcLgWsy+1rs=; b=a/8b8YK6jWsQLR3oU+Ty+6EvY9VI67skTb3YBWroF/BW8lp8iMUj3T4MyMgDEW2+zP TQGURcqPBLXwrt/iyzpuEyV+gD60fJv0UwxDU/redohZpqJGBzSwzKMx/HDRJbv/xJOP MoAMD8DX0/HVjSsFWYLupoZAxu2ELocNlIl52075H/g6z1Py4s/xoXW5MUANGvdGYzC8 Yf7FYcYVRNPXt978cQX57bJsXcdkDy7TzfSinbZGH331Ip7b1oWfa8qBfVznKdw+J97h jKj1ZWT1O7JxLWu8VlrP1fWUJvVTcPl/knfvTTTETWJQ5Z/Y8xnFzxhJpaKeYsJZZdJM 4n/A== X-Gm-Message-State: AEkoouuQXUVsEd2tTim6sNb56Sd5ShXJd2fG0UVsNh3DKFrzSI9xLDzOvjXn5+uwa2gxwQ== X-Received: by 10.98.70.199 with SMTP id o68mr89079381pfi.17.1469994166468; Sun, 31 Jul 2016 12:42:46 -0700 (PDT) Received: from mothership.sklembedded.com (c-73-241-2-21.hsd1.ca.comcast.net. [73.241.2.21]) by smtp.googlemail.com with ESMTPSA id wp4sm39906381pab.15.2016.07.31.12.42.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 31 Jul 2016 12:42:45 -0700 (PDT) From: Steve Longerbeam X-Google-Original-From: Steve Longerbeam To: p.zabel@pengutronix.de, plagnioj@jcrosoft.com, tomi.valkeinen@ti.com Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, Steve Longerbeam Subject: [PATCH v3 06/12] gpu: ipu-v3: Fix CSI data format for 16-bit media bus formats Date: Sun, 31 Jul 2016 12:42:21 -0700 Message-Id: <1469994147-17549-7-git-send-email-steve_longerbeam@mentor.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1469994147-17549-1-git-send-email-steve_longerbeam@mentor.com> References: <1469994147-17549-1-git-send-email-steve_longerbeam@mentor.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The CSI data format was being programmed incorrectly for the 1x16 media bus formats. The CSI data format for 16-bit must be bayer/generic (CSI_SENS_CONF_DATA_FMT_BAYER). Suggested-by: Carsten Resch Signed-off-by: Steve Longerbeam --- v3: no changes v2: no changes --- drivers/gpu/ipu-v3/ipu-csi.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-csi.c b/drivers/gpu/ipu-v3/ipu-csi.c index 641ed76..d6e5ded 100644 --- a/drivers/gpu/ipu-v3/ipu-csi.c +++ b/drivers/gpu/ipu-v3/ipu-csi.c @@ -258,12 +258,8 @@ static int mbus_code_to_bus_cfg(struct ipu_csi_bus_config *cfg, u32 mbus_code) cfg->data_width = IPU_CSI_DATA_WIDTH_8; break; case MEDIA_BUS_FMT_UYVY8_1X16: - cfg->data_fmt = CSI_SENS_CONF_DATA_FMT_YUV422_UYVY; - cfg->mipi_dt = MIPI_DT_YUV422; - cfg->data_width = IPU_CSI_DATA_WIDTH_16; - break; case MEDIA_BUS_FMT_YUYV8_1X16: - cfg->data_fmt = CSI_SENS_CONF_DATA_FMT_YUV422_YUYV; + cfg->data_fmt = CSI_SENS_CONF_DATA_FMT_BAYER; cfg->mipi_dt = MIPI_DT_YUV422; cfg->data_width = IPU_CSI_DATA_WIDTH_16; break;