Message ID | 20230706123025.208408-5-angelogioacchino.delregno@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2530809vqx; Thu, 6 Jul 2023 05:43:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlHQrJN9BIQIJRR0QcrSUBYPLXKzlhLMK6nbhZym9wzLc3SFtlZDryztfjGGpJ4mdIonsXDp X-Received: by 2002:a05:6a20:258b:b0:12d:23ba:55da with SMTP id k11-20020a056a20258b00b0012d23ba55damr1287774pzd.59.1688647414939; Thu, 06 Jul 2023 05:43:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688647414; cv=none; d=google.com; s=arc-20160816; b=xWkxWE9FA4oQoms1k8Eqtip/n8LvOHRvC2R+zgKNfvnPHAfAQtTw8EdPq0hZaTbSns KxKjKF+P0Fw+hGtyYkMK19g2x9JqhWDGWg7K+uxxo3Fa+KIkNcSEyaWRnkFV0iWb8Af0 EgL6XGTOrcp1y6FSggBi8r3zX8pD6W29KsO2qpuqV1FD1VyME0k7eyOyKtxqx/5JCkSE UP0eAyPeRTEUzGmzHtDlxqscKbz4swZ7ENsMA11Y3JSn8l7igMzI0Fhdv0eo0myBl4Sv HSaoboCy7zduFADpgcUE9SDDJ01ExL0XigXVywh9Jk3GKN4ODuRsBXKox+lA0zsZf8KW 5s/w== 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=wkQrDbz11AsGHgXVO6Q2KjnrgpobXN/3E+qjgYSqTpI=; fh=JpmmvsKbFEtjFcPhKwAU/TS0J6xmkcPCzvp06hVht3s=; b=j0auwptmXWZj0fKkcL1P/DfCDBnLYnt9jzdSbwd8MjxIm82s7lY7PFNk+LdsxhbZiW PPu9PabYFBehQ1DyDX2OWti53rjtf0nya3TfjahllAFHrGiW7P6OibFrpmPfo8Ga9f/W mm5L0NLAA2TnNpCj+PaGNqSgJy39yWYpkxo1nYC0jaj17Wg1M7j6Vjl+UT8f8fFc+s8d jBWIuXUnllqwj2pogIfDPypg9r/tmdkUCMonZ0MI+m3++rjaDEEYyIiwLRPQrCGybi8v PeADztB9HCjSAaEqh/0meKB88wLc9ZeMYAZu/qGIC91vp6s59S+jhp8TAxFqESZ/KAQy WBDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="GgT/1lsW"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d8-20020a170903230800b001b8894c8e20si1359730plh.279.2023.07.06.05.43.19; Thu, 06 Jul 2023 05:43:34 -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=@collabora.com header.s=mail header.b="GgT/1lsW"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232158AbjGFMao (ORCPT <rfc822;hadasmailinglist@gmail.com> + 99 others); Thu, 6 Jul 2023 08:30:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231972AbjGFMag (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 6 Jul 2023 08:30:36 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09535E72 for <linux-kernel@vger.kernel.org>; Thu, 6 Jul 2023 05:30:35 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 265726606FC6; Thu, 6 Jul 2023 13:30:33 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1688646633; bh=yC6E/mBM/67sUzeZV3Il3wBBzCtdEOHPS+iJkXdky+c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GgT/1lsWIVlTK/HPW/RWvCKuOXCXF14NVBF7ybqd8Ohqh6bjDOlSBJEXZOJk3G/9c JrVyaPTWeGT9kpcletskQGZpKvWpEATDYQ/vTcYc0sXBxaO2vH/Df1ZElhNxv37IBV NyGKvX9xbHkePJ+fnu4nakM8B30WZEjwyqrUAOmYEwyBlBf8hxq/v2qKzeZ97g1FjA IzTFX5jqv1IVizB3MQAcy9d9f3SqisJPDgK+j3H1/AZMa8R94sqQyK6qZEpquaia4c LpO8cU+TT1Feqyg928pAuxkDTWQnw+/Z9bQOU5pmZDBkwYua2r8ZDM7erYgdeqPeVP bNYJ4LCvTGijQ== From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> To: chunkuang.hu@kernel.org Cc: p.zabel@pengutronix.de, airlied@gmail.com, daniel@ffwll.ch, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com, wenst@chromium.org, nfraprado@collabora.com Subject: [PATCH v4 4/9] drm/mediatek: dp: Always set cable_plugged_in at resume for eDP panel Date: Thu, 6 Jul 2023 14:30:20 +0200 Message-Id: <20230706123025.208408-5-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230706123025.208408-1-angelogioacchino.delregno@collabora.com> References: <20230706123025.208408-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770675151617766993?= X-GMAIL-MSGID: =?utf-8?q?1770675151617766993?= |
Series |
MediaTek DisplayPort: support eDP and aux-bus
|
|
Commit Message
AngeloGioacchino Del Regno
July 6, 2023, 12:30 p.m. UTC
eDP panels are not removable: at PM resume, the cable will obviously still be plugged in. Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Tested-by: Chen-Yu Tsai <wenst@chromium.org> --- drivers/gpu/drm/mediatek/mtk_dp.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/mediatek/mtk_dp.c b/drivers/gpu/drm/mediatek/mtk_dp.c index 5b35a2e23896..35f3549d258e 100644 --- a/drivers/gpu/drm/mediatek/mtk_dp.c +++ b/drivers/gpu/drm/mediatek/mtk_dp.c @@ -2606,6 +2606,9 @@ static int mtk_dp_resume(struct device *dev) mtk_dp_hwirq_enable(mtk_dp, true); mtk_dp_power_enable(mtk_dp); + if (mtk_dp->bridge.type == DRM_MODE_CONNECTOR_eDP) + mtk_dp->train_info.cable_plugged_in = true; + return 0; } #endif