From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=213.167.242.64 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796097048; b=zVZRDrm0+Rqet1kh/rP/UW+J6cbRiYPFaZDV+Et520nIMNIr0JSzdJixNr73i8C6lZOc 1YGxTTnHKgg28PnNqSNkXvet6oef8mD3V94qqNV37dKdorPu4R9Xa9CYOM6xMWxIXC3sj 6k/8j2VO2cSP+yH/I+rcLkWyF0DklElDLj7QdIT7DkW2gXV75Zzdobgip9NsWt9kfwahD EDdUbAMk5HpDV9y9p9tkQSLiAdb2SrSJgxcAj62WXeDFBZldZ0RRQ6XjGO6iYaarLO2xp m1hdNb9V6AOyJIuu1DU2NDK2g75CueRfnQTaB3EHU4GcWQRtL3cMUAApRdukMXMuggw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796097048; h=DMARC-Filter:Received:DKIM-Signature:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=xddezG0eWE+MnPx1d4S4/JUGTSQJngzjtiIkL8kcMRI=; b=CUjAvTh8ysiR8x8aIUZzsRR8CktAiirPrKzXcynzPZzFMeAY7nTtn58gpMZ88cttbxwq F3dm4KxL6yur5UeEnrRBpjKyVSLsLEPHfBEV0pKQ404GXpC4pSsJmObWGLFEfaK2oPeoG Kt63zi5mq2fFvyjg+KBaivJviM1WLzljDUMw6ZQcRt5uf6ALpiuAsKWKU0wF5hzg4Jydx UFIvUHOc4Epyj2JY+h7yqym+fXik1w3RFBywJny1exhFWeRlyoIJzcaKjVzmTMPjrME5C SexpcxviRe3qitmfOvsf4dATPIPpt+jp09h9xXOIPphUUxgk1rtp0YtdHO6gj0rJDVg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass header.d=ideasonboard.com header.i=@ideasonboard.com header.a=rsa-sha256 header.s=mail header.b=teeRJGmp; arc=none smtp.remote-ip=213.167.242.64 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 722FF606A31A; Tue, 1 Dec 2026 03:50:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 722FF606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.a=rsa-sha256 header.s=mail header.b=teeRJGmp Received: from killaraus.ideasonboard.com (fp7965754b.ap.nuro.jp [121.101.117.75]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id DBED84B0; Tue, 1 Dec 2026 04:48:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1796096888; bh=8iQ5B56fyb48szhgb/4Ovy0eylWj2H4/at8R51jX4OY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=teeRJGmp1LbJVNaxjNzYVmWuEFSJylbugvPIII8ux9ykCMgGqZWTU3Tcmruc0eYk2 oL0klwllhLaHnNjH74XDTTzKOTp2jIS0Odz4pK6/telU7jMfUIZdll68N4qMcAsuUE Dc09GJCVZz/BcAf9hWftZ3Vjt28cR5GyKbSwt0YM= Date: Tue, 1 Dec 2026 12:50:37 +0900 From: Laurent Pinchart To: Dave Stevenson Cc: Sakari Ailus , Jai Luthra , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alexander Shiyan , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v7 03/18] media: sony-starvis2: Always program the sensor in window mode Message-ID: <20261201035037.GQ24781@killaraus.ideasonboard.com> References: <20261029-media-starvis2-v7-0-b33a1332fdfc@raspberrypi.com> <20261029-media-starvis2-v7-3-b33a1332fdfc@raspberrypi.com> <20261130024638.GD4286@killaraus.ideasonboard.com> X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Mon, Nov 30, 2026 at 03:47:39PM +0000, Dave Stevenson wrote: > On Mon, 30 Nov 2026 at 02:46, Laurent Pinchart wrote: > > On Thu, Oct 29, 2026 at 02:18:24PM +0000, Dave Stevenson wrote: > > > If the requested region matched the defined active area then > > > the driver switched to all-pixel mode. This left the possibility > > > that the active area was incorrect and not reading out the area > > > expected. > > > > That would be a bug in the driver that should be fixed, wouldn't it ? > > If you can find documentation from Sony for all these sensors that > says exactly which pixels their "All-pixel" mode reads out, then > you're a better man than me. Have you noticed where the "all-pixel mode" differs from the active area the driver reports to userspace ? > It was partly self-preservation having got it wrong for imx675 at one > point resulting in weird images, and not wanting to go down the same > path with the others. > > > > Switch to always requesting window mode to avoid this potential > > > mismatch. > > > > This simplifies the code and (hopefully) has no negative side effect, so > > no objection. > > No negative side effects that I've found documentation for. > > > > Signed-off-by: Dave Stevenson > > > --- > > > drivers/media/i2c/sony-starvis2.c | 4 +--- > > > 1 file changed, 1 insertion(+), 3 deletions(-) > > > > > > diff --git a/drivers/media/i2c/sony-starvis2.c b/drivers/media/i2c/sony-starvis2.c > > > index 134fececac5c..31aa1ec6ba40 100644 > > > --- a/drivers/media/i2c/sony-starvis2.c > > > +++ b/drivers/media/i2c/sony-starvis2.c > > > @@ -923,9 +923,7 @@ static int starvis2_program_window(struct starvis2 *starvis2, > > > int ret = 0; > > > > > > cci_write(starvis2->cci, STARVIS2_REG_ADDMODE, 0x00, &ret); > > > - cci_write(starvis2->cci, STARVIS2_REG_WINMODE, > > > - v4l2_rect_equal(crop, &imx678_active_area) ? 0x00 : 0x04, > > > - &ret); > > > + cci_write(starvis2->cci, STARVIS2_REG_WINMODE, 0x04, &ret); > > > cci_write(starvis2->cci, STARVIS2_REG_PIX_HST, > > > crop->left - imx678_active_area.left, &ret); > > > cci_write(starvis2->cci, STARVIS2_REG_PIX_HWIDTH, crop->width, &ret); -- Regards, Laurent Pinchart