Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1240455pxb; Sun, 21 Feb 2021 17:37:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJwB0N/D3sWWRewnYEII/5JXrkIW/gp9O7PVvDvH+HIg+d0qS6/mOAQ7YCU/H2ryMfg7oBnQ X-Received: by 2002:aa7:cc98:: with SMTP id p24mr20907524edt.126.1613957850443; Sun, 21 Feb 2021 17:37:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613957850; cv=none; d=google.com; s=arc-20160816; b=vi1/y0X/XeYRm5oby6gia3N8SIR6lKOKAdw3bV/PEBSWWDBBIAc7apVt81S8W4fzHq g/kruKDDllAi/WoZS4Kqq+S+CL9OJD7nrm4kO3lw37jCEO1r4Vw3Xy2DUD5TqhVu/SXG eQ/ZpcVCRAaVUlCY/pMMC6o5csKjs5Kgc+smtufd0szymiwmr2WSzJG88CdjHmMelSUY pNpJOIebSA+hZlUI7w1DBwKDD19hpWsM1XNZ2S+ob/ElzlNeanl96+JG+SZQ7C7sHe2C rnr8pTk97jtKImsJB5mviguOxg5OPBnraJKlPHb+5+SewjwpouMeZZfOHHADbhpKSqji R1rQ== 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=v0PgYEu2qt6FWjSNhPnEaMo9NtonAWlhIbmyW4r3yIk=; b=JpxNfnofNOkPK0xlNJRMtY25/sVMzni0h5CBmF6CUUeZeesk+3kpQr4LOJWsa1fmqQ ZN3TFEl4queCnCSdh77ckPlDCvKBadYa1tIe1ezd/vOc0MYPoT+mhXe8L/ylyXRt4w5j IY2J5fLFpxzNWZxAMKcvHDCVosRhcTOivr6CfpCgS9HA1CmmrPChCU5FNTRjQR+jj6Kd OxjfnAK78q5mR+a8przKz2CjAGG9lHrOWvOJz7nhYuVouMGnGQxZwQitgYhJ8pPJ5Vqg Uev6Ojjg3XHVWjJ9PmMkqXM4oo3FAEzpZcM/znNowp2Bwi0zH74tzgZEf5WmfF3i/x7+ 4O0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=YQlZuLZH; 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 u1si11230796edp.42.2021.02.21.17.37.08; Sun, 21 Feb 2021 17:37:30 -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=YQlZuLZH; 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 S230185AbhBVBgR (ORCPT + 99 others); Sun, 21 Feb 2021 20:36:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229866AbhBVBgK (ORCPT ); Sun, 21 Feb 2021 20:36:10 -0500 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 97081C061574; Sun, 21 Feb 2021 17:35:30 -0800 (PST) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id E7278517; Mon, 22 Feb 2021 02:35:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1613957729; bh=w93vWuoMNvv5niDXg7wAlxjj/FGqCUStQqpuRckm2Xw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YQlZuLZH4wWj9oDmjLlEUaIVptrGhu+ARsqZZsgvub35DtAAHAqyEafawjjow4DR6 sXNNvNWs0q4TEgiFO19iCbH3xCmXN5w8nG55Gf2klwcYJ7PMTPTv8gJjhaaSpHrtNR ZQwVtVbzlhjY/HmVL0QgK9dUA22SFDXvIi1H+SuU= Date: Mon, 22 Feb 2021 03:35:02 +0200 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 12/16] media: i2c: max9286: Define high channel amplitude Message-ID: References: <20210216174146.106639-1-jacopo+renesas@jmondi.org> <20210216174146.106639-13-jacopo+renesas@jmondi.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210216174146.106639-13-jacopo+renesas@jmondi.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jacopo, Thank you for the patch. On Tue, Feb 16, 2021 at 06:41:42PM +0100, Jacopo Mondi wrote: > 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 I would have done this in the previous patch, but it doesn't matter much. Reviewed-by: Laurent Pinchart > * - 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); > > /* -- Regards, Laurent Pinchart