Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1557639pxf; Fri, 19 Mar 2021 09:43:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/MS0Dal6QV1JL8ix/0C0lHGnPs6VhyoArHXIjh6fla6p66xjkaJXIKvbVWPN8MSm/d9dA X-Received: by 2002:a17:906:495a:: with SMTP id f26mr5275703ejt.271.1616172183832; Fri, 19 Mar 2021 09:43:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616172183; cv=none; d=google.com; s=arc-20160816; b=w72cJqgqQD+RXiidvmZVaUk7+eu/FN+UPEX+59DMGFKZxfX8X9Hahwf2E3Bj9V9HiP kEHCLPAlU8fokB35SEaY2QDHkmyFXFtJk+jxVuzEW/3sSZNanyhF/qXTWeB4+4sXsl8a fbCgHpV4bCOftlCUXofJnj4JVAr1PqAYJ/Szh/y7oSppknk0Idd8s+Aq8jA+g4TyWogO dEwsKVsEXjbW906OFYKZ1o4ZEYb6885yz+tpZ9fOfJJtT7l7Le/lyDksXs5vzuulxYHx ujUf6LxqPIuTVQXTPdMd2pQlDMisFMt0agh1q0rlV1UI7WjN2qEfgP1l1Lzemlk9S4xS qMuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=pf20UnqzgV03OyQh/i+ENxZ5kO6bKVjzHK8whvNUK88=; b=hEVx3M2H3NvTgPV9U9awkTT/VUtRt97lvlRi5UiyNgwRq7kp8LFCSAL6koJfu8Ha5H zG7dOnzAd4t2Igr6F/HDj77aTGyPr2DJVAtHCvBc6e8MjKM4iRxHHTFhFRsapLhzgOUs FNlp65AwYWNFkNa1yChOm+iCN12eavSptFZywmTt6ud81ayv72htPZrmSeko9BU3Aomj jk4VcAMEWKPJ+byxPIw75loz9AlYmRIw1c0acvvBlIGOXXaqcH6ehUFfmEcr4nPosteE SFZrKjtajf+7emS+frMsGBoONZKiGxZVQFFYFH94cK82/c3p6/QRMklQ8J+4aO/qUFHQ +ZSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s23si4430858eja.266.2021.03.19.09.42.41; Fri, 19 Mar 2021 09:43:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230129AbhCSQlo (ORCPT + 99 others); Fri, 19 Mar 2021 12:41:44 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:35555 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230046AbhCSQld (ORCPT ); Fri, 19 Mar 2021 12:41:33 -0400 X-Originating-IP: 5.92.35.220 Received: from uno.localdomain (mob-5-92-35-220.net.vodafone.it [5.92.35.220]) (Authenticated sender: jacopo@jmondi.org) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 6F3CFC0004; Fri, 19 Mar 2021 16:41:28 +0000 (UTC) From: Jacopo Mondi To: kieran.bingham+renesas@ideasonboard.com, laurent.pinchart+renesas@ideasonboard.com, niklas.soderlund+renesas@ragnatech.se, geert@linux-m68k.org Cc: Jacopo Mondi , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 00/19] media: gmsl: Reliability improvement Date: Fri, 19 Mar 2021 17:41:29 +0100 Message-Id: <20210319164148.199192-1-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, series following: https://patchwork.linuxtv.org/project/linux-media/list/?series=4650 https://patchwork.linuxtv.org/project/linux-media/list/?series=4861 Compared to the following iteration it seems RDACM21 is finally fixed \o/ I'll sum-up the issue here from the last email exchange: ------------------------------------------------------------------------------- Basically, as patch "media: i2c: rdacm21: Fix OV10640 powerdown" of this series describes, the OV10640 power-up was broken before you spotted the usage of the wrong gpio pad and it was working because of an internal pull-up on the SPWDN line, which was erroneously left floating. Once that was fixed, the OV10640 was always identified correctly, leaving us with this puzzling "ov490 boot timeout error" that manifested with more or less the same frequency of the ov10640 identification issue. In the current implementation we power up the OV490 and wait for its firmware to boot -before- powering up the ov10640 sensor. Most probably (or looking at the results I get noaw, most certainly) the OV490 firmware checks for the sensor to be available and probably tries to program it. So we're back to the issue we originally had when the sensor was powered because of the pull up resistor, failing to boot in case the sensor didn't startup correctly which happened in the 20% of the cases. If I do power up the OV10640 -before- the OV490 all the firmware boot errors are now gone. I need to tune a bit the timeouts as after the OV490 boot the OV10640 requires some time before being accessible. Once I nail down the right timeouts I'll send v3. So far I got 0 errors on 50 boot attempts, finally \o/ ------------------------------------------------------------------------------- The rest of the series is almost identical a few grammar fixes apart. Thanks j Jacopo Mondi (19): media: i2c: max9286: Adjust parameters indent media: i2c: max9286: Rename reverse_channel_mv media: i2c: max9286: Cache channel amplitude media: i2c: max9286: Define high channel amplitude media: v4l2-subdev: De-deprecate init() subdev op media: gmsl: Reimplement initialization sequence media: i2c: max9286: Rework comments in .bound() media: i2c: max9271: Check max9271_write() return media: i2c: max9271: Introduce wake_up() function media: i2c: rdamc21: Fix warning on u8 cast media: i2c: rdacm21: Add dealy after OV490 reset media: i2c: rdacm21: Fix OV10640 powerup media: i2c: rdacm21: Power up OV10640 before OV490 media: i2c: rdacm20: Enable noise immunity media: i2c: rdacm20: Embed 'serializer' field media: i2c: rdacm20: Replace goto with a loop media: i2c: rdacm20: Report camera module name media: i2c: rdacm20: Check return values media: i2c: rdacm20: Re-work ov10635 reset drivers/media/i2c/max9271.c | 37 ++++++-- drivers/media/i2c/max9271.h | 9 ++ drivers/media/i2c/max9286.c | 61 ++++++++----- drivers/media/i2c/rdacm20.c | 174 +++++++++++++++++++++--------------- drivers/media/i2c/rdacm21.c | 117 +++++++++++++++--------- include/media/v4l2-subdev.h | 15 +++- 6 files changed, 268 insertions(+), 145 deletions(-) -- 2.30.0