Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp366446pxb; Wed, 14 Apr 2021 18:02:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+xldGk+KwM8jRMqq3Wr4HatuSkiC9DC76pJmL5rnvRQg534EUj7yoZTLYgD2t/sC4k7E8 X-Received: by 2002:a17:907:e88:: with SMTP id ho8mr766106ejc.473.1618448527974; Wed, 14 Apr 2021 18:02:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618448527; cv=none; d=google.com; s=arc-20160816; b=B0Su5jodmRanzmOi4xfHC/td4drURlW0Rg6DfdHxAFB7BWre74c4rIshQYGIIUax9L J4pJdGCZzkXeqQGvPLOH6xy0q92+TT3+Lv/XOvGuc4yiwH1z4kik0Gi2DfAKZJjo/00R 5hKNpKr+T+Y/HIqu1H/mpj3ypnNQP3JCDwY8H1+pgGpjZEm21jR4RzzmwK1iD94uSX3j 5GYw+A4zEjAT13Bxw21HgNGP2VyFsIRt+RG9jcrdXiUGXpTIQlvXhkezA1JpjFyfLQje Gn4Ju6Wv+zF2IJfHgEm8pP59g2pbGeA20q4bi9fj/fJQlshmQ5q005A5wOYlQoR6yab1 eqrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MSIxJwAzQXTMlgirKiIDw3wUxcX7ztMlksTKv5LBlfQ=; b=W8ObpijY+ARsMVmPwoSGphNRgx8bNJJUU7UfxjfkYPVWxPX+205AOwDVo7NglreaSr /f8jBCyQ0Toq/coUJ/dVVknXBGkCAzjTotcVtYTWYI9I41kTZ4Y6RZkA3R4pTTPUkjbU pp6oScW8+3MS+r2FSubfVVJzIC8zJd5qRJIGPs5serfrRT8wFc73OvZXaVHMsXhTDYPo /7UhMoHFrrfgAbw/Yh5uY+dCuf/NcbrNWeKNKbxPsuDAy+K+OFZPefoYSk3M1/E6cgaX MYpwbqA/l1hH+3N2AKo5bujfiEyPgosDulxO3PZpGBp/8HQAe5WYChY4h+10ezZH9Eet ildA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=mGslc9aq; 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 eb8si983675edb.103.2021.04.14.18.01.44; Wed, 14 Apr 2021 18:02:07 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=mGslc9aq; 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 S232635AbhDNXLH (ORCPT + 99 others); Wed, 14 Apr 2021 19:11:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229747AbhDNXLF (ORCPT ); Wed, 14 Apr 2021 19:11:05 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 140F7C061574; Wed, 14 Apr 2021 16:10:42 -0700 (PDT) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id C41CA51E; Thu, 15 Apr 2021 01:10:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1618441840; bh=29CH3AwVUqaKvqkhxjku+Htx2LUlRYQ+AO+dMqCsA58=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mGslc9aqMB6PaIH8tffi7OfHiF+HuzLRcaMubAPwSBeSPrq6SmeHN01WGLCkTn6Q7 wPcBZ5wtQoF63NYNJZdMHrbjA8pnI2td7ny48zSYwCAgRVH7BMuNCMm6asUypdXmjr V8JKmy6gHUXbNpIoJtmaJ9C/jZuarZ4qXYFVhJu4= Date: Thu, 15 Apr 2021 02:10:38 +0300 From: Laurent Pinchart To: Jacopo Mondi Cc: kieran.bingham+renesas@ideasonboard.com, niklas.soderlund+renesas@ragnatech.se, geert@linux-m68k.org, Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 08/17] media: i2c: rdacm21: Add dealy after OV490 reset Message-ID: References: <20210412093451.14198-1-jacopo+renesas@jmondi.org> <20210412093451.14198-9-jacopo+renesas@jmondi.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210412093451.14198-9-jacopo+renesas@jmondi.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jacopo, Thank you for the patch. On Mon, Apr 12, 2021 at 11:34:42AM +0200, Jacopo Mondi wrote: > 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 With s/dealy/delay/ in the subject line, Reviewed-by: Laurent Pinchart > --- > 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) -- Regards, Laurent Pinchart