Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1629804pxb; Mon, 12 Apr 2021 02:53:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZAMcI/XVrBdKEVOv7RZO32QKmXxonZU2008UMZzFvApNcEp5R0J5TJFBjiCenBBFABog6 X-Received: by 2002:a17:90b:4a52:: with SMTP id lb18mr27896287pjb.1.1618221198494; Mon, 12 Apr 2021 02:53:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618221198; cv=none; d=google.com; s=arc-20160816; b=VJ82kBnLRn2sY+ztpxiNoB5hbPmamw/M08KhZglmg6c7Gk7wSvNHTv50DolwR05PQV 6Nr82MxU9g8nhwdysTa8NI7lJaOToAGottKRcfMO/7gen2w3UFsUwTbLsDIx4OO9UHJ9 0rOxpoxeWYiGOkx1JoDkPwSzXJBqAiy5B+GHVdYf7MipWQHbVHYLYqx2VoRMldQjNCTg lDcEgfC05ln/LeomphaQJo2DvQ4rwe9l2OHDwsVaXtTdQjlsIVUbn688Ct2rKhf8BOye MjqxESGn7OhFh31pyE22sq4dPANH4Oznwmaj2lgPSYykD/Nb11sIT99MvtnZ4TLhJPyj B7Ng== 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=+FTA9xm4GKcchccbXFi6Uy5GVhXPXiNJmSx1qCd/AxE=; b=Dr+aCfUEqzsJGeIRj5JlKv6QUNosgdxadNX6qF1d4So/aw/7nu9y/2AHDAnC4vjIoA mTiVLVv5VSKtotstsD1I5plz6WckUt83FtriO6rzLN/USQDSFiY9BxdMkW5Uu20TVf61 mAgJ6vTio8XCQNtufDVMtSJ/U+87DWSJdlxbVScnhfQJi2aG3qd1uSULNZigeuzSO31/ ZeqtD7P84CjyP+o9p8adt/GIZStTTHCteGIgy9tbZGskssM4/PRafepFo94H6ISRzNn4 QelWU0ZXQSIwqfirNyzvM1hYykviRfiSIihIZ2a7XREXzo1eObbvn4CESfHMe1leUOAQ 12kw== 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 x20si13944966pgk.380.2021.04.12.02.53.06; Mon, 12 Apr 2021 02:53:18 -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 S241441AbhDLJs6 (ORCPT + 99 others); Mon, 12 Apr 2021 05:48:58 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:54111 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240640AbhDLJet (ORCPT ); Mon, 12 Apr 2021 05:34:49 -0400 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 1F965200019; Mon, 12 Apr 2021 09:34:27 +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 v4 05/17] media: i2c: max9286: Rework comments in .bound() Date: Mon, 12 Apr 2021 11:34:39 +0200 Message-Id: <20210412093451.14198-6-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210412093451.14198-1-jacopo+renesas@jmondi.org> References: <20210412093451.14198-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. Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart Signed-off-by: Jacopo Mondi --- 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