From nobody Mon Aug 24 22:43:28 2026 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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 B617D4508F7 for ; Wed, 8 Jul 2026 14:49:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783522161; cv=none; b=ldDukGaknaotUyrxpTji2NUzWXOGRSx0bNPoAs4234z7ge3LacnSbdAWsuyTaTWL8dYgoizi0NOVQsrP8b/HZIsYRK3CIlTHnu1XNjsxbRTfhCyA1adAaMuNun53WD1ARPfBhqaRNjfUicBnaZl0wYBLbF2suYoj+d1dQoyYZMk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783522161; c=relaxed/simple; bh=W23XwrRaIK45UKWx+pemC8iWWRlXIUUJWHH74piX54c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rVxYb6ZXYf9Yzjxo705txMV4jFu5M9dId4wtq2D1bv8+2q3mmx82KAyjoNfOywqOwl5Si6tTqPDUUHavL+TSx9q6k7j7titBmG+A/IkPvoupmagN683ywQWQdjr7Dc14/FD2DMkzApDr3KB+KsjrXVqowoGYcMjDEp7Pvp5rw54= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=raspberrypi.com; spf=pass smtp.mailfrom=raspberrypi.com; dkim=pass (2048-bit key) header.d=raspberrypi.com header.i=@raspberrypi.com header.b=SRYRgKln; arc=none smtp.client-ip=209.85.221.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=raspberrypi.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=raspberrypi.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="SRYRgKln" Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-476a130c138so867409f8f.0 for ; Wed, 08 Jul 2026 07:49:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1783522153; x=1784126953; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=TJcpwUL5OnSXVi1yEj1ZgDZ7aAujN4ZxyzVguEBXsyw=; b=SRYRgKlnwEAbdY2mhfvJmN3I3uE5D/4t1RYTUR3AV9VrD1l3TBGVIs5TlZBIy8OZ0N E2ybG+v2iWu+AXHIcaWTeyu24xv+BdB4sR5+FcDcY2XOowb+4gLkIU4vjFEBSyHaFG0y /3P/COVlD7MEnUqDueeO88DPv3DP8ifQi05BPDJby72lPlouRA5Xg3ZTAS0YnWgPqPp0 E0+fEPdePBxbhkggWtcdoDVphDMJpCvrA8dt3y5C1meKqoxUIy8Hp3hBhWy/ltcfXLbl FZpsqmdJItSxEKtGJMMXQiYzq75uvuoIKBWfp8WngG56GQfwe0S9mAH3/ZJo7Ci47Fnj EwGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783522153; x=1784126953; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=TJcpwUL5OnSXVi1yEj1ZgDZ7aAujN4ZxyzVguEBXsyw=; b=SqvF7Hg95RiZqY/Xw4N7SZPa9Rrhg82O91EiF6zuJ5hS4PEwo/k7duuxq3vnvhaBKt +E+MYZv4uFR+ApYZaMnMxBN/jDXxZdHNhbJesC1CvqFOn0aAf0TDLzmOa4FjhPTKhYWs m26P6pDd602Cx/Cx7qGIsZuKXnF2J0qe/BhhJcd59lgWGKfD0Pyw+rwNeaeBh5djusQj o2UhKcIKEtl2YHA5X5nCa5RZ2ZEAqY/zlTt6wV2lTEqkikWYmkzMe6urpqyMwbHELWyl Bbdxlnm7hSAEMJdZbUecMmjmOSj+LCaBz+kwVEbY+XwU0nhaY1YVkMKYABY6UfeGgioU Jt2w== X-Forwarded-Encrypted: i=1; AHgh+RpcWV1wQ7JlHQuGMNMM70Tv9mFxQ62zu9JGO4cjIg8L8wzhLMAWTTub2PLnvYsdJdCGTmXmOBKjxo448J4=@vger.kernel.org X-Gm-Message-State: AOJu0Yzanw1frgItNHEYdgSo0gPDfxw3OeHdKSxTOdMrQidr4rmXxh9h y0G2ggDPc0tZ2sdP+i57PL//7lH1irC3AfoZJ/h6P8i3m3H5GqWpLdpA+/4QGhRu+h4= X-Gm-Gg: AfdE7cmWoMIRgXakgnfKccVoAS9b8+AIaoLrBERQhXK6ouSCjQZSFMG5rUNV1ZNB15B HTHZvXhkv24fV5jIJxgJjV/JpXz7Li2xpaAWQfuXAQeg+Oz0bHaxhN60LP3pP25YOpw3pPIzKR4 vbBMUwXhhtN8Am2uGQkHqI+RcNUbn+6YHnQhi+wi7SWSWREB7f+vFoIHCDXFHx8omR7YtMkR/NC uR88nu8NM2h6xNz4JPpIBBmsFp3ZHOP3C6kiv+sro3T/eir74OY8Ff2dt4uOPjujFI1bMzbwdEY O3v8yBO5iThhnZBKgsMiwebqLQT19KlEFrIplK77RwXBDHxScGIC2P5nTarlgC5BtGJ04hYrJQu rDyS7JJxhC2HzWfN3j7EJV1yrE3GfFqb0VoC8+aGlnBYvB3dCKXLI6lbFaTSNIt/h8WAjkS01n7 AnyZ+sA67lAA+gapsKE5eGjcWbgO6gFkBM7pQ1sdOj9egzAIejW/Ap115CFz6XTvR2gP6FwNi2v 24= X-Received: by 2002:a05:600c:4512:b0:493:b7cb:c5f with SMTP id 5b1f17b1804b1-493e6893c66mr27120565e9.11.1783522152948; Wed, 08 Jul 2026 07:49:12 -0700 (PDT) Received: from [127.0.1.1] ([2a00:1098:3142:e::8]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-493e0fbd355sm135363315e9.13.2026.07.08.07.49.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jul 2026 07:49:12 -0700 (PDT) From: Dave Stevenson Date: Wed, 08 Jul 2026 15:48:40 +0100 Subject: [PATCH v3 04/20] media: imx355: Remove setting FRM_LENGTH_LINES in the mode regs Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260708-media-imx355-v3-4-9df386a623d7@raspberrypi.com> References: <20260708-media-imx355-v3-0-9df386a623d7@raspberrypi.com> In-Reply-To: <20260708-media-imx355-v3-0-9df386a623d7@raspberrypi.com> To: Sakari Ailus , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Richard Acayan Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, David Heidelberg , Jacopo Mondi , devicetree@vger.kernel.org, Dave Stevenson X-Mailer: b4 0.14.1 Registers 0x0340 and 0x0341 (FRM_LENGTH_LINES) are already written from the set_ctrl(V4L2_CID_VBLANK) handler, so don't write them from the mode register list. Signed-off-by: Dave Stevenson Reviewed-by: Jacopo Mondi --- drivers/media/i2c/imx355.c | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/drivers/media/i2c/imx355.c b/drivers/media/i2c/imx355.c index 4eaccd9e90f1..24c883a6c520 100644 --- a/drivers/media/i2c/imx355.c +++ b/drivers/media/i2c/imx355.c @@ -254,8 +254,6 @@ static const struct imx355_reg_list imx355_global_setti= ng =3D { static const struct imx355_reg mode_3268x2448_regs[] =3D { { 0x0342, 0x0e }, { 0x0343, 0x58 }, - { 0x0340, 0x0a }, - { 0x0341, 0x37 }, { 0x0344, 0x00 }, { 0x0345, 0x08 }, { 0x0346, 0x00 }, @@ -278,8 +276,6 @@ static const struct imx355_reg mode_3268x2448_regs[] = =3D { static const struct imx355_reg mode_3264x2448_regs[] =3D { { 0x0342, 0x0e }, { 0x0343, 0x58 }, - { 0x0340, 0x0a }, - { 0x0341, 0x37 }, { 0x0344, 0x00 }, { 0x0345, 0x08 }, { 0x0346, 0x00 }, @@ -302,8 +298,6 @@ static const struct imx355_reg mode_3264x2448_regs[] = =3D { static const struct imx355_reg mode_3280x2464_regs[] =3D { { 0x0342, 0x0e }, { 0x0343, 0x58 }, - { 0x0340, 0x0a }, - { 0x0341, 0x37 }, { 0x0344, 0x00 }, { 0x0345, 0x00 }, { 0x0346, 0x00 }, @@ -326,8 +320,6 @@ static const struct imx355_reg mode_3280x2464_regs[] = =3D { static const struct imx355_reg mode_1940x1096_regs[] =3D { { 0x0342, 0x0e }, { 0x0343, 0x58 }, - { 0x0340, 0x05 }, - { 0x0341, 0x1a }, { 0x0344, 0x02 }, { 0x0345, 0xa0 }, { 0x0346, 0x02 }, @@ -350,8 +342,6 @@ static const struct imx355_reg mode_1940x1096_regs[] = =3D { static const struct imx355_reg mode_1936x1096_regs[] =3D { { 0x0342, 0x0e }, { 0x0343, 0x58 }, - { 0x0340, 0x05 }, - { 0x0341, 0x1a }, { 0x0344, 0x02 }, { 0x0345, 0xa0 }, { 0x0346, 0x02 }, @@ -374,8 +364,6 @@ static const struct imx355_reg mode_1936x1096_regs[] = =3D { static const struct imx355_reg mode_1924x1080_regs[] =3D { { 0x0342, 0x0e }, { 0x0343, 0x58 }, - { 0x0340, 0x05 }, - { 0x0341, 0x1a }, { 0x0344, 0x02 }, { 0x0345, 0xa8 }, { 0x0346, 0x02 }, @@ -398,8 +386,6 @@ static const struct imx355_reg mode_1924x1080_regs[] = =3D { static const struct imx355_reg mode_1920x1080_regs[] =3D { { 0x0342, 0x0e }, { 0x0343, 0x58 }, - { 0x0340, 0x05 }, - { 0x0341, 0x1a }, { 0x0344, 0x02 }, { 0x0345, 0xa8 }, { 0x0346, 0x02 }, @@ -422,8 +408,6 @@ static const struct imx355_reg mode_1920x1080_regs[] = =3D { static const struct imx355_reg mode_1640x1232_regs[] =3D { { 0x0342, 0x07 }, { 0x0343, 0x2c }, - { 0x0340, 0x05 }, - { 0x0341, 0x1a }, { 0x0344, 0x00 }, { 0x0345, 0x00 }, { 0x0346, 0x00 }, @@ -446,8 +430,6 @@ static const struct imx355_reg mode_1640x1232_regs[] = =3D { static const struct imx355_reg mode_1640x922_regs[] =3D { { 0x0342, 0x07 }, { 0x0343, 0x2c }, - { 0x0340, 0x05 }, - { 0x0341, 0x1a }, { 0x0344, 0x00 }, { 0x0345, 0x00 }, { 0x0346, 0x01 }, @@ -470,8 +452,6 @@ static const struct imx355_reg mode_1640x922_regs[] =3D= { static const struct imx355_reg mode_1300x736_regs[] =3D { { 0x0342, 0x07 }, { 0x0343, 0x2c }, - { 0x0340, 0x05 }, - { 0x0341, 0x1a }, { 0x0344, 0x01 }, { 0x0345, 0x58 }, { 0x0346, 0x01 }, @@ -494,8 +474,6 @@ static const struct imx355_reg mode_1300x736_regs[] =3D= { static const struct imx355_reg mode_1296x736_regs[] =3D { { 0x0342, 0x07 }, { 0x0343, 0x2c }, - { 0x0340, 0x05 }, - { 0x0341, 0x1a }, { 0x0344, 0x01 }, { 0x0345, 0x58 }, { 0x0346, 0x01 }, @@ -518,8 +496,6 @@ static const struct imx355_reg mode_1296x736_regs[] =3D= { static const struct imx355_reg mode_1284x720_regs[] =3D { { 0x0342, 0x07 }, { 0x0343, 0x2c }, - { 0x0340, 0x05 }, - { 0x0341, 0x1a }, { 0x0344, 0x01 }, { 0x0345, 0x68 }, { 0x0346, 0x02 }, @@ -542,8 +518,6 @@ static const struct imx355_reg mode_1284x720_regs[] =3D= { static const struct imx355_reg mode_1280x720_regs[] =3D { { 0x0342, 0x07 }, { 0x0343, 0x2c }, - { 0x0340, 0x05 }, - { 0x0341, 0x1a }, { 0x0344, 0x01 }, { 0x0345, 0x68 }, { 0x0346, 0x02 }, @@ -566,8 +540,6 @@ static const struct imx355_reg mode_1280x720_regs[] =3D= { static const struct imx355_reg mode_820x616_regs[] =3D { { 0x0342, 0x0e }, { 0x0343, 0x58 }, - { 0x0340, 0x02 }, - { 0x0341, 0x8c }, { 0x0344, 0x00 }, { 0x0345, 0x00 }, { 0x0346, 0x00 }, --=20 2.34.1