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: 9253573 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 A4E6960865 for ; Mon, 1 Aug 2016 01:28:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 964A428403 for ; Mon, 1 Aug 2016 01:28:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A93B28407; Mon, 1 Aug 2016 01:28:55 +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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F011628403 for ; Mon, 1 Aug 2016 01:28:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E10196E10C; Mon, 1 Aug 2016 01:28:22 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf0-x241.google.com (mail-pf0-x241.google.com [IPv6:2607:f8b0:400e:c00::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 48B8F6E17C for ; Sun, 31 Jul 2016 19:42:48 +0000 (UTC) Received: by mail-pf0-x241.google.com with SMTP id y134so8887255pfg.3 for ; Sun, 31 Jul 2016 12:42:48 -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=Juxk4IqbyykGgbfNL6iLSLeVfb5VoDjYgvBe4jiDR14M40+S7RphY1LcxegGTr+Dwn IFI5iVebEIRo83b21AjI8xnQOdol2SYv0uJKCWDXa30fn5ZZ2Y6fkEmELLE4zCBkJHJk EF07Z1SkO5dIU2KE+WYmCi1HZ8OjvB/cKj8D++flGyQbDbLKRPX68dSyg/6Zzdw1mjrF FNZLwyskERF6qqE5B93nI4xjAOthE8rO2lK62ksuKp9ZkQHYXxvxBmg2Z9ZkkSUERTVS 1VS/gL9WjVCmCvLQsSUfUxuulaV9gDJfSDG2ufVsXqKFBCj4035ZEwAhdEBrJESY4NA0 C7wQ== X-Gm-Message-State: AEkoouul40WySErTIYBeIYfg7SB0sLlqWIDJTAR/EeqZK7Z2HnKciBNJLDxzLt1si/prtg== 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 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> X-Mailman-Approved-At: Mon, 01 Aug 2016 01:28:21 +0000 Cc: linux-fbdev@vger.kernel.org, Steve Longerbeam , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org 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-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;