[PATCH v4 3/9] drm/mediatek: dp: Always return connected status for eDP in .detect()
AngeloGioacchino Del Regno
angelogioacchino.delregno at collabora.com
Thu Jul 6 05:30:19 PDT 2023
If this is an eDP panel it's not removable, hence it's always connected:
as a shortcut, always return connector_status_connected in the .detect()
callback for eDP connector, avoiding a poweron, a check for sink count
and a poweroff.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>
Tested-by: Chen-Yu Tsai <wenst at 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 8f7d4af7076f..5b35a2e23896 100644
--- a/drivers/gpu/drm/mediatek/mtk_dp.c
+++ b/drivers/gpu/drm/mediatek/mtk_dp.c
@@ -1957,6 +1957,9 @@ static enum drm_connector_status mtk_dp_bdg_detect(struct drm_bridge *bridge)
bool enabled = mtk_dp->enabled;
u8 sink_count = 0;
+ if (mtk_dp->bridge.type == DRM_MODE_CONNECTOR_eDP)
+ return connector_status_connected;
+
if (!mtk_dp->train_info.cable_plugged_in)
return ret;
--
2.40.1
More information about the linux-arm-kernel
mailing list