intel_extreme: when DDI A eDP port isn't enabled by the BIOS, don't enable

we might be connected with an external port (HDMI or DP) which would be later found.

Change-Id: Ibeab4abb651e5b37d7a0fa452286ee34dec7dfbd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5306
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
This commit is contained in:
Jérôme Duval 2022-05-11 18:46:22 +02:00
parent 981d0862ed
commit 92450935b2

View File

@ -2250,11 +2250,8 @@ DigitalDisplayInterface::IsConnected()
pipeState = read32(PIPE_DDI_FUNC_CTL_EDP);
TRACE("%s: PIPE_DDI_FUNC_CTL_EDP: 0x%" B_PRIx32 "\n", __func__, pipeState);
if (!(pipeState & PIPE_DDI_FUNC_CTL_ENABLE)) {
TRACE("%s: Laptop, but eDP port down: enabling port on pipe EDP\n", __func__);
//fixme: turn on port and power
write32(PIPE_DDI_FUNC_CTL_EDP, pipeState | PIPE_DDI_FUNC_CTL_ENABLE);
TRACE("%s: PIPE_DDI_FUNC_CTL_EDP after: 0x%" B_PRIx32 "\n", __func__,
read32(PIPE_DDI_FUNC_CTL_EDP));
TRACE("%s: Laptop, but eDP port down\n", __func__);
return false;
}
if (gInfo->shared_info->has_vesa_edid_info) {