Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3251284lqp; Tue, 26 Mar 2024 04:16:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWyDCUunp1100vTb0HsG+15d4Cu3HuDeh87LmahJZgrs5iZHKg3iy230qoTFY+NH7CvqGcA3ATJus6pvjWt1ej2jdXsu/4YL8nsWINbSQ== X-Google-Smtp-Source: AGHT+IHe4vtzntcHmh0zs9OTCAH20+O7kTLDwfxjOpCCdHhO6VN/sJnHp5oiF/Y+o7OWCapCcQrz X-Received: by 2002:a17:902:e9c6:b0:1dd:df8c:4334 with SMTP id 6-20020a170902e9c600b001dddf8c4334mr8920600plk.62.1711451760029; Tue, 26 Mar 2024 04:16:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711451760; cv=pass; d=google.com; s=arc-20160816; b=eegtUoAdYHfEn6NKivw4x/E9UYwYIsMS5dwJdzcTuqFE785QkzmZTpUOHxseJsMelU /e0NoWutubcCxoN6SEMvaYrLOGDKchqFgYRdDKlXY1oBKi3IyrINpGVm6e9uLQXSm0Cs DoyHqamMekdeCxRKAW8Aokzrx+BCgGdbSXR9PK85iLis5zMdfyc+M5D/uHuhpCsy19C8 WwcLcACD7pMhP0E1V1jaBb5UrNgnS4tDyHZ8yPbqmvAh7ZOgjFbGy79McDpCA4zHBeDx tcc9rUlYn418ZWhJATX6ZbWefECrtuUGzo1KOtkqxOMFv9XGEYTwMEbYetq+/DJHtmdV d/og== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:message-id:date:to:cc:from:subject:references :in-reply-to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=vDSyQBy1a+4s8yKz6MUayE5rVtfW64DcfsKCdK3bKCY=; fh=KUWNNDaIq8nbTnZd3npT2wXW83rU1dGrIFsScfr4Dzw=; b=gttgaIe3Wp+cVbOH9t55l5L3CQPLGBNaMf3K8ri9w3v4u7NVtneifUchqZDr2ZJnnv U+MJfSGRFZyi9kT/f6mjp3SWAeFG0A4k+kOfj9tP8iftS0xHvrzg6xqe1Dfrq871Y+NV 7oj8ukh+xECEkg4FSym7f5nB7T8eorTVuixTLlPpmbMii932Q7VTYUmJoV+eDseG4QJZ iDLussqCjV83r0kqZDxGwSKmm0jf5thWYUfjHc2ZcdAXQVJwvcEgrIeZ58R2ncvGH4jl ChrNapx6VRzOFZlc8mO8XY92UTJyHoY+nFnpwlXLX1OShFjnfb3Gux28p2cH4YA/iyTo cEdA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=bO29NbXc; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-118859-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118859-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s8-20020a170902ea0800b001e083472790si7550572plg.459.2024.03.26.04.15.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 04:16:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118859-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=bO29NbXc; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-118859-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118859-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A036F2C376E for ; Tue, 26 Mar 2024 11:15:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 63A90535A3; Tue, 26 Mar 2024 11:15:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="bO29NbXc" Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B51345022 for ; Tue, 26 Mar 2024 11:15:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711451742; cv=none; b=PvwWWlbaL0kxk25AH93a3vdeO2dMR5SUcGPPFTFRdqNMucqizT9jJbhE0aR3ylQJJbw5XjA/DPsc0elL4MYTUDzmEMjKfnERAYOkqAVu7VIAVIj0VTZ7bH93al3PzTezhMxeytIixTxEsA3Etl3L2J3tK8C9qCL9wIQACw4ry2A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711451742; c=relaxed/simple; bh=p0SP+3hWz6lk8cCE7sf3j9Xgizc96y3imCYOUoZL1O0=; h=Content-Type:MIME-Version:In-Reply-To:References:Subject:From:Cc: To:Date:Message-ID; b=dWwiDXORL+VFsqx8ritNGuZEHgcbMESqokqh72TjXVLzyXLWtrkKtGWwLsMJsx6oBW1pOCJpaIpc2VKk4B8Nwp7PiHReitpu9tKEIsMhDeUzV1JDLnEthOoXlm/ksbsy5PhnyC2g1uUzDUV50h+/iaeayQ3b4rG7slNC6uDEpT8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=bO29NbXc; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Received: from pendragon.ideasonboard.com (aztw-30-b2-v4wan-166917-cust845.vm26.cable.virginm.net [82.37.23.78]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id E3C91497; Tue, 26 Mar 2024 12:15:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1711451707; bh=p0SP+3hWz6lk8cCE7sf3j9Xgizc96y3imCYOUoZL1O0=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=bO29NbXcyi6c8nEimTRS6uwmhTD+Pn8RY9rGvw3/jL9OXOJY9AO+/JWxo+ntB6A5R 0NNy/2pCtYUUVGbzNcHpls4ZfalMSTvwl4pgMoP0F8VEUdgBWtXYQIuBasjKCgqr00 yKHvnheJkotIct/IfxfqcWY2ZIpmcO7AsLgzX2Ts= Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20240319072712.133449-6-umang.jain@ideasonboard.com> References: <20240319072712.133449-1-umang.jain@ideasonboard.com> <20240319072712.133449-6-umang.jain@ideasonboard.com> Subject: Re: [PATCH v3 5/6] media: imx335: Fix active area height discrepency From: Kieran Bingham Cc: Umang Jain To: Alexander Shiyan , Dave Stevenson , Sakari Ailus , Umang Jain , open list Date: Tue, 26 Mar 2024 11:15:34 +0000 Message-ID: <171145173466.1011926.14195824080886002217@ping.linuxembedded.co.uk> User-Agent: alot/0.10 Quoting Umang Jain (2024-03-19 07:27:11) > The imx335 reports a recommended pixel area of - 2592x1944. > The driver supported mode however limits it to height=3D1940. >=20 > Fix the height discrepency by correctly the value of height > (with updates to vblank and mode registers). "Fix the height discrepency by correcting the Y_OUT_SIZE, HTRIMMING_START, and changing the WINMODE, followed by the corresponding updates to reflect the new minimum vblanking periods." I'm curious though - why does IMX335_REG_HTRIMMING_START jump /so/ much here? Something to do with the WINMODE change? Because I've seen this works and with the optional update to the commit message: Reviewed-by: Kieran Bingham >=20 > Signed-off-by: Umang Jain > --- > drivers/media/i2c/imx335.c | 18 +++++++++--------- > 1 file changed, 9 insertions(+), 9 deletions(-) >=20 > diff --git a/drivers/media/i2c/imx335.c b/drivers/media/i2c/imx335.c > index 7609dbc537b1..10a09830dbd6 100644 > --- a/drivers/media/i2c/imx335.c > +++ b/drivers/media/i2c/imx335.c > @@ -247,13 +247,13 @@ static const int imx335_tpg_val[] =3D { > }; > =20 > /* Sensor mode registers */ > -static const struct cci_reg_sequence mode_2592x1940_regs[] =3D { > +static const struct cci_reg_sequence mode_2592x1944_regs[] =3D { > {IMX335_REG_MODE_SELECT, 0x01}, > {IMX335_REG_MASTER_MODE, 0x00}, > - {IMX335_REG_WINMODE, 0x04}, > - {IMX335_REG_HTRIMMING_START, 384}, > + {IMX335_REG_WINMODE, 0x00}, > + {IMX335_REG_HTRIMMING_START, 48}, > {IMX335_REG_HNUM, 2592}, > - {IMX335_REG_Y_OUT_SIZE, 1940}, > + {IMX335_REG_Y_OUT_SIZE, 1944}, > {IMX335_REG_AREA3_ST_ADR_1, 176}, > {IMX335_REG_AREA3_WIDTH_1, 3928}, > {IMX335_REG_OPB_SIZE_V, 0}, > @@ -404,15 +404,15 @@ static const u32 imx335_mbus_codes[] =3D { > /* Supported sensor mode configurations */ > static const struct imx335_mode supported_mode =3D { > .width =3D 2592, > - .height =3D 1940, > + .height =3D 1944, > .hblank =3D 342, > - .vblank =3D 2560, > - .vblank_min =3D 2560, > + .vblank =3D 2556, > + .vblank_min =3D 2556, > .vblank_max =3D 133060, > .pclk =3D 396000000, > .reg_list =3D { > - .num_of_regs =3D ARRAY_SIZE(mode_2592x1940_regs), > - .regs =3D mode_2592x1940_regs, > + .num_of_regs =3D ARRAY_SIZE(mode_2592x1944_regs), > + .regs =3D mode_2592x1944_regs, > }, > }; > =20 > --=20 > 2.43.0 >