Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4489902rwb; Tue, 6 Sep 2022 08:13:01 -0700 (PDT) X-Google-Smtp-Source: AA6agR7JcTg+JxZyBLIWmMUezJZWBxRA8rvvHSieXbJ+0u3SsXoL1nBu/8MxkCE/ANDJLqLBN9Fk X-Received: by 2002:a17:902:b18d:b0:172:e033:8ad4 with SMTP id s13-20020a170902b18d00b00172e0338ad4mr54435477plr.151.1662477181048; Tue, 06 Sep 2022 08:13:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662477181; cv=none; d=google.com; s=arc-20160816; b=QeliWFNP2tijb2e9JqV+o4h2npjqsQPqGI8TCxflzUd9X58zuBYvpxOcoGsbhkCWgJ GTV77IbHiWeAvs6pHKokeBQoOe35PGlaG0Wk2ujpu4I1BTUmpk/PXRfZzXxZoUDgSzRF QoGGQiWrlq4mkBIOu33eVYF4BlrvkHWhKX4QeMQLa5PaHvaVb8IH41EB5jqFp2oU75W0 NGPIAeluoT0KsL5JvFrVD5CYxzG/2JnaOucxRQzvnnVxEtqVnWPxKK0tmXkfn0KsZlrm 0Y3D/+uCxIzOYrWjc5uY5/0DdyPywnWf4RXy6pEqFXhR5ecBU7nBgEQy31PukXW0IfiZ X3iA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4sS3peKFoxBuP46OB16tux+xklJXZ6mzqAT3I7YPBjs=; b=EreFlp8KkBCveACEexQzIwHv1ehEQvW8FMUgdfIPMgJtFW5RDxD8ITj44IEl7JqBuX 6Lm+2hkaEP53YEIuzYhqineXvPcsTrvQEo8b3JgjXSvVukp3Sa100cR2BwAPit5zCf52 gOZOQeubiV/nKUzVEPUp2RxUiqkTMymN2s/Skd8YL/WZWQM8Egx4XvdaG1MG8or+HFZu h0K29XlndvFpLaFH0ehPL2031cv3Yz6aCjbdekCK0gr7g/a0OTPcOHCz1Ku4KXOzUnQm G6+4Q2LQtetQdqGJd4UrzvS+rNvoWYX+N/1jGhnlyHFPBNGWW5Ueee6T3DKg6OwtHHHZ JOSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RNGsOHYs; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t2-20020a056a0021c200b00535fd435cf6si12554106pfj.208.2022.09.06.08.12.49; Tue, 06 Sep 2022 08:13:01 -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=@linuxfoundation.org header.s=korg header.b=RNGsOHYs; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240923AbiIFOBR (ORCPT + 99 others); Tue, 6 Sep 2022 10:01:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240669AbiIFN6N (ORCPT ); Tue, 6 Sep 2022 09:58:13 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC9B182D01; Tue, 6 Sep 2022 06:42:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 49FF2B8162F; Tue, 6 Sep 2022 13:41:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4F2BC433D7; Tue, 6 Sep 2022 13:41:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1662471700; bh=eRs0J5tzpn54uD4h7rQQv0l+Vqhz6Xssugk/gCLIuNg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RNGsOHYsJ1YcNiQiHLCBOpSX7FvyOmkQcfbK3TS5rXz9WI6uUpI1612fdMeUuhNI0 cUlrxW0XR5CeK61Pk5gMF+wFlx5/8VGn4Fi8xUN/9BmPTd9pOdJiVDMXVrxIhncFYf DTuoLAb3/wim4t9CQ82wCYG9N4f3j8X72yuJH2aA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kuogee Hsieh , Abhinav Kumar , Douglas Anderson , Dmitry Baryshkov , Stephen Boyd , Sasha Levin Subject: [PATCH 5.19 001/155] drm/msm/dp: make eDP panel as the first connected connector Date: Tue, 6 Sep 2022 15:29:09 +0200 Message-Id: <20220906132829.483548687@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220906132829.417117002@linuxfoundation.org> References: <20220906132829.417117002@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Kuogee Hsieh [ Upstream commit deffa2d75db7e7a9a1fe3dad4f99310bff7b6449 ] 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. Changes in v2: -- move drm_helper_move_panel_connectors_to_head() to dpu_kms_drm_obj_init() Changes in v4: -- move drm_helper_move_panel_connectors_to_head() to msm_drm_init() Signed-off-by: Kuogee Hsieh Reviewed-by: Abhinav Kumar Reviewed-by: Douglas Anderson Tested-by: Douglas Anderson Reviewed-by: Dmitry Baryshkov Reviewed-by: Stephen Boyd Fixes: ef7837ff091c ("drm/msm/dp: Add DP controllers for sc7280") Patchwork: https://patchwork.freedesktop.org/patch/492581/ Link: https://lore.kernel.org/r/1657135928-31195-1-git-send-email-quic_khsieh@quicinc.com Signed-off-by: Abhinav Kumar Signed-off-by: Sasha Levin --- drivers/gpu/drm/msm/msm_drv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index 14ab9a627d8b0..7c0314d6566af 100644 --- a/drivers/gpu/drm/msm/msm_drv.c +++ b/drivers/gpu/drm/msm/msm_drv.c @@ -424,6 +424,8 @@ static int msm_drm_init(struct device *dev, const struct drm_driver *drv) } } + drm_helper_move_panel_connectors_to_head(ddev); + ddev->mode_config.funcs = &mode_config_funcs; ddev->mode_config.helper_private = &mode_config_helper_funcs; -- 2.35.1