Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp76658rdh; Tue, 6 Feb 2024 20:21:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXczU9raeSdD719dxmip6yq98Sv0OPQJSIy3vHRNL7hdbDNZx6FP/GYhImiogWu7yQvBRXZ0+HuwtW1f38eQCV/QFzVom3lpQx9d9ONPA== X-Google-Smtp-Source: AGHT+IEMsdVVXbgZnQTBbF+V9mRFfLWGmazBoDHFPcOZBxyEaHcD647YjsVzm3kAN/4JytpJm9HM X-Received: by 2002:a05:6512:138a:b0:511:5c98:acd2 with SMTP id fc10-20020a056512138a00b005115c98acd2mr3189130lfb.37.1707279714001; Tue, 06 Feb 2024 20:21:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707279713; cv=pass; d=google.com; s=arc-20160816; b=sq/U75zqhp7jMJJDKNtEo7BlkK1oeZ2q4UN5wZxHun5Bq1paYQm+uU+B0PrnzSrBWj s5X4ZjeGhYvKHJNih4qYsM40SHrIvB3BY5RBxY9Z75J+7xE2DG16DXRlR04zJDcMmGWR XRdng0eo+tU3xmUV8vkRWGRwceltIjnaxVIsOl51BhdrNlVKU5oyhyGlQhTxVFEYeULn rK1NLDxlO0rW2q4UPSbPKte8MG7QzN7py+zJoge9yXpIVp/yOlRCJWbpmZUT+cfgF7gm WyW226kxOkqmkOv3udLe/KBTjSGmbMnUTaZSZdgfy/XeUsC7UGMYBil1Uc6lxkaEwl6G U32A== 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=Pc7YbgzkqCh+cSKcYK05adKZKiOkd8l8m2rT+r9YrjI=; fh=z6e6YSE0nCn0ZIvLaEUzzj56BmtM/qqnLzD15a7Fdis=; b=Dtk8YTtTGG0W2dMxbHrglOfidhNI0jRW1hbQbXBm0bD61tuAboj6EM9pbtBhQXcA2+ xzWtYub4KPJMtLW3vz10DFGo3gKh5baPO23byw2jW6AJ7tnwGQpVogGxnhTW4cNrzAvr QiBBY6rON7KwZtTO9s3g3qYoImOUFYj40HX7/hIpXxB8WxuDU4pqNBPFsULs5om7/yvG a1PYm6qfQ9AOd24UCC7NsV37d/iOKN8Rs+cvViG7ujWnvs7EC84XKV30SZ915ABJxCYc V4NvBIl6DI6vmC96krOCMlLzh0SogcX1Vi3pwo89hAackgmgZrokAvsgZsWMQTCtUEUi ktdQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=GDcWF9+U; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-55927-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55927-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCWRcjfk5jqPfw7zyfIzFv1n3Yuh6oTtfK7HD4YGVcqnCB42dSLntCY1ZrDI59EpGxW7Q7OLRIA/t7aVhPY2lVhtwC4ptAfHCvM9qly8/A== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id cd14-20020a170906b34e00b00a3776dfb674si349044ejb.139.2024.02.06.20.21.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 20:21:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55927-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=GDcWF9+U; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-55927-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55927-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B23AF1F25B2E for ; Wed, 7 Feb 2024 04:21:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC3D911C94; Wed, 7 Feb 2024 04:21:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="GDcWF9+U" Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 147C912E47; Wed, 7 Feb 2024 04:21:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707279704; cv=none; b=aZQgkhAj5belEOLUKVukxfOh9jUHNSeOUnI85z3NjNBSH7//N4CJKtrCw+cOpC4AAPmlC3YMXjlgATL6RME1Ea40Qnpd1SBcI6aaRc3HE4rL2gf4AVEwBoxL+4Nqpe02ibQojNL9QzjBl2OY6xYE0E4jpYnUG4l28IIp8qdEiKc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707279704; c=relaxed/simple; bh=JlMYUCEGbfNjg9V4RzOWmQF7tZQ6hk2ya5k40YzeHkw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=NQS+TJmUJMyDEMp7my8ldg7Wmkgs47Az83REDCDXzLc2eyH473xer/fJqkDB0KPFWBfKlVUa39ivqpO4Vp5oOnlccuqA3wNTL5SYsCbFYvCG+9/ErtxtfJgVudrX2gKo2fjwyUwkjAYFniPHG09iNPLvtK543j4Ii1vip+7YiAQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=GDcWF9+U; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Received: from [192.168.1.106] (unknown [103.251.226.118]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 31FC8975; Wed, 7 Feb 2024 05:20:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1707279616; bh=JlMYUCEGbfNjg9V4RzOWmQF7tZQ6hk2ya5k40YzeHkw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=GDcWF9+U2EWc9jjaaqwvKt958k1WsKqHwrzJQlkCc4GdRVRipYlxm2e8lc2ArdJCq M79+HuXymzEInzm0P9Gsr1dbRdGoOGtWtHARZGFvQ3wB42FDzYLctuO688s922cR6k Sq7o8ROgd2lkIJlGBsb0TrutXzj5C4cwMxGBQHyo= Message-ID: <8bc8bf66-cde9-16c4-e8bd-389940ceeeb6@ideasonboard.com> Date: Wed, 7 Feb 2024 09:51:32 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v2 1/5] media: i2c: imx335: Drop setting of 0x3a00 register To: Matthias Fend , Kieran Bingham , linux-media@vger.kernel.org Cc: Mauro Carvalho Chehab , open list , Sakari Ailus References: <20240131055208.170934-1-umang.jain@ideasonboard.com> <20240131055208.170934-2-umang.jain@ideasonboard.com> <170669477439.1011926.18210850208916698098@ping.linuxembedded.co.uk> Content-Language: en-US From: Umang Jain In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi, On 1/31/24 4:02 PM, Matthias Fend wrote: > Hi Kieran, > > Am 31.01.2024 um 10:52 schrieb Kieran Bingham: >> Hi Umang, >> >> + Cc: Matthias >> >> Quoting Umang Jain (2024-01-31 05:52:04) >>> Register 0x3a00 is a reserved field as per the IMX335 datasheet, >>> hence shouldn't be set by the driver. >> >> We still need to explain more about why we're dropping this register >> write, and what effects it causes. >> >> Matthias - I believe this stemmed from the work you did, and I think I >> recall that you stated this register write broke the CSI2 configuration? >> >> Can you clarify anything here for us please? > > yes, that's correct. > > Since this driver originally did not work in my setup, I came across > this register while searching for differences to my working reference > configuration. > With the default value of this register (0x00), the driver works > perfectly. With the value previously written to it by the driver > (0x01), I cannot receive any frames. > The problem may depend on the link frequency used. > I can only use and test a frequency of 445.5MHz on my hardware. Since > only link frequencies of 594MHz were supported so far, this may not > have been a problem. > > Unfortunately I do not have a description of this register, so I can > only speculate about the exact cause. Is it worth to frame the commit message around this speculation ? My setup has no effect with this register being set or not. > > ~Matthias > >> >> -- >> Kieran >> >> >>> >>> Signed-off-by: Umang Jain >>> --- >>>   drivers/media/i2c/imx335.c | 1 - >>>   1 file changed, 1 deletion(-) >>> >>> diff --git a/drivers/media/i2c/imx335.c b/drivers/media/i2c/imx335.c >>> index 7a37eb327ff4..927b4806a5d7 100644 >>> --- a/drivers/media/i2c/imx335.c >>> +++ b/drivers/media/i2c/imx335.c >>> @@ -249,7 +249,6 @@ static const struct imx335_reg >>> mode_2592x1940_regs[] = { >>>          {0x3794, 0x7a}, >>>          {0x3796, 0xa1}, >>>          {0x37b0, 0x36}, >>> -       {0x3a00, 0x01}, >>>   }; >>>     static const struct imx335_reg raw10_framefmt_regs[] = { >>> -- >>> 2.41.0 >>>