Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp467550pxj; Wed, 16 Jun 2021 06:38:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcl4GuXFb4rN+NePg/3mBeOHE7fepR7s8tAP7INda4REouRSezdVlQMePcAPlbjKKjefXd X-Received: by 2002:a92:cc01:: with SMTP id s1mr3724746ilp.227.1623850710741; Wed, 16 Jun 2021 06:38:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623850710; cv=none; d=google.com; s=arc-20160816; b=E3qNVyYIc7TDLLAgC9Fl2P98WhXMFxoS8xWlJRGKvs4JsHyiUPQ5gdRqtuHDk0hUgm MOiCfCCQBfsuXRczx2tz7YvcMsxmmBDP4ck1kHwcd4lmP8HrdaFu7kWdfp9ChUkMw2DG SahwddZr5/m4tTtfXtm30cgJsPgguqXIm4NGfbA7FLMhNj+2gY2yZ1EcsW+CkVwiR3ib G0go7Jdvl5lJ4ukSjDHZI4ccFwumCNNPSlpN4dNVNV2E54MVZATbJvTRgpOzMg12HlyU zzk20eeODatXGoJi1OhmyBxG6+ODjJp3buYZfKRMBmV5vvizKFma/GPw4hx9PtOd1rF8 PQxg== 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=/YCrDJyud4wpY7BIbwa7CtWnSgExE/Xs7j4kh2T+bMQ=; b=CG4+ZqP4MR/rQo7NuDIIwg42wYay+eQsYjQJNCAiJ9vhSqe6xC7bv08+dqhOcOcth2 P/Br/uBKdD/08mY/mx7lR1MQ3JniSIaTrQhgAJHTPHHMkdHxvORHENFN0kigDndyrbUL utEawFwHsmiqu0SuX1CyoeuqdKBfz0DO61Y+4DTtmGPIAJdec2wZjdFh9YXHrOuNBcV3 ULVt9ncDzIRXmk5HA+ZRRI56tViybEN37gicbYS7PRxqt6qPqr/rq9si9rIS+B07Vs7O GGAiz+u+Rd/zU5vN28GFkwxKej48R6qRBxh+SivRKpemKTEOAdnvuxmOWnY9ZwzOXzWj gBlg== 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 p31si2921053jac.95.2021.06.16.06.38.18; Wed, 16 Jun 2021 06:38:30 -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 S233009AbhFPMsO (ORCPT + 99 others); Wed, 16 Jun 2021 08:48:14 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:42707 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232927AbhFPMsD (ORCPT ); Wed, 16 Jun 2021 08:48:03 -0400 Received: (Authenticated sender: jacopo@jmondi.org) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 5A65B1C0009; Wed, 16 Jun 2021 12:45:54 +0000 (UTC) From: Jacopo Mondi To: Hans Verkuil , 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, Laurent Pinchart Subject: [PATCH v5 08/15] media: i2c: rdacm21: Add delay after OV490 reset Date: Wed, 16 Jun 2021 14:46:09 +0200 Message-Id: <20210616124616.49249-9-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210616124616.49249-1-jacopo+renesas@jmondi.org> References: <20210616124616.49249-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 low for at least 250 useconds. Signed-off-by: Jacopo Mondi Reviewed-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- 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 553e3f03752b..6be8ce130e78 100644 --- a/drivers/media/i2c/rdacm21.c +++ b/drivers/media/i2c/rdacm21.c @@ -469,7 +469,10 @@ static int rdacm21_initialize(struct rdacm21_device *dev) 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; @@ -477,6 +480,7 @@ static int rdacm21_initialize(struct rdacm21_device *dev) 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.31.1