Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1770938lqe; Mon, 8 Apr 2024 22:28:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUdUu76CxZ4bFPbxfjo/K1CVVYiQU4jISx5zKcVJhnDDFf1DRj64vT2FvYLxbkV6Gr17aA0tVaLM0dv2EVxyE4G7OWni3tQYCaDTDG/KQ== X-Google-Smtp-Source: AGHT+IH6lVAvHqW+PGXdYRbGtFxgHJXPRdVqctcUl9zuDU2WfiqX1/X+/xEDhu3LeFqS2CkkRObR X-Received: by 2002:a05:6214:2aad:b0:69b:1c30:6ebf with SMTP id js13-20020a0562142aad00b0069b1c306ebfmr5080733qvb.57.1712640519500; Mon, 08 Apr 2024 22:28:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712640519; cv=pass; d=google.com; s=arc-20160816; b=r1jyMMQPyB3aA8iumhyZt8jCAhOzmKDhq41nWZexxpeH/86BJlKr6i7BLKTMDi+HFY mYtn6fb4+LJ2bA2houp/6T0a1xlR1kIGCKEXnnfIO8nw9cdETO3pB0ERgDU1aUCKg2vl anGSw6MJuC7sbSClM3gdYIh830AmM+TcIqFnluX0qF/B/iV9cBI04ajPCvxmo+h+UQTm erSjCrsQd7PVBb/CJCuGeGQHFQxi1KRDaWVudwFTKHjgmFWatq6I1PFvNtiRhDKmAJwL abGwSCCLimCOBai0Zld7b8iXXHQUi9Oh6Vdv/jsx7Vp8402AYlW7Q/254I4XgGX6ly37 KtlA== 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=E4MKkW6f1nSRZdtxgNHT1iqRYe28mUV0vTu6PYIA7AU=; fh=t1jCORON07ObHtItRRLLCBr5/XfEXiqF38NOxmhBuVc=; b=rXpf1MCmROewOI/avreen4BMcysALBHGck3txbKd14yjZCYInMV3nrAt6p7CP+E/Kl 5IswsHsRG5MUIzeRbGwsmZSyopLsGk5fGUwTwfoS7cZx9rR7MVJHtI1NJh1Ffh9ojRqH RPOHfg3clxISjhcHv0/N/RbN3H4jqufPIreHhv28OiRBETNLgbM30a+S3dCZF8cclE7z g0ytPs8td6LRUaOHNwwu6lSFkR+ZL+TxamYMh+emFupefdfqgJswujKWlYXSE0WBscB3 h43TnyKT3Yc3vZ0oXN4Fd4qloE9kd5J6VQAIOBewi6hW9Bjt9L9CaOY0BXAJzbC1nv0B F/ng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@luigi311.com header.s=x header.b="IAFTK/4q"; arc=pass (i=1 spf=pass spfdomain=luigi311.com dkim=pass dkdomain=luigi311.com); spf=pass (google.com: domain of linux-kernel+bounces-136250-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136250-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id e18-20020ad450d2000000b00698fec962fesi9768776qvq.204.2024.04.08.22.28.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 22:28:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136250-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=fail header.i=@luigi311.com header.s=x header.b="IAFTK/4q"; arc=pass (i=1 spf=pass spfdomain=luigi311.com dkim=pass dkdomain=luigi311.com); spf=pass (google.com: domain of linux-kernel+bounces-136250-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136250-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 3EADF1C229D9 for ; Tue, 9 Apr 2024 05:28:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1BFEA64CEF; Tue, 9 Apr 2024 05:28:32 +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="IAFTK/4q" Received: from mail-108-mta20.mxroute.com (mail-108-mta20.mxroute.com [136.175.108.20]) (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 8DC9557334 for ; Tue, 9 Apr 2024 05:28:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=136.175.108.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712640511; cv=none; b=lUVxmg39cE4VR+y9GKTgHV79oIKkiXj0yx+qckSwVV1vkxnF+5KgZRIFDshExm9/t5Drzc2Wi3fW8DFJGqBRa8LX+QHsjzA7hdFaXpq5WciNtKMQbslAw7Lfg3XghC40JRkCm9X0I3y1ezSwihoOK+PnvTMRyleavvRvsrCYh4Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712640511; c=relaxed/simple; bh=8c0Qz860G3WkAb0AcWN5WjJC35eH3MG32MPUl0qvQRI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=tWlaIx/3cTSq7H2wsGRx499Q4J5piMMQChukQp5MsoUu/YltcYx9IY4O/hQ/AiX7qdRZhERCrdKWgVwYh4g+758pDGn+Z1dGRoRIM0CAe8NwhF1Hbn+1vl8isNKDPz/OlIA+s02CNPrAPVO39ObzwNkw86DnchqDfd8fZQajNaY= 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=IAFTK/4q; arc=none smtp.client-ip=136.175.108.20 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-mta20.mxroute.com (ZoneMTA) with ESMTPSA id 18ec14f805f0003bea.010 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Tue, 09 Apr 2024 05:23:16 +0000 X-Zone-Loop: 01840a76c8d2ba3bdb6f3dfaaee5ba27bf453e7bca60 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=E4MKkW6f1nSRZdtxgNHT1iqRYe28mUV0vTu6PYIA7AU=; b=IAFTK/4qWYzi0uoH+gzXRH277M szUC1vHKbVHJD93VaP8lYVj7chkg2INkU9P3Twn8j5bvPr5tLsgB39GExHcDqmi5eL/twM0E7zQAa vOEsfdAFAlJGt2o5IfIXHXi6t9iN4G4MYhCNas1emwK2+Yl7qHV746HCf8kvAUg1/FLR0v7UsAqdv S577OjtwYuYwhlvxIoQkcQfdV1Ti5wFJ8aj3UEsBF8dn6r810HgKxE9nepl3ikqGR528RMTdRVm1P M06VNj0ujBzCTMxqBnKEzgIJoc+oiTKaSkde7FVqhN0G7cKnNmG92NeiBkXxdTYlinJQ52sai+WA1 /QtIQjyQ==; Message-ID: <11326ea0-51fb-445c-bae3-f16c40af87a3@luigi311.com> Date: Mon, 8 Apr 2024 23:23:12 -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. > >> + struct v4l2_rect crop; >> }; > > If the crop is same in all modes, should we have it in common place? > > Best regards, > Pavel I gave this a try similar to what was done on imx219 but its having issues and makes a bunch of changes to the following patches so we might need to hold off on that change for now.