Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5881084pxb; Tue, 16 Feb 2021 09:46:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJybcWZQvPqR/azBDehBS0/oL3V+e0II9mcSO54TFF8GJHEX2NCTxCAiCJrFyJ2CDGW0hV0Q X-Received: by 2002:a17:906:7e0c:: with SMTP id e12mr10897664ejr.386.1613497570119; Tue, 16 Feb 2021 09:46:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613497570; cv=none; d=google.com; s=arc-20160816; b=swsw6EvREBHBLC47LA+0Ix09Ex9nkef3EFelaqtfCC8GgkcM1YNdyUuJflg3KQhLkV 84iIPNQuvkDQKpfW+EQW2pxxkGwIgfkJphB+MYzQ3mfXvhsjHPGz31b66RbZcZf2l/kb 1ijf+9XpbnkaRzERG4dsKaEJYWECyg5T+0p6x/o6nO3JsqGd5MfRvr9yGZIyVG/Is21+ AD2qjmp9CGyFC4yXAmoFOq99J+4lwkg/2Ju9tqv92IAigF1rm2xfm0l3pdbXP/d19BK6 UUIDJ+iXP5YL7sIeBsBbK63QhP+6ROjbZ+KP6pPWGpUQhvYCVbUW5sPP2gkYFnikV67b yzTg== 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=mhQCprRzO/Lg8Vcb+ez/sfx+HAyDpEYqbXFPCqSo1QI=; b=sJlEQzaxYURBU8WKXvz7TTAwzTWud6F6CbDbpTRyl1/7Ggy92+0FoPNqtkxSq5lJUM W3Dg1Y1cZ/kQcSNNIGeQoaZ7WMsX5aNx5KiB89vkAEr55HBZAPc7ok89d5F2ChYBlumc 6OD6FbnhjAYweimp7Jy78xFuv8hIoWJQ5H6IFUae0hP4l81yOOfaemMNTx5u67XkhTm+ mGIrlalFCFXbm7IyoSCbMbVD+U0cLZ6BraGF8JmvWRXbN2VOtXsxpzsxwk4EfobtkyQB blqPAQ7mqd+2FmxYzwyqKQpHlj4E+ZpC5pLag47BJ7X8xvQRSjuz4EG/aTxCYcUXuR99 mL4Q== 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 l19si7532180eja.334.2021.02.16.09.45.44; Tue, 16 Feb 2021 09:46:10 -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; 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 S230364AbhBPRpB (ORCPT + 99 others); Tue, 16 Feb 2021 12:45:01 -0500 Received: from relay12.mail.gandi.net ([217.70.178.232]:40231 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231206AbhBPRm4 (ORCPT ); Tue, 16 Feb 2021 12:42:56 -0500 Received: from uno.lan (93-34-118-233.ip49.fastwebnet.it [93.34.118.233]) (Authenticated sender: jacopo@jmondi.org) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 269BA200018; Tue, 16 Feb 2021 17:41:47 +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 Subject: [PATCH 12/16] media: i2c: max9286: Define high channel amplitude Date: Tue, 16 Feb 2021 18:41:42 +0100 Message-Id: <20210216174146.106639-13-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210216174146.106639-1-jacopo+renesas@jmondi.org> References: <20210216174146.106639-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. 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 4afb5ca06448..7913b5f2249e 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) @@ -566,12 +567,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