Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1557991pxf; Fri, 19 Mar 2021 09:43:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgoshAHxALJ3uKRATH8OjSu6yp/UL3DVxy6MK0AZwrEdhugI6FNWHmk312QJ6JxBnYfoFs X-Received: by 2002:aa7:d448:: with SMTP id q8mr1079304edr.345.1616172220733; Fri, 19 Mar 2021 09:43:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616172220; cv=none; d=google.com; s=arc-20160816; b=GtERxRdm0U3d/TRqEceil8lCunSpQ182+ZDPVr73kQdpZ4xwnrP2UXODymQ60AROU0 ki2S7PvrxSsqaL/TWaQJBA+KGXHc5LHIRZQPq9yLyjW3buvUQZnocFdomife5rRK+TMh BhpTF4qydG4orMdRn0AsB3GORlFlWI6oq9dFwyAhd/f8/hSmry3N9liAxTaTAEVy2JMx cdHmLvlm+yOMDcGZ62r2EauxyBn1YNHSSwFdQRtl6R9fmYFc+pURPh3yXrSNHUXvb8O1 6ZI8idGav9GjA8Q1/jsGn+0TxVplGbC8dFyJwUEazbmOJNovdPv1XJtsoeT1Lrt1+alS FniQ== 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=eqVh6bKJUgngMp6sQX0rdn8oNx5lwoIR4xKFWCOtwO8=; b=Oe1Mp4ecbSX/zuQJ7pNXtSg/ETojrogBEDxaZNtHU3Xi6whIMMYphZWygFssS7yaDb bIv1arFSCK12oQETXfFrPJjGD1CUCDQdJ/ZBANDUqci4+MdvSZpt11uj4JbmWgSjkL9N ciaesBM+Nq6fevOWi6FPL7H0MpiRMZPF4+ze2mVPSBv4wUFf36ruE3mh2EfYLOD3NaBw hUbF2zW5M450KJW/+7ETcdk2sLiBwr5su6UMNXX5q7FWqGRAW8QrEoDfcS7esbcrT3Hr GNlGmSJXEGzX/YeqwUjCzkjp8tS6L2a8Ye7BPCaZCSdQoPjrXKPLYoqkONCxD8uOTQCT G7rQ== 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 c13si4855566eje.45.2021.03.19.09.43.17; Fri, 19 Mar 2021 09:43:40 -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 S230484AbhCSQme (ORCPT + 99 others); Fri, 19 Mar 2021 12:42:34 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:46197 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230237AbhCSQmI (ORCPT ); Fri, 19 Mar 2021 12:42:08 -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 4CC50C0005; Fri, 19 Mar 2021 16:42:04 +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 11/19] media: i2c: rdacm21: Add dealy after OV490 reset Date: Fri, 19 Mar 2021 17:41:40 +0100 Message-Id: <20210319164148.199192-12-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210319164148.199192-1-jacopo+renesas@jmondi.org> References: <20210319164148.199192-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 Add a delay after the OV490 chip is put in reset state. The reset signal shall be held for at least 250 useconds. Signed-off-by: Jacopo Mondi --- drivers/media/i2c/rdacm21.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/rdacm21.c b/drivers/media/i2c/rdacm21.c index babd14b21252..875bec9f7904 100644 --- a/drivers/media/i2c/rdacm21.c +++ b/drivers/media/i2c/rdacm21.c @@ -448,7 +448,10 @@ static int rdacm21_init(struct v4l2_subdev *sd, unsigned int val) if (ret) return ret; - /* Enable GPIO1 and hold OV490 in reset during max9271 configuration. */ + /* + * Enable GPIO1 and hold OV490 in reset during max9271 configuration. + * The reset signal has to be asserted for at least 250 useconds. + */ ret = max9271_enable_gpios(&dev->serializer, MAX9271_GPIO1OUT); if (ret) return ret; @@ -456,6 +459,7 @@ static int rdacm21_init(struct v4l2_subdev *sd, unsigned int val) ret = max9271_clear_gpios(&dev->serializer, MAX9271_GPIO1OUT); if (ret) return ret; + usleep_range(250, 500); ret = max9271_configure_gmsl_link(&dev->serializer); if (ret) -- 2.30.0