From patchwork Thu Jul 7 23:03:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Longerbeam X-Patchwork-Id: 9220021 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 7CE9960574 for ; Fri, 8 Jul 2016 05:26:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F8032840B for ; Fri, 8 Jul 2016 05:26:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 648C428411; Fri, 8 Jul 2016 05:26:38 +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 CB3592840B for ; Fri, 8 Jul 2016 05:26:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8C23D6E875; Fri, 8 Jul 2016 05:26:21 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-x243.google.com (mail-pa0-x243.google.com [IPv6:2607:f8b0:400e:c03::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id A509A6E83D for ; Thu, 7 Jul 2016 23:04:22 +0000 (UTC) Received: by mail-pa0-x243.google.com with SMTP id us13so2841104pab.1 for ; Thu, 07 Jul 2016 16:04:22 -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=dWPobGuFbGs64JwcM14p/dm8oLEBJiMr3iBAJ9oc6Mc92TL4H4LrrskOFi0dwp8Jdw ZEQn2yKUV6Q9GLsDXkVDtVxUR6tJKDoWdVh6LEoKHJuN71aOU5+Eo6FW0i0RVdJAvYpw XX0Wlt8V3IYBGMtHgvH7CFs63y8pwL3ltnECKul3bbwNmfG1AEpu5GuMl7d8z0he0ToR Hrbj43Xcf8R8tooZmHc4Pm03QaQNhROh5Inua+Ktu1RJYVTvLTQq07ApllBxESEqLj/m cdcUOsVo8gIGprURo0WvAoRQsI6rbyJ4cDWF5VJCe9P8uV1Nfce7yAMaIdk3sQXo6Ax7 WSpg== 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=exd+STsxaELTIrUWo6jjceJFqsRWtCI3WhZhcv9QP9i1ozCq/NWtlJuDVbLwiVm+Xl /11NTX4QTMJD8ZLwp5HfOUAWpVV1B1W7rBF+tgdKsHe+hTzj1sl9tpdZ7kmSI6nAsYDy pkbD5ng88naW4VB2uT1kZLVAkQTAdAZvP45yLaSPoxLvJX6FIGeDdznPV8+vgC7UuYVw 4sK+nsEDuk93YgvTy1sp4F997h8otwpvme+Lmkl4nxlE/jVrFF4IAKxjC20h+zg5FHNj drG5oW04if4Qr04Bm/QemLaW7feyfFoUORJiBb6YhShz2ox3uPBIGpxko5bM7al+/rFm 6njQ== X-Gm-Message-State: ALyK8tLe33WSUjI7sHWHbp2O+zbgrSZsFi1kC6zoLVz1s1suzwzWPLH5IZZ5HU8dRKZUAw== X-Received: by 10.66.151.71 with SMTP id uo7mr4512555pab.134.1467932661946; Thu, 07 Jul 2016 16:04:21 -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 z29sm6846719pff.0.2016.07.07.16.04.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Jul 2016 16:04:21 -0700 (PDT) From: Steve Longerbeam X-Google-Original-From: Steve Longerbeam To: p.zabel@pengutronix.de Subject: [PATCH 11/16] gpu: ipu-v3: Fix CSI data format for 16-bit media bus formats Date: Thu, 7 Jul 2016 16:03:36 -0700 Message-Id: <1467932621-358-12-git-send-email-steve_longerbeam@mentor.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1467932621-358-1-git-send-email-steve_longerbeam@mentor.com> References: <1467932621-358-1-git-send-email-steve_longerbeam@mentor.com> X-Mailman-Approved-At: Fri, 08 Jul 2016 05:26:19 +0000 Cc: 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 --- 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;