Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp733674rdg; Wed, 11 Oct 2023 04:12:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHu96c0aMGvyeWf/k+6ZQKjobknStQGtFvkdPtud98lgwF/ZPou3Nj3/KuuJ6Li36K6QgZV X-Received: by 2002:a05:6a21:6d9b:b0:158:1387:6a95 with SMTP id wl27-20020a056a216d9b00b0015813876a95mr22425151pzb.19.1697022759115; Wed, 11 Oct 2023 04:12:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697022759; cv=none; d=google.com; s=arc-20160816; b=ge7tKmSK9e2GwB59HWncn4MjWKwTBDxSgp7NzNYgIxlgnkpoDjx7VZUFU4/HFkMWCY gQxbkoSIa0aHCcQKKdPHqkBaM1ytxT4n8YIAcp6tBvsj4OjGRDimAqEPHJOwOFmGWFHM 7Waf6fj9ODFdd2dnC10x2SwlqyYDDCZmTaSF2AHNlNE8I89EH1WpJZVgYDynUEK1ZRZt 8EL+ceMJl4VNpl4eqzqi2tCjfm7wWbGeNBmkYMca7gEGQvc6/Cjwd/nBQw93ZL8wlQhy JZ3lZnp8m9xIRqcVJhOuhcYjzAO9JudSj9uPXPOmlMYaNcC1tsvaxlZwmz+qFhMFzoHW ssAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fCH5UlLdzliw5iuV01zP7sGXHhtl3UQ3ZX7UVEB8qTg=; fh=ZVQaHI+Tyn1ZBvEndN7n/DxWrcFhq3g5rKJqfFdORmE=; b=PADxLoxy3cEMT3zqQ7bNchBxfy5vw7+1bTH2bs97ocakq4rVj0bIXp9MHYzibxAxdE +W3lWq7emCdCXr8WVvbqOudiU+lEfwOnYXdPM/FQbtbsoG5gPpH5oHQSqhQScVW7ofr/ C8uWcwCvH4KNp1dsV6irx5k4ug5REXSfMx4eG1VCqiNoUQgJ4V4kRqa6KFOUjy+UaEsk E2cStKLkk+xNdpzrVBjE0hSwtS3aXBo8UQqpwnZziAx09blE1Ru/P/saZTSscy42J/KV s1DGoEGDa9dBE3DSQaileZC5NxAsN4zbtMo/G0KMkRfeAuTp58tIKZtFovNa9hevJe20 myiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Uz0f/eNl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id z7-20020a1709027e8700b001c9b5d2c406si3441199pla.403.2023.10.11.04.12.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 04:12:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Uz0f/eNl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 87EC380FFD94; Wed, 11 Oct 2023 04:12:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231608AbjJKLMZ (ORCPT + 99 others); Wed, 11 Oct 2023 07:12:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231264AbjJKLMX (ORCPT ); Wed, 11 Oct 2023 07:12:23 -0400 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8DF0A7; Wed, 11 Oct 2023 04:12:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697022742; x=1728558742; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=6X17CQk262SF6/jtSrC9+lvmvN3o4Ya/8mawpifctfY=; b=Uz0f/eNlcyqTalTISzq3YeTdlPf7GgcjiitXhbHsV2uP4/hEZAvzGLY9 O6Jomj50TyQUyeiTFI9Kq/1nhelw2qrCsEtECHK1LO7E8UvwDw4AFm3Px lebvcKMut+C/yZVt22FkwC6xTPvD+JuR6pDbnZayM/dKKdO2nHMpQ/T/5 Iu76zTZfEun+2DskjZnH51wbnJMmluW/SkCI8n/DI+YAi4B2Khfp+J38h 2EZyywyjLs6V8SWvFtPBpUHNYmIZr3BW2dEPhHnBARVDCNpup/K2Ur4Db AJeoGWswd3RnxCo2PhIOIN0bsIgg+DA9IYPzMyZs94Iyv+rmKYOCGycE2 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="3224774" X-IronPort-AV: E=Sophos;i="6.03,214,1694761200"; d="scan'208";a="3224774" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 04:12:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="730459248" X-IronPort-AV: E=Sophos;i="6.03,214,1694761200"; d="scan'208";a="730459248" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 04:12:18 -0700 Received: from kekkonen.localdomain (localhost [127.0.0.1]) by kekkonen.fi.intel.com (Postfix) with SMTP id 07C9011F835; Wed, 11 Oct 2023 14:12:15 +0300 (EEST) Date: Wed, 11 Oct 2023 11:12:14 +0000 From: Sakari Ailus To: Kieran Bingham Cc: Sakari Ailus , linux-media@vger.kernel.org, devicetree@vger.kernel.org, "Paul J. Murphy" , Daniele Alessandrelli , Mauro Carvalho Chehab , open list , laurent.pinchart@ideasonboard.com, hverkuil@xs4all.nl Subject: Re: [PATCH 3/5] media: i2c: imx335: Implement get selection API Message-ID: References: <20231010005126.3425444-1-kieran.bingham@ideasonboard.com> <20231010005126.3425444-4-kieran.bingham@ideasonboard.com> <169701831889.277971.6656559808677876108@ping.linuxembedded.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <169701831889.277971.6656559808677876108@ping.linuxembedded.co.uk> X-Spam-Status: No, score=2.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 11 Oct 2023 04:12:36 -0700 (PDT) X-Spam-Level: ** Hi Kieran, On Wed, Oct 11, 2023 at 10:58:38AM +0100, Kieran Bingham wrote: > Quoting Sakari Ailus (2023-10-10 07:14:09) > > Hi Kieran, > > > > On Tue, Oct 10, 2023 at 01:51:24AM +0100, Kieran Bingham wrote: > > > Support reporting of the Sensor Native and Active pixel array areas > > > through the Selection API. > > > > > > The implementation reports a single target crop only for the mode that > > > is presently exposed by the driver. > > > > > > Signed-off-by: Kieran Bingham > > > > Shouldn't you use the same callback for .set_selection? I guess this is > > somewhat grey area but doing so would be in line with how V4L2 API works in > > general. > > Hrm ... I didn't think it was needed as it's not possible to /set/ > anything. Similarly, VIDIOC_SUBDEV_S_FMT is available even if you can't change the format. > > I expect to change this once I add support for setting crops later > though. It was going to be something I'd add when it is used. > > Only the 'get_selection' call is necessary to make this camera operate > on both i.MX8MP and RPi5 platforms with libcamera, so that's what I've > done so far. My goal of this series was to bring the existing driver up > to a point that it can be used, before I start making new feature > additions. I don't have concerns with that, just that we implement the IOCTLs consitently. This has been discussed before but AFAIR without any firm conclusions. Additionally, some targets are settable while some won't be, and it may well depend on the driver. v4l2-compliance appears to be happy with G_SELECTION without S_SELECTION though. Also cc Hans. -- Regards, Sakari Ailus