Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp465471pxj; Wed, 16 Jun 2021 06:35:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGUY/VgJdMMHRkjpAVBcFJd65mfJxxqI7zPAlcvmsbKZ27L/2e0+beWfVLkbeW2je/JXaq X-Received: by 2002:a02:6f57:: with SMTP id b23mr4339274jae.55.1623850548626; Wed, 16 Jun 2021 06:35:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623850548; cv=none; d=google.com; s=arc-20160816; b=f83z/I8EYRKRf/vm9S7kUvx1VozNvJcaUD2nYQYAfqxdNS9hpX/lXEo6EUZBipLtjx 5a7a3V/tdR6KgqfyATgjR2cHfdIkj7pkyfxpe83EKQibUjbmcQts/vCu+IBAgHITXLAh /H7DFuUaYC8fh+L5tNz9Sob+I1nPMEc9prZwnYw+XWTg9CcwplBseYqmVKP3kk9V4aeb q1S0Mjrnxu9mExEmjUrLTR0PfxlpL7/H4w+KFB0x/vrC5xkC6BHq7nEQsvIBCrzA9z/s kLSdV2NqW9E4i+6G8LMUYYua6oAwrnWagEMKtpJnBchoMsfQQkLlgTAdnCO/gblwKW7d 9vPQ== 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=54X40e/a+WrcTr5PgDoxj2LOcKyb0iTcn1t2iWm7wsM=; b=drXicbRdHXa6jVMDK+y0DidmNVQusoWpyOLcpdMa6lNwkCX2qMDA7T1g73Wx8z3Rnq RzV1d3lUEuVnw3ArRkLF6ElnoW5yhGG86J9Nfym/oSQ5k/o7JlAmn9F3Y9YFXsvH+dGZ m8uhuJoyjwet90MYtWsr1dr9N1fpCD0/VaULJrD9z9NbEpjcDTmqIczAwHGqV+7jsffo eoHmVxoUBTUwOK8KjgcnvYWHt73C94s5P3F0FR/BCkP1HwnLNNye0WnNP6nmEj/htij0 BRQeSdPc6RrQaskOaTCAkLXtXNymQXQadi2m2ZIxY3Z4Zzqt/R8In7aD1bfCyd9zCYxG h6fw== 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 k14si2837156jad.8.2021.06.16.06.35.34; Wed, 16 Jun 2021 06:35:48 -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 S232889AbhFPMsC (ORCPT + 99 others); Wed, 16 Jun 2021 08:48:02 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:37285 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232892AbhFPMr4 (ORCPT ); Wed, 16 Jun 2021 08:47:56 -0400 Received: (Authenticated sender: jacopo@jmondi.org) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 6D0331C0017; Wed, 16 Jun 2021 12:45:47 +0000 (UTC) From: Jacopo Mondi To: Hans Verkuil , 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 v5 05/15] media: i2c: max9286: Rework comments in .bound() Date: Wed, 16 Jun 2021 14:46:06 +0200 Message-Id: <20210616124616.49249-6-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210616124616.49249-1-jacopo+renesas@jmondi.org> References: <20210616124616.49249-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 Rephrase a comment in .bound() callback to make it clear we register a subdev notifier and remove a redundant comment about disabling i2c auto-ack. No functional changes intended. Signed-off-by: Jacopo Mondi Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- drivers/media/i2c/max9286.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/media/i2c/max9286.c b/drivers/media/i2c/max9286.c index 9124d5fa6ea3..e1c7173f2d00 100644 --- a/drivers/media/i2c/max9286.c +++ b/drivers/media/i2c/max9286.c @@ -556,9 +556,9 @@ static int max9286_notify_bound(struct v4l2_async_notifier *notifier, subdev->name, src_pad, index); /* - * We can only register v4l2_async_notifiers, which do not provide a - * means to register a complete callback. bound_sources allows us to - * identify when all remote serializers have completed their probe. + * As we register a subdev notifiers we won't get a .complete() callback + * here, so we have to use bound_sources to identify when all remote + * serializers have probed. */ if (priv->bound_sources != priv->source_mask) return 0; @@ -575,11 +575,6 @@ static int max9286_notify_bound(struct v4l2_async_notifier *notifier, */ max9286_reverse_channel_setup(priv, MAX9286_REV_AMP_HIGH); max9286_check_config_link(priv, priv->source_mask); - - /* - * Re-configure I2C with local acknowledge disabled after cameras have - * probed. - */ max9286_configure_i2c(priv, false); return max9286_set_pixelrate(priv); -- 2.31.1