From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7BFB2C41604 for ; Mon, 21 Sep 2020 21:40:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 34BBF23A62 for ; Mon, 21 Sep 2020 21:40:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=nvidia.com header.i=@nvidia.com header.b="gVAOExMj" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727340AbgIUVjs (ORCPT ); Mon, 21 Sep 2020 17:39:48 -0400 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:14308 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726452AbgIUVjs (ORCPT ); Mon, 21 Sep 2020 17:39:48 -0400 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Mon, 21 Sep 2020 14:39:35 -0700 Received: from HQMAIL107.nvidia.com (172.20.187.13) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 21 Sep 2020 21:39:47 +0000 Received: from skomatineni-linux.nvidia.com (172.20.13.39) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Mon, 21 Sep 2020 21:39:46 +0000 From: Sowjanya Komatineni To: , , , , , , , , , , CC: , , Subject: [PATCH v6 1/3] media: i2c: imx274: Fix Y_OUT_SIZE register setting Date: Mon, 21 Sep 2020 14:39:37 -0700 Message-ID: <1600724379-7324-2-git-send-email-skomatineni@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1600724379-7324-1-git-send-email-skomatineni@nvidia.com> References: <1600724379-7324-1-git-send-email-skomatineni@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1600724375; bh=7eG8er5DakEQLU4K41aXrq57p9hJvRNjoRAVrC46VL0=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:X-NVConfidentiality:MIME-Version:Content-Type; b=gVAOExMjumXyLu50PLkCCZDmsxHy2Y0yDBn2eITXve2gDR7AoPICfZdyZz0KbcOYc 8rY8SDz7S8UyJFv9C3co6EudINdhF/sr/1JjBpuEUzu/t5WDPo6nezHpMQkJEryTy4 C/zZsk+byHolIN7ZuQTiD51UcrSPaSCX0Rnsyjj8Qx+yIJuYknuwhV2SVGeOSYO4Be M5D4vUET29dCwUFwhjKEeRrzEq/zZXsWtsXQoy4YxMlAnUTUgYtznb93iR/QKl7oZ6 4hmuD7Zkcdzw4sIAcuu1+G9GIaYtYC1LBpljt3Oxhidnj7Et7R+1Uvi2HYvMuLBM/O Xuuq4ZR2iFgaw== Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org As per Sony IMX274 Y_OUT_SIZE should be the height of effective image output from the sensor which are the actual total lines sent over MIPI CSI to receiver. So, Y_OUT_SIZE should be same as crop height and this patch fixes it. Signed-off-by: Sowjanya Komatineni --- drivers/media/i2c/imx274.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/imx274.c b/drivers/media/i2c/imx274.c index 6011cec..a4b9dfd 100644 --- a/drivers/media/i2c/imx274.c +++ b/drivers/media/i2c/imx274.c @@ -1163,7 +1163,7 @@ static int imx274_apply_trimming(struct stimx274 *imx274) (-imx274->crop.top / 2) : (imx274->crop.top / 2); v_cut = (IMX274_MAX_HEIGHT - imx274->crop.height) / 2; write_v_size = imx274->crop.height + 22; - y_out_size = imx274->crop.height + 14; + y_out_size = imx274->crop.height; err = imx274_write_mbreg(imx274, IMX274_HMAX_REG_LSB, hmax, 2); if (!err) -- 2.7.4