Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp266270lqe; Fri, 5 Apr 2024 23:37:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVdWHk4rpPgmGCJ74DeFWQhrU/0QrAfz8caxchkM2g16A1Vra2cSrH75LVAETzYNJGRSdx1AJvBpmHcWCBF8agc5j7UvEZudegDIkVpCA== X-Google-Smtp-Source: AGHT+IGPIurf1wra0daSodQD/jm3tdEKXsz9Ty/MqC3ZZl3gluyVI52lQCisemIIvFPtJW1MCqxf X-Received: by 2002:a05:620a:47a7:b0:78d:5a03:2595 with SMTP id dt39-20020a05620a47a700b0078d5a032595mr475780qkb.24.1712385427014; Fri, 05 Apr 2024 23:37:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712385427; cv=pass; d=google.com; s=arc-20160816; b=Q7SeZ08nA1X3HMxDhOGk81fTMtPVCWKiKFLPSlu8V7f3mnsE1e8/jiTf1yYVQ1FYtl k2ljclxK5aTPtuTPV0EDR4nAfdGbQ0hjc0iLaiD3USHFXP7MIIXaPiNOkNcePwSwcpNk XHlWQ2fr2DLGigBLJgiE5EYhKyTYSade1yOeioLySkCZ79BB0sHcXlGf4k/hsS5q+my+ R/o2DhzNIPnvo8ZtOhHLVCrhrJwooTaAzGT3AW1N272xJT1P2biDXGphFMJszCjGfPjI wB6S/5HzlRWiG5gsWIVXFiTn1waDCDaPOk8q+/oC6m/FFb0JARt0lraoFIztZd9xUn+u QaGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=P6oz8jLcfNyvGaOUeOoCwlqC8Ij6mtZ6/gKuz1gexug=; fh=t1jCORON07ObHtItRRLLCBr5/XfEXiqF38NOxmhBuVc=; b=y0BQZL1jKvD4aYF3kHuwaYu5F27LXSx8KGLl9JoXx+GeLNurBOunNSXzkWd9ki6GnY YdXbdo1XLsXL9zUmwSEPocbOHmOplwrTsYC6V3kWSqv1Fknl7auAiXlUUIMKeG2969Aj VlAzabgRMKxyiUCf6HDJj5DBgaT1rDC/kHFVaOX91LGHPIH4jB/1aGJHk0+/qwFPHOy0 lPn3ajsyNyC6rkcz/9VxLMTSItG18sSdGUpR5R9rtcdDoJIocWEUxtvyExNwwHhvFETN tjXsniftuxOcDyPlt2V4BHkcVPQEJEjfyCENtBnNDOrlNDQffMQhxX/jl8c1+yDmeFhI ZWiA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@luigi311.com header.s=x header.b=WPhbq6ZE; arc=pass (i=1 spf=pass spfdomain=luigi311.com dkim=pass dkdomain=luigi311.com); spf=pass (google.com: domain of linux-kernel+bounces-133831-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133831-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z25-20020a05620a08d900b00789dc60c293si3576278qkz.708.2024.04.05.23.37.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 23:37:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133831-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=fail header.i=@luigi311.com header.s=x header.b=WPhbq6ZE; arc=pass (i=1 spf=pass spfdomain=luigi311.com dkim=pass dkdomain=luigi311.com); spf=pass (google.com: domain of linux-kernel+bounces-133831-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133831-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id BD91C1C218E2 for ; Sat, 6 Apr 2024 06:37:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 84C502209B; Sat, 6 Apr 2024 06:37:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=luigi311.com header.i=@luigi311.com header.b="WPhbq6ZE" Received: from mail-108-mta234.mxroute.com (mail-108-mta234.mxroute.com [136.175.108.234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 71BD31DA22 for ; Sat, 6 Apr 2024 06:36:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=136.175.108.234 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712385419; cv=none; b=oFrUZtZ9L80265cnreQF1MTPn/MgoEJp6IuUCnLV2Ktqn9l5VjoQ0TdYNh3+gJXWAcyiXG9WhkN5NQ4+TcV/ZsnOuz6yJEISvlMWawjJfR7U04EB5frGZJzJVt471YI4pikLs/ynaSXQMLUh8TV3bAWcbTBjinZWu5rIGBOSB5c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712385419; c=relaxed/simple; bh=OxraREhf6GRED2LQephjdnm0ObJkCkvoK147D6T36ys=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ukmN6OvAlVga0/3Yw0/FX8iTEGfQXZdoMgVKKswGQXEc8WTrf49+VkxEilpVVKRhh3KSTJaZqKrVS0xrGAMG4sj4u37rbRzZtmQE3ii7PspG98bgOhWVS0+udKfRIW9HiNml7k2kd12vV2K6k9ewcgXgpGBIjDkSaOAs8U9G0KM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=luigi311.com; spf=pass smtp.mailfrom=luigi311.com; dkim=pass (2048-bit key) header.d=luigi311.com header.i=@luigi311.com header.b=WPhbq6ZE; arc=none smtp.client-ip=136.175.108.234 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=luigi311.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=luigi311.com Received: from filter006.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta234.mxroute.com (ZoneMTA) with ESMTPSA id 18eb21fcaf10003bea.010 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Sat, 06 Apr 2024 06:36:51 +0000 X-Zone-Loop: 006decbd269796b9872b0f00c74dc860d77896dc85a4 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=luigi311.com; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=P6oz8jLcfNyvGaOUeOoCwlqC8Ij6mtZ6/gKuz1gexug=; b=WPhbq6ZEa+mQTnijWaBY6xxs/H cfHYUnpSRs8fOhOb/O4yJffkApW8GbdCsZ9fgpCJBUMa3pysrcREVULO1R/UkyRqIiPc9mObnfXPv YmP7o/tAqB0ayOqkRLxs5fQtXrUia6yJroEUCCB+ckUFpQp8RHDB0YyE7tXXD9rJenqQZDa30Cqkj soLpFl0b5rnHDmjMNbaU+mvK6HOXuMsdAhCIuIT3xhAYVnT6i+9TrIfSP7p+3tjqrOm0eD3oFmOvb FE0z2dqpWXi9w++3zacDwlhzLX9akXx4T0C5yl6+Qkahp/SWJ/+9Q9RvAIcOuf71zbchDNERWMcas kIvWVcdg==; Message-ID: <91621b30-dc6f-49cb-878c-96d39e38d994@luigi311.com> Date: Sat, 6 Apr 2024 00:36:47 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 11/25] media: i2c: imx258: Add get_selection for pixel array information To: Pavel Machek Cc: linux-media@vger.kernel.org, dave.stevenson@raspberrypi.com, jacopo.mondi@ideasonboard.com, mchehab@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, sakari.ailus@linux.intel.com, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org References: <20240403150355.189229-1-git@luigi311.com> <20240403150355.189229-12-git@luigi311.com> Content-Language: en-US From: Luis Garcia In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Authenticated-Id: git@luigi311.com On 4/3/24 12:46, Pavel Machek wrote: > Hi! > >> Libcamera requires the cropping information for each mode, so >> add this information to the driver. > >> @@ -116,6 +124,9 @@ struct imx258_mode { >> u32 link_freq_index; >> /* Default register values */ >> struct imx258_reg_list reg_list; >> + >> + /* Analog crop rectangle. */ > > No need for "." at the end, as it is not above. > Done >> + struct v4l2_rect crop; >> }; > > If the crop is same in all modes, should we have it in common place? > > Best regards, > Pavel I see the imx219 made a similar change where it was changed from using that .crop format to just setting it in the set_pad_format function so we can do something similar here.