Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp6444041pxb; Wed, 17 Feb 2021 04:57:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJxfDMY9ZhS3LazQsZu4zQ5Lb0lR0lODw4LfwvgAuswAtt/kPdi5YuVjaVsq+cCu8ecdjCA/ X-Received: by 2002:a05:6402:4391:: with SMTP id o17mr26165191edc.196.1613566623428; Wed, 17 Feb 2021 04:57:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613566623; cv=none; d=google.com; s=arc-20160816; b=MEhkTi/8AHbqs1ky7ri3vzRQMXTXku1DqHV3YyaL1GiUGcJhuPRbAbkAUWqIJ4CX78 R7xVIlhAFfeHZeo000Buuk+lEkj7xePdyDERGquUtjZEK3zcM3HExWX2vaAhBHhmBM9f eskC3QY3UEh9wtDBJodQZs0JFNtwlAxSTem08fc8iwkMt61F9uUR7kKGIMGHmARhOCtR GrP9zdav9yzegGsSeoSxqO6lZJH6ie4wNbaMD2jwAsBC+plszPiER6P3oTqugIV4MTZm osCk7QIcsXAFd5oJKUEXDTlLcrK73s3wucvNqEgcdli5jswLCC4q700h7Sl2uFvJJn3f 2d4Q== 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=wm/QukrBobK02yXi0uPW5cp/t55i5l/fxoKsN+Ws7HI=; b=UDJwaMn79HiJR/3/DbqYOk5K+nZrr8ilrYJbe4ggHzDTCucpaS10sRNQP5/3qjveaP UOlQKah/KtpADnjXQowKlFtTlr1Usw4o19Z+C3dEqoV+ySPzFYM/0tHoxHRoA9WdFIs4 gMZYjqH4sn9vCJoEIU8p1boiIl9I4rXVOdz3QyXLxTRaSSQwX/aA+0Ik/Eimx3UtYX60 8Pwr514Gi0nuuG1MNZcRFkYIjVD1U6anlwIdX1R+eeHP+mc89Z4Pv2MQ79xwls5G+qLS JQMZsXv+4+kt7yl3bBfT1YUXpwrp3uw/feVcM/Ho+LBURmjZ44CiaXc+dv3pzmwAj264 itIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=l7KOgWSO; 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 bi15si1189699edb.551.2021.02.17.04.56.34; Wed, 17 Feb 2021 04:57:03 -0800 (PST) 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=l7KOgWSO; 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 S232220AbhBQM4G (ORCPT + 99 others); Wed, 17 Feb 2021 07:56:06 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:47566 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231419AbhBQM4F (ORCPT ); Wed, 17 Feb 2021 07:56:05 -0500 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 308EB8C4; Wed, 17 Feb 2021 13:55:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1613566522; bh=SZmom8e6Ukq+kensQZ86TKqC3oX7PjE2ZGFbW5sEnbI=; h=Reply-To:Subject:To:Cc:References:From:Date:In-Reply-To:From; b=l7KOgWSOyzPyUPo2F6t44T8fMqWskLMrWg+2CSXSwlDdyNYAJCkz1L6DbTUlbBapI i/3mJJUYg6WJrp4HLNQmOQHHOlvA9VS1+9xvsPzi3qak9Ek1b4PNE2xarSe+MX4Gjo GEPQOaDFPjbmctfKAWh6iGeuUW5AeymcP9TXvq08= Reply-To: kieran.bingham+renesas@ideasonboard.com Subject: Re: [PATCH 01/16] media: i2c: rdacm20: Enable noise immunity 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: <20210216174146.106639-1-jacopo+renesas@jmondi.org> <20210216174146.106639-2-jacopo+renesas@jmondi.org> From: Kieran Bingham Organization: Ideas on Board Message-ID: <5691f68f-724d-9d6a-9ea8-1e017b305c66@ideasonboard.com> Date: Wed, 17 Feb 2021 12:55:19 +0000 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: <20210216174146.106639-2-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, On 16/02/2021 17:41, Jacopo Mondi wrote: > Enable the noise immunity threshold at the end of the rdacm20 > initialization routine. > > The rdcam20 camera module has been so far tested with a startup > delay that allowed the embedded MCU to program the serializer. If > the initialization routine is run before the MCU programs the > serializer and the image sensor and their addresses gets changed > by the rdacm20 driver it is required to manually enable the noise > immunity threshold to make the communication on the control channel > more reliable. > Oh, this is interesting, ... booting up without the delays would be ... much nicer. > Signed-off-by: Jacopo Mondi > --- > drivers/media/i2c/rdacm20.c | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/drivers/media/i2c/rdacm20.c b/drivers/media/i2c/rdacm20.c > index 90eb73f0e6e9..f7fd5ae955d0 100644 > --- a/drivers/media/i2c/rdacm20.c > +++ b/drivers/media/i2c/rdacm20.c > @@ -541,7 +541,13 @@ static int rdacm20_initialize(struct rdacm20_device *dev) > > dev_info(dev->dev, "Identified MAX9271 + OV10635 device\n"); > > - return 0; > + /* > + * Set reverse channel high threshold to increase noise immunity. > + * > + * This should be compensated by increasing the reverse channel > + * amplitude on the remote deserializer side. > + */ > + return max9271_set_high_threshold(&dev->serializer, true); Does this work 'out of the box' ? I.e. if this patch is applied, I assume it is required to remove the regulator delays that I/we have in DT? Likewise, does that note mean this patch must also be accompanied by the update in max9286 somehow? I guess we can't keep 'test bisectability' with this very easily so it probably doesn't matter too much, the end result will be the interesting part. Reviewed-by: Kieran Bingham > } > > static int rdacm20_probe(struct i2c_client *client) >