Message ID | 20240131055208.170934-2-umang.jain@ideasonboard.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-45790-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp1693045dyb; Tue, 30 Jan 2024 21:55:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IGa+KHQzjPXyzlgdv/FzvtSuLxC1bBiUJ/cOqWI3qX65Fkam1tDqK1W+Ne1cfwhyQKzxGO7 X-Received: by 2002:a17:902:db11:b0:1d9:e2b:db9d with SMTP id m17-20020a170902db1100b001d90e2bdb9dmr821925plx.48.1706680553305; Tue, 30 Jan 2024 21:55:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706680553; cv=pass; d=google.com; s=arc-20160816; b=PXaNchf2hGjKscjBC1KYEn4pE64SeFE36R15Pn0m49uSnAOlHPuN/HLCXkfTtvCsyy oFHMESCpRYTdMNGGxy01fRmR/cHaK5oVzTqzIp3gR6hnIl24hRhkV7RVwtVeB4t0k6EM gjM0I2cS86SL8dDqU7H+5ryhfvY4BnlN6zvMqSndAExNsvNElKctWPNuEizrW9UIrf2R DWswgLWIybI4TQu5yCtsknmRxIWc6HU+/U0uokZVA+xRgS7Jh5gpKc/re3cGnckO4cVb eSy9/78F3br/txbzed7eBBdYnIIV/kSf42qpOGmp4pJlFH+tFGq9fYqrl2hyF5YANAWB T6UA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=B4dFBmaaS/0kbMd0qf/hL+eR1glOEOV9MeHD9U1G9Q8=; fh=ZnkTONEC4ArKhDM5gjXajMYZqUWJ8/aePXQFnXuGHUU=; b=ya1BM/zWXVBU2QkpLG66zG7yLa1lcYZPuBAnHysWWN2H5Zrxo4EpzHM9AJ3AX4NOVp uRCO26zJeqON0ablRBUaBzW6FOa9srLcUdfC0R2g4wXxerfpxDst8Da4gYfGGMqgOaxm kwysoIEjFOiS2T5CuNlzZfbHL9ciZXmfPh7lXhwsmMoVSBXj48ihpUgHl/qScLgsoy+7 qQ3ept/YVJx1ifDPpjLj978vUodz3aVAOnNiWht4AvfYrXYVIo4sTwHW7wp7p+v3v6fz gTrxpjEPDlO6W9Ezcjx98DU18Lb+6swjZghbuYKv8HdSk2QHENF3mIq0klO/ZHn9/0D+ Klgg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=KK8UGB3I; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-45790-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45790-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCUei7DWkxFWCSqJW86G/dgBvCzkyitAv6DBrKPeiyIEay1BkRmfOOna4VL/5oviSGCcAs7iay5F0leF3sU4SjloKB8P3w== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id y6-20020a170902700600b001d76f1ef460si8815426plk.175.2024.01.30.21.55.52 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 21:55:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45790-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=KK8UGB3I; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-45790-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45790-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 9E2C6B26568 for <ouuuleilei@gmail.com>; Wed, 31 Jan 2024 05:54:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 044F4405F7; Wed, 31 Jan 2024 05:52:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="KK8UGB3I" 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 60D143F8F0; Wed, 31 Jan 2024 05:52:25 +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=1706680348; cv=none; b=D9J8PaiiwLENOb+PPZoEzSUSV265Xq7/XXFaP7an49eqq+8ivKpYwoQoHP1S/psyDRJ02PWZjyouaXw5nn8+cC49+NvOumzrBH5AWwOYW7E8bAEH7mtAoEjNpueVNHAiDclKs4/Bt2+ckoARiRCGUDgIg9Hy+a01J0XUZYuuu1Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706680348; c=relaxed/simple; bh=ma7dEcFPhHPYt1lVJga9B1+IwD8cgjTRXMmLiGdj1yk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aEeLK0CuOCGt0aXcMNJEtjH90i+vgrSUvQYtERmV1sYVVfyqoK/tH7kc3Zcv0Fdg1hVyPq+D3DYBRmCVmjYHMWBa3zPp1aWMTcC0V1/1bYuwJ8Q99XHtxWYwBrvwF45/VE5asWB/ntjbX/2HhS4mBOWi6kSOSz864z7JI/VWHhg= 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=KK8UGB3I; 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 umang.Jain (unknown [103.86.18.206]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id E9BD416CF; Wed, 31 Jan 2024 06:50:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1706680259; bh=ma7dEcFPhHPYt1lVJga9B1+IwD8cgjTRXMmLiGdj1yk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KK8UGB3Irw1MXc6ihmRj8+LXP785j+aMCvxV4oHT+OjOwK4t5uIWhO45N95cFGF3w GylscYeJ2N4vKGklOsTafsVM8ScyB4i21m3ku+po4NLqQ08CWGUpuic4KKBGWKLOU/ zozF4Yk20bJThpacHJzc89qR5Zqdd6AKZBB5kDc0= From: Umang Jain <umang.jain@ideasonboard.com> To: linux-media@vger.kernel.org Cc: Kieran Bingham <kieran.bingham@ideasonboard.com>, Mauro Carvalho Chehab <mchehab@kernel.org>, open list <linux-kernel@vger.kernel.org>, Sakari Ailus <sakari.ailus@linux.intel.com>, Umang Jain <umang.jain@ideasonboard.com> Subject: [PATCH v2 1/5] media: i2c: imx335: Drop setting of 0x3a00 register Date: Wed, 31 Jan 2024 11:22:04 +0530 Message-ID: <20240131055208.170934-2-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240131055208.170934-1-umang.jain@ideasonboard.com> References: <20240131055208.170934-1-umang.jain@ideasonboard.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789584267543660265 X-GMAIL-MSGID: 1789584267543660265 |
Series |
imx335: Support additional link-freq and TPG
|
|
Commit Message
Umang Jain
Jan. 31, 2024, 5:52 a.m. UTC
Register 0x3a00 is a reserved field as per the IMX335 datasheet,
hence shouldn't be set by the driver.
Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
---
drivers/media/i2c/imx335.c | 1 -
1 file changed, 1 deletion(-)
Comments
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? -- Kieran > > Signed-off-by: Umang Jain <umang.jain@ideasonboard.com> > --- > 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 >
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. ~Matthias > > -- > Kieran > > >> >> Signed-off-by: Umang Jain <umang.jain@ideasonboard.com> >> --- >> 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 >>
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 <umang.jain@ideasonboard.com> >>> --- >>> 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 >>>
Hi folks, On Wed, Feb 07, 2024 at 09:51:32AM +0530, Umang Jain wrote: > 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. Very interesting case indeed. Please elaborate this a little in the commit message, but the message shouldn't be that because the register is marked rewerved, it shouldn't be written (it's a commonplace when it comes to sensors :().
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[] = {