Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4090834iog; Tue, 28 Jun 2022 08:47:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vEZtDe/nPVUbIZHGAf7RZZrq1OoqEkcYXeQ0Rnn6YKwaxf0hGf4WqUfJ6McZm1umZfVFp0 X-Received: by 2002:a63:4d5:0:b0:40d:77fd:cff8 with SMTP id 204-20020a6304d5000000b0040d77fdcff8mr18006299pge.361.1656431250753; Tue, 28 Jun 2022 08:47:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656431250; cv=none; d=google.com; s=arc-20160816; b=He6QCuiQDasY+7vY82pG+YnvvQCViMDHNuor9dbwmy1FxgNJ4UXE8rh2K5uKsw6zhi wIyHgo5dvoM5V5Bb+nzFzxRqnL62AR/UwbDNvKOl08iZXGwC33xM4ARoImXi/qk4gUsj otgd6Wy5AhN1qEWKkgYV3DGjI/Obyr0JY/oFCyoI8YKVWxhTwqNFkTA4TTFtpwufYCLj gTsknwy9xjEIA7cBlTrfbjdl8O/30oZAWuT+YXcVlljMkn9V3nD5yS0YLRDobCJ369ze liYNtHMpyaElAchEa4jzbJ7eoGlniL/iSTqsTt5EGiiCyfcgVuhMIa4nIqDOu9ZfcoxO U6/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=qsVrB4/khfucpjBiFcbeN6QBKJZEym13aaN4eGlpdCk=; b=ZQq5aICm4X6Cx7RWbjKFnsG5erVMiS3l2SEdLieutsOSC8sRzYDXLI8wGZ9vXs9fR4 1C/7QP20MDsoRorGNIH2hRtglEIyPU9W5AVDDoLdAGa28S2pot2v71kKR6UwL47jVtG0 iue3mxhVRUxq/v2ZHqPL//1wPW4e+Tq56sHWHIOaSDsxr9emTbZrEmiVcgfWmy1d4TVS XuWTh4oz9DZoui1qxJEoB1A8f8AATdV/uwMJr4qkcVMlWHCHeAvoDJkQRYyvj8y+vyPy NyuyXgFxO1iHQOrhjy2/Q/N+6j7gsvOQmA30SLlBTgOgZE82obxYOn91BOlr1g9SZ7Yd eVYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=DY6ytGdS; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e19-20020a170902ed9300b00163ddc3b77csi17041414plj.573.2022.06.28.08.47.17; Tue, 28 Jun 2022 08:47:30 -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=@quicinc.com header.s=qcdkim header.b=DY6ytGdS; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347790AbiF1PUX (ORCPT + 99 others); Tue, 28 Jun 2022 11:20:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344555AbiF1PUV (ORCPT ); Tue, 28 Jun 2022 11:20:21 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6D2832ED2; Tue, 28 Jun 2022 08:20:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1656429620; x=1687965620; h=from:to:cc:subject:date:message-id:mime-version; bh=qsVrB4/khfucpjBiFcbeN6QBKJZEym13aaN4eGlpdCk=; b=DY6ytGdSUDSdRYn1U3F1AZu6kH5V76o0u/q9lWYfTUx6nj1pIIpNx/B0 40GWf4+o/k4bsuhOUiNtMfHjHJB9a7mF4NmDlPcGjGBhdcqGKTol0flEg VaVRLvP4OEZdDsNVT9o3ePqXqq45akE9CAv66D93GPVdQSyfaD2q2YG+4 4=; Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-01.qualcomm.com with ESMTP; 28 Jun 2022 08:20:20 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2022 08:20:20 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 28 Jun 2022 08:20:19 -0700 Received: from khsieh-linux1.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 28 Jun 2022 08:20:18 -0700 From: Kuogee Hsieh To: , , , , , , , , , CC: , , , , , , , Subject: [PATCH] drm/msm/dp: make eDP panel as the first connected connector Date: Tue, 28 Jun 2022 08:20:06 -0700 Message-ID: <1656429606-2765-1-git-send-email-quic_khsieh@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,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 Some userspace presumes that the first connected connector is the main display, where it's supposed to display e.g. the login screen. For laptops, this should be the main panel. This patch call drm_helper_move_panel_connectors_to_head() after drm_bridge_connector_init() to make sure eDP stay at head of connected connector list. This fixes unexpected corruption happen at eDP panel if eDP is not placed at head of connected connector list. Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_drm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/msm/dp/dp_drm.c b/drivers/gpu/drm/msm/dp/dp_drm.c index ce0ec3a..2d18884 100644 --- a/drivers/gpu/drm/msm/dp/dp_drm.c +++ b/drivers/gpu/drm/msm/dp/dp_drm.c @@ -136,5 +136,7 @@ struct drm_connector *dp_drm_connector_init(struct msm_dp *dp_display) drm_connector_attach_encoder(connector, dp_display->encoder); + drm_helper_move_panel_connectors_to_head(dp_display->drm_dev); + return connector; } -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project