Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2908803rdd; Sat, 13 Jan 2024 06:58:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IGEI5hURuGdEkE8KE039yO9EmKtpV/Awjwmn65SZIgwgGPeVlEBu8+IPXDyVHKnnDcUEVzI X-Received: by 2002:a05:600c:3b92:b0:40e:4cc8:50be with SMTP id n18-20020a05600c3b9200b0040e4cc850bemr1381628wms.187.1705157933855; Sat, 13 Jan 2024 06:58:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705157933; cv=none; d=google.com; s=arc-20160816; b=Ye251PXOlVaRVH9V3LQ4OUUamrKCa2GG5gp8qVsyREQ5RT7IiNaryQxmboK2yZOLFu kkMAOf+P133mCv9J8SqzgVV2LuGSTj7rpaI+bCbr7UEEfxKuFRk+mfxoj90Ep/sRo1tz BRJjxcFzHNV7rV3fwflV8TFhU3n3Bhv3BGaltCNZre4v+eicDqSXj36yLXQh2oDukqU0 CEXagD5N0SsVP18EiUOaCUk2L3WgVEf4u/SJbCRH4Q0a7LXhQRGjr8jBc8Tz10sr3wxs +QbHfCMKKIYgvoFhp7fhLZcFZzTIGx+iy/b2KIUn4C5sXbUlNwWNFigL0YDUEdJOQNwO nk0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=JnYvDd18VWfo35gKMLVjd5/prLW9/VQp7P6Jqnl9/PA=; fh=Rl10raWWvzN7KAcgEiNC3ql3hMIBK/NBx/HEjz44aLA=; b=gEiwgDpNxMxAoY/HikdqwCMx4S9uk8wYqjtOmdL3J8ksDWVhWXtWo8vveKfq+hNjwy QT0YGL2j59KHPW6ifJo3aQ6m0Tf5rT2yL3zszq+vZTt6ppbP6IAZQ38w3grs5QZA0BuA ZW2NV0VU7JJSdf3a1VnBoyeK3VT7Z4rH2aT97pCtHvqBcZtpBWJa+nHvNG2nisnC4uzV 4ueYOku7rya1BaCLUwDDjgg8gVWDckNx5RgArSORoDkyC/i6qTsf2kE0WhFEpP+IRavU jB/J4+s9zUZ2DU7WBr3AZi+vabowZL53Rb4iFjpC+KdCWxPthU2gNkLc6ysbV2RaekGW T+aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=kir44wnK; spf=pass (google.com: domain of linux-kernel+bounces-25311-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25311-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wanadoo.fr Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ay20-20020a170906d29400b00a2706ea4afdsi2236047ejb.787.2024.01.13.06.58.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jan 2024 06:58:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25311-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=kir44wnK; spf=pass (google.com: domain of linux-kernel+bounces-25311-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25311-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wanadoo.fr Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 94C321F22A0F for ; Sat, 13 Jan 2024 14:58:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F221115D4; Sat, 13 Jan 2024 14:58:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="kir44wnK" Received: from smtp.smtpout.orange.fr (smtp-20.smtpout.orange.fr [80.12.242.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EB91336B for ; Sat, 13 Jan 2024 14:58:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=wanadoo.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wanadoo.fr Received: from fedora.home ([92.140.202.140]) by smtp.orange.fr with ESMTPA id OfSwrfydhx8edOfSxrsth3; Sat, 13 Jan 2024 15:58:32 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1705157912; bh=JnYvDd18VWfo35gKMLVjd5/prLW9/VQp7P6Jqnl9/PA=; h=From:To:Cc:Subject:Date; b=kir44wnK0wf42PsE79s0lV9ZTnMfWBhvwoFSmBcMPQKDwVet/JFReH2/+/oTn5M4l E2Ycs4G9JwTur31pF2vUm6uzAKojoF9CbBF6Xki9uO/Re1MfxY2UoHdfPQ8+GmoKcG UIluLf1z2Oj2jXBZZmy6oB2JTN5udG9ehstu4mB9eOw+abQ/T3joGBhU/M0xdTYs+w lSfUI6GCu6r95412oBHX0GAnzk0XAy9+GArbQiCMYaeeEuMLHGJ6JtAeywHadOB66h XFS2EF7jAojlK7V3YlWmIpcoxTvKzMNp7GHtMfvTmU6C5M53qy7QYAGFI7z2Qe/FID m2+8cURNSRpGg== X-ME-Helo: fedora.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sat, 13 Jan 2024 15:58:32 +0100 X-ME-IP: 92.140.202.140 From: Christophe JAILLET To: Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Roman Li , Qingqing Zhuo Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH] drm/amd/display: Fix a switch statement in populate_dml_output_cfg_from_stream_state() Date: Sat, 13 Jan 2024 15:58:21 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit It is likely that the statement related to 'dml_edp' is misplaced. So move it in the correct "case SIGNAL_TYPE_EDP". Fixes: 7966f319c66d ("drm/amd/display: Introduce DML2") Signed-off-by: Christophe JAILLET --- drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c b/drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c index fa6a93dd9629..64d01a9cd68c 100644 --- a/drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c +++ b/drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c @@ -626,8 +626,8 @@ static void populate_dml_output_cfg_from_stream_state(struct dml_output_cfg_st * if (is_dp2p0_output_encoder(pipe)) out->OutputEncoder[location] = dml_dp2p0; break; - out->OutputEncoder[location] = dml_edp; case SIGNAL_TYPE_EDP: + out->OutputEncoder[location] = dml_edp; break; case SIGNAL_TYPE_HDMI_TYPE_A: case SIGNAL_TYPE_DVI_SINGLE_LINK: -- 2.43.0