Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2252128iof; Wed, 8 Jun 2022 00:32:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdOsf1u3yjhbi95LfutDCmtfArbfXiO83ymEuTjBNaxCmtVk6CBNhaSglEWuaaUMoYfNAz X-Received: by 2002:a17:902:ce02:b0:151:a86d:dc2b with SMTP id k2-20020a170902ce0200b00151a86ddc2bmr33520662plg.57.1654673536603; Wed, 08 Jun 2022 00:32:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654673536; cv=none; d=google.com; s=arc-20160816; b=gClc+OMclW1CUywMfgYGFcFd56jMphqpOUr4TaVqPmMB4dVnMwunnx1OAh5GGM5SvN NZUBZHHhCm4FRIGLL0apUK44sVwnJPDA4ykayfCFHMvhgIfIYJLDRxo/fvq9+lCyXP67 fDCuziO1jv9vdi1Yt1ml+Ih+8L3EW5BoAGwqaYbFg8GyqX/SacQvr140uZlMVGzvhhJC BzfqNSVCH0HMsXxEXUktaeUlICe/52n1/ysfMSYyvpycbKFAiyYVr10nRyftUq99rNiK xj47nDmvT7iCHPLOd8Inb3MnizhPqLfbyngn8bJCvTjUwnJwbpQiuBUtmr6RHhO+jE96 HNjw== 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=UILT9WGW3d0IxemmFu2Q9nTCU5K37LJyUJt0iSrwqk0=; b=QmnS+BnAsUAofD1IgDDyZrXoJGq+PrS3UxihvM27Yh0q0RNS+o1W41QnJOpOR7AWCJ F0ZeJmNXRSqWYNYhckpmICYQQQXfHdgw/Qi0YE605Qs+qCoI9SKqLGfBe1/4JteBy3ha zUbWxW9rIp7LHLZXW4otHbWhtVPxETBShnXusLizbHf7TAnJgnD1OU6jJSnLDeZ/Fzwq znzUfzzAJRzbKPe5ibK+hipaq/yDOAJIzw3V2bDrJl1ruqJiR3yq/Pkr0PijoFGu1nAs IPtCB1Imd3rzgpqk4mgdOp4Z0OQh62vpVNFJTsdow5K6NsjGWKYY2EjuiEmA8eCQ2qrC 68sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aFiR79T7; 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 p17-20020a170903249100b0015ea266647fsi5613670plw.394.2022.06.08.00.31.53; Wed, 08 Jun 2022 00:32:16 -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=aFiR79T7; 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 S236973AbiFHC4Z (ORCPT + 99 others); Tue, 7 Jun 2022 22:56:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357113AbiFHCuN (ORCPT ); Tue, 7 Jun 2022 22:50:13 -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 ESMTP id EC8F61B078C for ; Tue, 7 Jun 2022 12:41:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654630902; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UILT9WGW3d0IxemmFu2Q9nTCU5K37LJyUJt0iSrwqk0=; b=aFiR79T7ExbKuVW47zCoqoFHLr4znVGBEXW8o39I7Iimo2Q3PQARnFRy2qnw8h/Qk+fBPM TiIlt+FlRUdtXz86DZV21Sw9ZpanrY1kP/c/MV2wAaFn3KunPOoGN+XulooJnKGDMyB97F hMw3A++f6sk1krtVdtVvRu3vnS4HGDo= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-460-nl76Ea0WPUecYpyXx8_nWw-1; Tue, 07 Jun 2022 15:41:38 -0400 X-MC-Unique: nl76Ea0WPUecYpyXx8_nWw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C2F871C04B4D; Tue, 7 Jun 2022 19:39:46 +0000 (UTC) Received: from emerald.redhat.com (unknown [10.22.9.252]) by smtp.corp.redhat.com (Postfix) with ESMTP id DEA7821FE7B9; Tue, 7 Jun 2022 19:30:28 +0000 (UTC) From: Lyude Paul To: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, amd-gfx@lists.freedesktop.org Cc: Wayne Lin , Fangzhi Zuo , Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Bhawanpreet Lakha , Mikita Lipski , Roman Li , Claudio Suarez , Ian Chen , Colin Ian King , linux-kernel@vger.kernel.org (open list) Subject: [RESEND RFC 02/18] drm/amdgpu/dm/mst: Rename get_payload_table() Date: Tue, 7 Jun 2022 15:29:17 -0400 Message-Id: <20220607192933.1333228-3-lyude@redhat.com> In-Reply-To: <20220607192933.1333228-1-lyude@redhat.com> References: <20220607192933.1333228-1-lyude@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Spam-Status: No, score=-3.3 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 This function isn't too confusing if you see the comment around the call-site for it, but if you don't then it's not at all obvious this is meant to copy DRM's payload table over to DC's internal state structs. Seeing this function before finding that comment definitely threw me into a loop a few times. So, let's rename this to make it's purpose more obvious regardless of where in the code you are. Signed-off-by: Lyude Paul Cc: Wayne Lin Cc: Fangzhi Zuo --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c index 1bd70d306c22..1eaacab0334b 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c @@ -153,8 +153,9 @@ enum dc_edid_status dm_helpers_parse_edid_caps( return result; } -static void get_payload_table(struct amdgpu_dm_connector *aconnector, - struct dc_dp_mst_stream_allocation_table *proposed_table) +static void +fill_dc_mst_payload_table_from_drm(struct amdgpu_dm_connector *aconnector, + struct dc_dp_mst_stream_allocation_table *proposed_table) { int i; struct drm_dp_mst_topology_mgr *mst_mgr = @@ -252,7 +253,7 @@ bool dm_helpers_dp_mst_write_payload_allocation_table( * stream. AMD ASIC stream slot allocation should follow the same * sequence. copy DRM MST allocation to dc */ - get_payload_table(aconnector, proposed_table); + fill_dc_mst_payload_table_from_drm(aconnector, proposed_table); return true; } -- 2.35.3