From patchwork Wed Jul 20 01:11: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: 9239019 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 A7E12600CB for ; Wed, 20 Jul 2016 07:51:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B6E9275A2 for ; Wed, 20 Jul 2016 07:51:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 904A92787C; Wed, 20 Jul 2016 07:51:43 +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 2C8E2275A2 for ; Wed, 20 Jul 2016 07:51:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E2BC86E787; Wed, 20 Jul 2016 07:51:15 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-x242.google.com (mail-pa0-x242.google.com [IPv6:2607:f8b0:400e:c03::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0CBE06E3AC for ; Wed, 20 Jul 2016 01:11:32 +0000 (UTC) Received: by mail-pa0-x242.google.com with SMTP id hh10so2261157pac.1 for ; Tue, 19 Jul 2016 18:11:32 -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=K1zSo1vt0rWf4DgdJjq+PnJSSPUf463w3x1x3qzPAsI=; b=oOFistlCEvZYAmCOZV+cClAuAJ5Yj3W6f6rKBD54Yg+VrCZZbFsbS2YlQTZJWj/75b VqfoUJrRPQC6wSgyDIBcFiHfhpANCd8Y8FfoAPfucei4KVbu0S2E+ZYlk3gBVVFDJo/Q 6z8zpdVkWfrZnwGILCTaNwHrUDIveKoEiYHlOh+yeDo4BA/c97UHi+2/OIjrY63UJPGt mhtQu4pWNOiYG2ZsPRKOIOXrmucZUETUnoZBqo+a44jdvA/qrE5yHQ64LtdXTXli/ibD 02+bmhokqCYq+mRtRX9vUjcgzKdNovqy7kHT9fL7AiUG2VlscCXNkyAwsaN+oPa4505z 8J5Q== 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=K1zSo1vt0rWf4DgdJjq+PnJSSPUf463w3x1x3qzPAsI=; b=PmProU0pjEF5mtLUMP1wH7Ilg6V2g/zb4zqHJ8ypty1hLeeN4Y4QmDTxvbqTIA1ypN nkb5pV8a5264YjwLt50rUZrHMAu9ReDaRkNtYPCj6SnXFHgmqJscGnHP26Gjh9FDVFxt mkZWeRrW1tOgZlQ9ZxP9jE1C64o05KHZF76iwcyQj4Hn6cX4IkP0nQUvnMPd0ypnII2y h855SLkx1r3yIXnPPqGSFsUs6MJJm5oUXKSXOWCaXwR1hauenMgH1rTyMKcgs8nqKf+d Q1nE/kqfWzBT+TnABTorbEVo9gVapgMxz8Ag8XOWGbWWD5VkolH/At8gUx0tVET5KR+X VWmQ== X-Gm-Message-State: ALyK8tKAPZZOsQrJAhMedoyYlVxGidlLmnxuKgCz0iJ0TQQrh2jqy5WbSz61MI88MHiVuA== X-Received: by 10.66.236.39 with SMTP id ur7mr4757208pac.6.1468977089355; Tue, 19 Jul 2016 18:11:29 -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 d1sm84277pas.48.2016.07.19.18.11.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Jul 2016 18:11:28 -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 v2 09/13] gpu: ipu-v3: Fix CSI data format for 16-bit media bus formats Date: Tue, 19 Jul 2016 18:11:07 -0700 Message-Id: <1468977071-29240-10-git-send-email-steve_longerbeam@mentor.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1468977071-29240-1-git-send-email-steve_longerbeam@mentor.com> References: <1467932621-358-1-git-send-email-steve_longerbeam@mentor.com> <1468977071-29240-1-git-send-email-steve_longerbeam@mentor.com> X-Mailman-Approved-At: Wed, 20 Jul 2016 07:51:13 +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 --- 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;