From patchwork Tue Jun 14 22:49:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Longerbeam X-Patchwork-Id: 9177147 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 394DA6021C for ; Tue, 14 Jun 2016 22:53:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 29F2028307 for ; Tue, 14 Jun 2016 22:53:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1EC622833B; Tue, 14 Jun 2016 22:53:23 +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 C1B5728307 for ; Tue, 14 Jun 2016 22:53:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932239AbcFNWxT (ORCPT ); Tue, 14 Jun 2016 18:53:19 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:33465 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752979AbcFNWvN (ORCPT ); Tue, 14 Jun 2016 18:51:13 -0400 Received: by mail-pf0-f195.google.com with SMTP id c74so306322pfb.0 for ; Tue, 14 Jun 2016 15:51:13 -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=sbPi6KRSKk56QdTr3y4s9zGGPlHLVhXZ2WA75uKvo9c=; b=hAi9RfD7ub3XLulm/H954rLrvkTd/rNa61bfhgKSdGWbG23I6YJWPeFHk2zSEGxNUI QYyElEjo64ioG+GUJqqO9DosCzHrOz9vsvM4pl0+esvyaYiEVZGSVjfilObqHyegM775 rhYexxoX6PYOvj8QdMvQNVvwJUYN7+pfjJuO9jJIYFMHs0Ge170FoSI8tYAEeAFc5d9/ 8FF+J1oxfO/L9SCSGXS9nn8T/j/n+Soln28UqWcOeUlpWUcjehs9JIFM9nYUrMjBzyHH KIA6H+WK4zNl+gahzxCv1gM8FnosZ7tvKYsJAxwOuMJAqy9j3iWd/RaGtCM+zMFMWUgZ 6E6Q== 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=sbPi6KRSKk56QdTr3y4s9zGGPlHLVhXZ2WA75uKvo9c=; b=BoCD6nws+ttOx8vE5iQXIDxaaaQ/Nbf2Bua342NEyIKaXgv7Isl9TkUjZ+RaFnKgR2 7r0s28qFNeSosAAmtaIsG3mn5TiQjK3N4TgNjqIdQsWq4WeriKVVTrUomys0Ng6JGCBQ RrIvoLHwUYfjlha/7X1T23lmSrPxW5atzPBQ6eCEwjPhellVRdbSDlq26jNNmETf/1rK r6zd/Ae7sOAJecrH7BPfWmi6eurSzTRlDaXhfBYXAY8z3QTKOCH/7ZlPT/gzpaq3THkJ rFjlKkZ66mgKRbyR80JMXYqgHDKDUstHDev1SMj4ckOJwZiIIHiVlP3r6QfWGj1sGazg 1u7A== X-Gm-Message-State: ALyK8tJ6QUQ/mG4j726SKat10287jlfs9k//IZjinCu/bxC17kpK6iPN1p/YVLZf+dDbAQ== X-Received: by 10.98.35.27 with SMTP id j27mr105365pfj.10.1465944672377; Tue, 14 Jun 2016 15:51:12 -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 v184sm47829999pfb.24.2016.06.14.15.51.11 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 14 Jun 2016 15:51:11 -0700 (PDT) From: Steve Longerbeam X-Google-Original-From: Steve Longerbeam To: linux-media@vger.kernel.org Cc: Steve Longerbeam Subject: [PATCH 11/38] gpu: ipu-v3: Fix CSI data format for 16-bit media bus formats Date: Tue, 14 Jun 2016 15:49:07 -0700 Message-Id: <1465944574-15745-12-git-send-email-steve_longerbeam@mentor.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1465944574-15745-1-git-send-email-steve_longerbeam@mentor.com> References: <1465944574-15745-1-git-send-email-steve_longerbeam@mentor.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@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 --- 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 07c7091..0eac28c 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;