Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp5197894rwb; Wed, 17 Aug 2022 12:56:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR6T9/tX9tnf0ZGx1OYrLhwOn4CCwo/p7Mu1XmoqXc+YCdrjk6/KsmmYl7eFNE3wgWgIdVNC X-Received: by 2002:a17:907:7212:b0:733:1ada:e413 with SMTP id dr18-20020a170907721200b007331adae413mr17719924ejc.309.1660766164663; Wed, 17 Aug 2022 12:56:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660766164; cv=none; d=google.com; s=arc-20160816; b=DsePSY/Ru42ex36/XKoBrXh8eQxTKWvx6nr3rndoTXQ1xBvFRPjcjblm7I5FRBY2eZ 2puHeDWYn0I5hlpn+KVbhvnaEW4gGtVA09OTUEcUWGmn4qFMK91gbyMP/qsdmpUDYtcb DrKdrILfyQBqoqsVhCkASZJvzqbNEkaKBRLFij+AVehb3iF2D3+iRHrx3ZJgOMDAdMIN A3QACUg32B2J7kWhhOh2P9UOshJmI3q3nakuxZqRxopdfCvT6BztWxbPM1I/LVberFLs KzsPG/98g8gCc1WumusCG8dZGxtjYaryd3YbGGMXY/Xifj4gxfZBygTVvTJBav9EG91z xmtQ== 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 :dkim-signature; bh=ulBqU/UC4+G7ZCOp5gWa2ib+D+JCAcv6bqRwjOAxJYg=; b=d3S3LFMs3H0Wa2LlTD/Usz2HCGUUrkNSI1S2b16OBD6j+JQfEV6O7GTLAAZAVWGfO9 mDTMTcX6uS0CJh2hUi70JbDc9ntnLjNUkRqHPP1KNPJARyJmKN9SyXXuZGHwEzJgTrQf +1edUhAl+6eBZLxsD8dxJGh552vZlHgjDMU1KUsA9rzD2diAGES7UV6UpLEfxiCuQvAi 1+WFJnrxDPkli3UlyonoHE9DDTUMh9c0XWEwOyMRaOmNYeDZ+dx7W7iROYzLaqd1TKYf MFb9bi4iJej+XlWBzfxm2ryGd76qPM4ySvHWA93e15EVHk4mvKjfs/kXq4PhC1PwrOuU ZhcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NpvfHF6B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q12-20020a170906a08c00b0072b69150d28si11852304ejy.486.2022.08.17.12.55.39; Wed, 17 Aug 2022 12:56:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NpvfHF6B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238436AbiHQTkH (ORCPT + 99 others); Wed, 17 Aug 2022 15:40:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241020AbiHQTjv (ORCPT ); Wed, 17 Aug 2022 15:39:51 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77030A4B2A for ; Wed, 17 Aug 2022 12:39:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1660765188; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ulBqU/UC4+G7ZCOp5gWa2ib+D+JCAcv6bqRwjOAxJYg=; b=NpvfHF6Bliakl1W1n5B3ps2TqfHW8kry8BBjgt+uyf1X+2Dc09PslObI/2Px5eD+ysR/yz M6qrCSX5ONnJaDnXUyJp39LHQtBgmYbdCtJfR2LEzVQfoT3S6SQWEsjtWsl6cs6YMpN3MB 05C4kJDtY3c94o+cwbEkjCGnua33IP8= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-630-6OArxlt0NWamL6T1UMoD-Q-1; Wed, 17 Aug 2022 15:39:44 -0400 X-MC-Unique: 6OArxlt0NWamL6T1UMoD-Q-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 47D96811E76; Wed, 17 Aug 2022 19:39:43 +0000 (UTC) Received: from emerald.redhat.com (unknown [10.22.18.168]) by smtp.corp.redhat.com (Postfix) with ESMTP id A2F4E492C3B; Wed, 17 Aug 2022 19:39:42 +0000 (UTC) From: Lyude Paul To: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Cc: Wayne Lin , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , Fangzhi Zuo , Jani Nikula , Imre Deak , Daniel Vetter , Sean Paul , David Airlie , Daniel Vetter , Thomas Zimmermann , Bhawanpreet Lakha , linux-kernel@vger.kernel.org (open list) Subject: [RFC v4 05/17] drm/display/dp_mst: Fix confusing docs for drm_dp_atomic_release_time_slots() Date: Wed, 17 Aug 2022 15:38:34 -0400 Message-Id: <20220817193847.557945-6-lyude@redhat.com> In-Reply-To: <20220817193847.557945-1-lyude@redhat.com> References: <20220817193847.557945-1-lyude@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For some reason we mention returning 0 if "slots have been added back to drm_dp_mst_topology_state->avail_slots". This is totally misleading, avail_slots is simply for figuring out the total number of slots available in total on the topology and has no relation to the current payload allocations. So, let's get rid of that comment. Signed-off-by: Lyude Paul Cc: Wayne Lin Cc: Ville Syrjälä Cc: Fangzhi Zuo Cc: Jani Nikula Cc: Imre Deak Cc: Daniel Vetter Cc: Sean Paul Acked-by: Jani Nikula --- drivers/gpu/drm/display/drm_dp_mst_topology.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/display/drm_dp_mst_topology.c b/drivers/gpu/drm/display/drm_dp_mst_topology.c index fad80ab2b9db..8a2ddfde594a 100644 --- a/drivers/gpu/drm/display/drm_dp_mst_topology.c +++ b/drivers/gpu/drm/display/drm_dp_mst_topology.c @@ -4456,8 +4456,7 @@ EXPORT_SYMBOL(drm_dp_atomic_find_time_slots); * drm_dp_mst_atomic_check() * * Returns: - * 0 if all slots for this port were added back to - * &drm_dp_mst_topology_state.avail_slots or negative error code + * 0 on success, negative error code otherwise */ int drm_dp_atomic_release_time_slots(struct drm_atomic_state *state, struct drm_dp_mst_topology_mgr *mgr, -- 2.37.1