Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3285460pxf; Mon, 15 Mar 2021 06:17:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySihc5qMkGyY34WLa8ieZI3OEvn9N2ukyDP0HLy6y6ex64oZeDt/DqS9TMB7TK/J6tPQua X-Received: by 2002:a05:6402:1754:: with SMTP id v20mr29595128edx.191.1615814254994; Mon, 15 Mar 2021 06:17:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615814254; cv=none; d=google.com; s=arc-20160816; b=hqAoC2vmIIaRKFomf2o9CkruSRB6MoqCr0OzxDjSbur0zZmp20KjdKXtJTwvmv8ug/ WSx/PMWqbp8F7Mr4MnYE5+i8K/XebQmtRXIT5/L0BYkKUoDQg8XCzq5/oq+7uWkdXs0v WjT0JYU2Jxc63hIFzB+9tVS50K4l5MYOHgqYS6kFMOqkWeM1Dmipfxu7A1zyJ681mDnK zNT7l59N7ZePM0+b2IkreUPSzgF3NtxJexhgDxEERbng4mTNuwU287Uga4gGQPjv10tf w4SX0TVKm2KoHQJ8r+JJd9nmUd2TzSSSgNneHazjnzLxbB3oeJlQ24eB3IwX3SjIUzLE 1zVA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=NvhQEzhfomdVYkkzpdFto9HX5cm0sbAAqtx8sDE/slc=; b=SltTTGiPJxWjFtjTITlQYf3+Oek/u21uP74JSVIyCr64IZSRjE208BN2V036EHjUuw 6wGxNg4jMus9hio3arDCrr5nRrvF15n9XlBSE5RIvHtVmAmriYstpOSohQinImRwxEnX EtZ+DMq9wEqjKBlvd+xfUUprx2L2rzgFrZbqyXkBGz0LTRhDN8ApPUAwOEExo4jJyQJj eyn0DFSnpU9eEakaV0+JD8VK7hXde+zMb7uxijgNYuuELTAcDlzUfUWkGj/T/mH9Rwy1 qO2mrFZ4C/lyR+XBqxZkm7EEmf5Y7K7zpdHO0AdcnNSR2x5a/VmkhGkQb6Oa8q8fGQf8 hLPw== 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 e16si10668297edq.338.2021.03.15.06.17.12; Mon, 15 Mar 2021 06:17:34 -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 S231195AbhCONP6 (ORCPT + 99 others); Mon, 15 Mar 2021 09:15:58 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:45213 "EHLO relay9-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230127AbhCONP3 (ORCPT ); Mon, 15 Mar 2021 09:15:29 -0400 X-Originating-IP: 79.22.58.175 Received: from uno.homenet.telecomitalia.it (host-79-22-58-175.retail.telecomitalia.it [79.22.58.175]) (Authenticated sender: jacopo@jmondi.org) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 4CF98FF80E; Mon, 15 Mar 2021 13:15:24 +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 v2 12/18] media: i2c: rdacm21: Give more time to OV490 to boot Date: Mon, 15 Mar 2021 14:15:06 +0100 Message-Id: <20210315131512.133720-13-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210315131512.133720-1-jacopo+renesas@jmondi.org> References: <20210315131512.133720-1-jacopo+renesas@jmondi.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It has been observed through repeated testing (250 boots) that in the 10% of the cases the RDACM21 initialization sequence errors out due a timeout waiting for the OV490 firmware to complete its boot phase. Albeit being the current timeout relatively large (300-600 milliseconds), doubling it reduces the sporadic error rate down to 1 over an 80 boot sequences test run. The firmware boot delay is unfortunately not characterized in the camera module manual. Fixes: a59f853b3b4b ("media: i2c: Add driver for RDACM21 camera module") Signed-off-by: Jacopo Mondi --- drivers/media/i2c/rdacm21.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/rdacm21.c b/drivers/media/i2c/rdacm21.c index 50a9b0d8255d..07cf077d8efd 100644 --- a/drivers/media/i2c/rdacm21.c +++ b/drivers/media/i2c/rdacm21.c @@ -53,7 +53,7 @@ #define OV490_PID 0x8080300a #define OV490_VER 0x8080300b #define OV490_PID_TIMEOUT 20 -#define OV490_OUTPUT_EN_TIMEOUT 300 +#define OV490_OUTPUT_EN_TIMEOUT 600 #define OV490_GPIO0 BIT(0) #define OV490_SPWDN0 BIT(0) -- 2.30.0