Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp248267lqe; Fri, 5 Apr 2024 22:26:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWtHQ3PdfUOQ2lHEdgySQdFxceFHSMFaGNQOT+3OlQJFEq08a0sfF7HDphRHhNKzr+ilWbl9DaAXSvrZQSsSP9F40OirHhxJDN/DSSAQA== X-Google-Smtp-Source: AGHT+IGfzJKrx7j9ORcVfM+eJGRLUTHn8uFVYFAjWidAWFH5FbK8dWsv6sM9XjnVyYl46HvCmaef X-Received: by 2002:a17:902:da88:b0:1e3:de79:35d1 with SMTP id j8-20020a170902da8800b001e3de7935d1mr272169plx.23.1712381164167; Fri, 05 Apr 2024 22:26:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712381164; cv=pass; d=google.com; s=arc-20160816; b=lxRP0cf/42dnBVgoRodLfRO35YNEV0OXei4Wfof/8XrhfP8jf5ZiDdUPmXoqiKIU7C RMHMPx6whxNCiXFQWZ8/VNfWnBtTrc3Xb9WKa5pP4AxWvVvNTeQLyrqcg92rg3o4K/C3 zFg7wQMQzs920Bct+DkXMnokqNCchiTa9m7HUoJBlWABtSIlfXZGqiL70rcX7xPjuOLZ 9F4nnF5pBtvg2mNG8PDyd56pdi4OfVnVH1FiKnUNAqZDhR0BX4q+XXcunpUYagPa1t7H BCCTYDyqlIzi9l01mdVIZdHt4yXX90tFSCyu5iBiK2GMoZJ+XFf9tLutk5Cs4B6TcjPE 9IAw== 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=sz1o3+H/QzcFhJgMgxzNEIq38+fbX0fuDgjyR3Z3QQc=; fh=t1jCORON07ObHtItRRLLCBr5/XfEXiqF38NOxmhBuVc=; b=BYHEoFySBR2w58dQug6EG9pQe/f9Fq1LjmOx4w3K7dEzjhA+EF5yfS48q7lBfbCLmf uoFLCTnqU/FgqX04jRvWmkF0uc5R6RVJqlqbDFqYwnqDAT+SCmgkb1JE2GysS0JYQszi 63w48t9H19kQati6BV5MYxFfHTp+LAOtu1H9llxizRiQXkezRmscvr37IyR/VO0p0iyJ b4WKR+rb3jCu/xvVPDwYRdT69FZKJiBqCiYwLNsfDoYd+8tqOOHdgfD6mVyLt2TIgFa4 LCnLYioWCbM5h7EmGNHHmtmpX2ALEx+4yb8WLzP6fVie0cwBq4oB8eKi7NTnrGpF7OX+ k8bQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@luigi311.com header.s=x header.b=yRxZ3zyb; arc=pass (i=1 spf=pass spfdomain=luigi311.com dkim=pass dkdomain=luigi311.com); spf=pass (google.com: domain of linux-kernel+bounces-133812-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133812-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e8-20020a170903240800b001db7e461d91si2520442plo.545.2024.04.05.22.26.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 22:26:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133812-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=fail header.i=@luigi311.com header.s=x header.b=yRxZ3zyb; arc=pass (i=1 spf=pass spfdomain=luigi311.com dkim=pass dkdomain=luigi311.com); spf=pass (google.com: domain of linux-kernel+bounces-133812-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133812-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 83BE4282C53 for ; Sat, 6 Apr 2024 05:26:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D6741EB48; Sat, 6 Apr 2024 05:25:57 +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="yRxZ3zyb" Received: from mail-108-mta70.mxroute.com (mail-108-mta70.mxroute.com [136.175.108.70]) (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 141DE22EED for ; Sat, 6 Apr 2024 05:25:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=136.175.108.70 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712381156; cv=none; b=S2qOatob07BM1EUmV94LuFjWuZNfPARrcQv0d30V+ptUZ1Fr6ECFZfPGxqxJZf6Hwk18DixWgltbkBPHS2ApFNAVkzCArbXgkI05rg9QZh1aA960bQQhUmz5hDQzQki5U1P5v1jhLXfTj1JfP3coO1xYdvZgjHpPpRd2ilOd5lY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712381156; c=relaxed/simple; bh=PcVc0enR4j7Fu4qIcJTJAGfb9eIbRBk+MbR+x31n5Z4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=gZTAZhadm3llKe58GfNHXPSgTXyPYvlABkWCcmJAJlF/6Buwvzj7/4kf0SN517eopunc4ypyJzNcCX1s3ZuWs9nvQNdWJqROzTDWDyiT7LHQjd8VxyIreL6PuJ3B2ZwdYh1wrMd+BFW28JsDzj3lCMHY/0RfChpoas74syoeHPk= 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=yRxZ3zyb; arc=none smtp.client-ip=136.175.108.70 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-mta70.mxroute.com (ZoneMTA) with ESMTPSA id 18eb1deb1d70003bea.010 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Sat, 06 Apr 2024 05:25:45 +0000 X-Zone-Loop: 5ab61b7ab5c7c6611faf13b08fd7b9380eaff5a76c04 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=sz1o3+H/QzcFhJgMgxzNEIq38+fbX0fuDgjyR3Z3QQc=; b=yRxZ3zybwPCDOXYc6dTeGjFcrD oJ/ez3YSCH/U3R+W7HZ+fcllfTNo6nDrKK/J6LtIS+6pGlvAFrg1BKy+05tElSeHU+XVi9lLN7Jjq N9wWf/YR2FfU3yz4kxdskDLVFCSxd7zRrbZErNyZKiZ8MEh3oScdzDZhatOoB/q3+riVjlqTrkRy7 Hqeh+nMcad2X60AuJoWOblCKmKuwLSR4xq2i1LF1f++LiJf/cQxwpQUlP0h1QbgLNhKUUez/MFVEI p5YxnOGH1HDkg3IQGhGvjSPxDKypqt8FcRQbW50njJ2QApLlk+PAT2yoMCtocDpSVBdl4iJWE7/by Vyq36ttA==; Message-ID: <803b0bd3-e615-41c1-888e-69b6ecca0b8a@luigi311.com> Date: Fri, 5 Apr 2024 23:25:41 -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 09/25] media: i2c: imx258: Add support for running on 2 CSI data lanes 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-10-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:45, Pavel Machek wrote: > Hi! > >> +/* >> + * 4208x3120 @ 30 fps needs 1267Mbps/lane, 4 lanes. >> + * To avoid further computation of clock settings, adopt the same per >> + * lane data rate when using 2 lanes, thus allowing a maximum of 15fps. >> + */ >> +static const struct imx258_reg mipi_1267mbps_19_2mhz_2l[] = { >> + { 0x0136, 0x13 }, >> + { 0x0137, 0x33 }, >> + { 0x0301, 0x0A }, >> + { 0x0303, 0x02 }, >> + { 0x0305, 0x03 }, >> + { 0x0306, 0x00 }, >> + { 0x0307, 0xC6 }, >> + { 0x0309, 0x0A }, >> + { 0x030B, 0x01 }, >> + { 0x030D, 0x02 }, >> + { 0x030E, 0x00 }, >> + { 0x030F, 0xD8 }, >> + { 0x0310, 0x00 }, >> + >> + { 0x0114, 0x01 }, >> + { 0x0820, 0x09 }, >> + { 0x0821, 0xa6 }, >> + { 0x0822, 0x66 }, >> + { 0x0823, 0x66 }, >> +}; >> + >> +static const struct imx258_reg mipi_1267mbps_19_2mhz_4l[] = { >> { 0x0136, 0x13 }, >> { 0x0137, 0x33 }, >> { 0x0301, 0x05 }, > > I wish we did not have to copy all the magic values like this. > > Best regards, > Pavel > no kidding, magic values everywhere.... it makes it annoying for me to move things around because they all start to look similar. Down the line we added in more defined names so its not as bad but still its bad lol.