Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1557953pxf; Fri, 19 Mar 2021 09:43:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOBunkx3nmHUOiW102d9Fii2KxLK+yuZWOdpIzvoI5JIqnKplVFEAlnJ9fLwVz1FJg8Je9 X-Received: by 2002:a17:906:405b:: with SMTP id y27mr5479089ejj.332.1616172217175; Fri, 19 Mar 2021 09:43:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616172217; cv=none; d=google.com; s=arc-20160816; b=iQaxv5I551WwyYq12+3m0fGm+Qmf3fZ9VCd5KfxS1TSkszpOb1aZ9Dl4Wi+GRoOJcs +RXqc2KatNZMGMkTqf3k3VEyPO5lnzXE+323Hz+LNDFu4QXpvZMUS31dKte2AZP897zE 0D9ZIo+3+RhVme1KVp5q2839UjsOKP/10VphfHEYWY2Je4EYloDqvNXB1tmj1uEsUeLK iK7JQ2wryzgFHFtP96BonZSrAN2UBLjqILwODTEhlQyZls2o7tNUU8vyIL3aUHFvpnvl qjdAu+76P1LJKVZ5voJytuglH+KO5DdpBCBI105irDVgoYl3F5liH5SCrI3ZHykO3NWI 6A1g== 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=MtKSmoUWQ71sljtvkrEQwjKYfzmZsr3AaKUCCzZ0iII=; b=Hv650pBb2alPM4I7ds3kQK56bIWpdkKNHK4rX6sf1uBRrCTqLjCyOapK6nomoElSZ2 LjZEEu8ui7y1xtdERrQlFiNLnzGpK6Vu1hWSRLJ36/xYA5Lfsg8F959x9LeO57MgNa1l KOL7WgLJOKXQdn8h/5FKOuCOCQ5NJ4QlcjMPqDMJxv0B9pXy3/rMZFOtSefh8gur6R7f wQkYiY3IK00IeRyzOGXUjBKOv/c2zp2p4Ujhn21KnBfy5QiIAEkKAeOSESlHi6z3MDI4 JDSPCRQ6jjwQdFUbyg9rXSTPFcEM3z1Pj9CKYVvxN5lI0HuDMA6bYgxdBw8Fwkoj4rq4 bocA== 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 s3si4057013edx.251.2021.03.19.09.43.12; Fri, 19 Mar 2021 09:43:37 -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 S230273AbhCSQmS (ORCPT + 99 others); Fri, 19 Mar 2021 12:42:18 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:58071 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230160AbhCSQlq (ORCPT ); Fri, 19 Mar 2021 12:41:46 -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 B76CFC0006; Fri, 19 Mar 2021 16:41:41 +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, Laurent Pinchart Subject: [PATCH v3 04/19] media: i2c: max9286: Define high channel amplitude Date: Fri, 19 Mar 2021 17:41:33 +0100 Message-Id: <20210319164148.199192-5-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 Provide a macro to define the reverse channel amplitude to be used to compensate the remote serializer noise immunity. While at it, update a comment. Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart Signed-off-by: Jacopo Mondi --- drivers/media/i2c/max9286.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/max9286.c b/drivers/media/i2c/max9286.c index ed1cdefe7c30..9124d5fa6ea3 100644 --- a/drivers/media/i2c/max9286.c +++ b/drivers/media/i2c/max9286.c @@ -113,6 +113,7 @@ #define MAX9286_REV_TRF(n) ((n) << 4) #define MAX9286_REV_AMP(n) ((((n) - 30) / 10) << 1) /* in mV */ #define MAX9286_REV_AMP_X BIT(0) +#define MAX9286_REV_AMP_HIGH 170 /* Register 0x3f */ #define MAX9286_EN_REV_CFG BIT(6) #define MAX9286_REV_FLEN(n) ((n) - 20) @@ -567,12 +568,12 @@ static int max9286_notify_bound(struct v4l2_async_notifier *notifier, * channels: * * - Increase the reverse channel amplitude to compensate for the - * remote ends high threshold, if not done already + * remote ends high threshold * - Verify all configuration links are properly detected * - Disable auto-ack as communication on the control channel are now * stable. */ - max9286_reverse_channel_setup(priv, 170); + max9286_reverse_channel_setup(priv, MAX9286_REV_AMP_HIGH); max9286_check_config_link(priv, priv->source_mask); /* -- 2.30.0