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: 9238629 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 96F606075D for ; Wed, 20 Jul 2016 01:13:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 898D92624C for ; Wed, 20 Jul 2016 01:13:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7E9E126E81; Wed, 20 Jul 2016 01:13:54 +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 26C3D2624C for ; Wed, 20 Jul 2016 01:13:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752846AbcGTBNa (ORCPT ); Tue, 19 Jul 2016 21:13:30 -0400 Received: from mail-pa0-f68.google.com ([209.85.220.68]:35088 "EHLO mail-pa0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752619AbcGTBLa (ORCPT ); Tue, 19 Jul 2016 21:11:30 -0400 Received: by mail-pa0-f68.google.com with SMTP id cf3so2230465pad.2; Tue, 19 Jul 2016 18:11:29 -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=F+bCCZH1y5/AT4lHcnQCOszuheKO8sUtP/KUdSbnoNhreFznStm2+qk6/gcuwJdKVy dCSORJrn0Cz3FjgYRH1BwA0QWbCf/iuX41T5jf8aK0IdGRVXDYEd4RKjDr/RgSbnYVQl VviuZAtdBH1GqiWDl8LsdTaXwWATUwG3Yrcc1G8zKwzqfY1TIf+OQCMLSP0lbF0tf+mb XXxxO1FC3BgRgRaabIyhXHuZIFgrLTBGDjqpV2v5TBpxmXhCVosCUmFDdeWiVaucS8SB JdYUf1symc4C0IoOsaW4HKsAmjowji/CAFGxJ1q/VZzir8T98/9qDXZOvyH0HV9fNzg1 BEUA== X-Gm-Message-State: ALyK8tI2hez6PQyTbBhL/Tw/Ui2ntPr0xhiHhu0IlXRKQTfWFjvQFjRCWGQSryzpOb1Djw== 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 Cc: dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Steve Longerbeam 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> 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 --- 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;