Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp134817pxb; Wed, 14 Apr 2021 11:11:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIVW2ybUt+nFutuI868UoKPh8lIc7DmbysPyGVALnTwz4vq7ICrLFh1pvZwUL91MsbDYBL X-Received: by 2002:a63:9dc5:: with SMTP id i188mr39416924pgd.191.1618423879976; Wed, 14 Apr 2021 11:11:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618423879; cv=none; d=google.com; s=arc-20160816; b=HtgA54LQYdDcMGcaomDddX29u0HTUaUCFCg9CnLjFCjJlUmZqQASWOfCBlN1bT1+6o 2e4f/ouZzmd2d3YrKvJEBP/wtKF/QOb4GAoCBEJ6DDftVb4cDonWCDEJ9miTiGuEylSO zPrepvtZyRvlz1hWKKhLO+mgZwYuNHgo6mXzoVZUxwT35r5GzmwGfNc3O18Zmd8gNr7M fA1wDKG2w/urNeYhHaqhCG9b//d0lor1tB3QWsNa77gUJIZ1m6RHcBApVJibcE0DKp2D YocWf62A5YwBASioBALdBdGObTwhgoejqR4g8HbeGoZPUAzraWDqGScyeWS9MzN+95Ka 9Ubg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:reply-to:dkim-signature; bh=m9nK/o268YeZ0vZlhCgoHXT0RbQZQi6gkOmKjM5xc40=; b=eJBuZFo/JTHFQrjnWso8PpFExflIhVdICnuKtfSYrQbSGCAHpAJYyoP8+xKfTVdM+R +0JgXsT3kjInTPPizbKSsb+OsC/CPtiw8+uttgMjquxz+zIPt2KZTflH5SO8LqRkmiua LR8hvr3KvmAd8pqV17dAVMoISrMNWAuFeF3wgjUcUNPNgud2IfRkUjG++Baq7X3hhVQR VIA5CxADrYJWnRTsO9d4fR5GihsNQAY8SyOgyDp/zbDfbxIlwPXg0CdcTT7SRGiBXH2v +QG7qvsArhrP9TyADYxuDwu6hLUAIOyoUx5bOfxzATf7JigxPPNXqY75SYMI18NNiFt6 eo6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=B3ccg4yV; 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 f4si327349plo.231.2021.04.14.11.11.07; Wed, 14 Apr 2021 11:11:19 -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=B3ccg4yV; 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 S1350019AbhDNQuE (ORCPT + 99 others); Wed, 14 Apr 2021 12:50:04 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:35408 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232143AbhDNQuD (ORCPT ); Wed, 14 Apr 2021 12:50:03 -0400 Received: from [192.168.0.20] (cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 0934F88C; Wed, 14 Apr 2021 18:49:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1618418980; bh=dmJqvtAu20k6uHA9vLOp5QC4mYsESyJYOScJUJjXNZs=; h=Reply-To:Subject:To:Cc:References:From:Date:In-Reply-To:From; b=B3ccg4yVp40KQopQ1JJo6fScBbqzdrk9REOT6GcwouBqZEK9BVxcW2WdAVXux/X1Q vEqLxQzSiK+qhnnXOTaL5lyme080z2uzXihfTo4ebGO/OpM7FaBxItVJQr4NfT/iwM L2TAd4EFx65K+U65JF19rOTOtZIjhybqPLH5h1e0= Reply-To: kieran.bingham+renesas@ideasonboard.com Subject: Re: [PATCH v4 08/17] media: i2c: rdacm21: Add dealy after OV490 reset To: Jacopo Mondi , laurent.pinchart+renesas@ideasonboard.com, niklas.soderlund+renesas@ragnatech.se, geert@linux-m68k.org Cc: Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210412093451.14198-1-jacopo+renesas@jmondi.org> <20210412093451.14198-9-jacopo+renesas@jmondi.org> From: Kieran Bingham Organization: Ideas on Board Message-ID: Date: Wed, 14 Apr 2021 17:49:37 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210412093451.14198-9-jacopo+renesas@jmondi.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jacopo, There's still a s/dealy/delay/ in $SUBJECT On 12/04/2021 10:34, 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 I added this on v3... 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. Is it worth mentioning here that it is asserted to active low? Just to make it clear that holding it low for 250 uS is the desired effect? It might not be worth it - but perhaps that was the reason for some confusion here. Eitherway RB tag still stands I think. -- Kieran > + */ > 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) >