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=1796006808; b=PFeBKPSWvrt13GgImoDpMCJrMgypViqdfvhLdJUean6ApYIQTb2ELhVLOIokumXc39ov e8RTYpyzffVO90Nbu29RXKmSUKhH2uY/9cnugC26ISMYJQLBOBNXQtfzpnfl2b2WHFE4z VE4n79QYXaSsmntbqEw0XYnZ1eZtiGqf/NnO0tMHZktP4qt95aGcnnG6gc1RUhmoCk2CU /eulPoZuM7YiWET8C/T4VCOIvcVw+OFJ+BdmveK69mNr6JA/LPbOBmegZNArT2QnevA2p h+1ScLuDggDgL7zg363ZJOF/WFyx+auBvsJoW8zA+r2nl8BjMKnKwgxHRY9JpOV342A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796006808; h=DMARC-Filter:Received:DKIM-Signature:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=6e8QSzARx22Cgpn1FTe5haXgSP5xTIS9/sy6qZYEVlQ=; b=VcsWRu5VNYUFZjixXZL9+A9cdiH0JrmE0vzPvVwwb2bJQsd372ZBjobePwVJWIpA04RD 5m5RS97PQ4p0kxEnYWkMUMVQZcb4UphglmqB4P+8hJT/l0nWsqdZ6kCsqNl7KycQmgSPP GzDDyRvabPQeZVbqeW7j/cIjzyn7cXOgZi7TxUYMance1VZdOPVDthC/GCZWE9j3D5wXL G2kx0CeMCOsCLn0IJh0KSIBulrEq3V+yXDPk2ClVJIZ346nyECofQ+GKZJprznPnSqkzf lTGDwvnpZ0xIavFEPDD4CzNnX4k0VGdZPxL9Q5emnNedQS+2cfjX7bJ0NfUTbx4Xckw== 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=uS9Bm6iR; 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 35E14606A31C; Mon, 30 Nov 2026 02:46:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 35E14606A31C 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=uS9Bm6iR Received: from killaraus.ideasonboard.com (sp49-96-232-4.msc.dcmisp.ne.jp [49.96.232.4]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 7649573E; Mon, 30 Nov 2026 03:44:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1796006649; bh=YGg1eF2fBWBKJ9mpnCNAld6Ni/6Tdg0YbimBG7DV2VU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uS9Bm6iR5yFxv3Vsz6KWhnUCPKRLTBu5XhXYy0yQ7g3E2QC62ITXkaa+FjzGGpEQa E1gROL8xPbkraTl0F15ZY+sviczgTw34rNR3/aC/kOeX2A3/wBwbUjSyDSuofd58ne 1UWDVfaVbmk8O9eWlQAuVNoXjZpVX/av/9tba0bM= Date: Mon, 30 Nov 2026 11:46:38 +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: <20261130024638.GD4286@killaraus.ideasonboard.com> References: <20261029-media-starvis2-v7-0-b33a1332fdfc@raspberrypi.com> <20261029-media-starvis2-v7-3-b33a1332fdfc@raspberrypi.com> X-Mailing-List: devicetree@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: <20261029-media-starvis2-v7-3-b33a1332fdfc@raspberrypi.com> 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 ? > 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. > 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