From: Daniel Sa <daniel...@amd.com>

[Why]
Some asserts are always hit on startup/Pnp when they should only be used
to indicate when something has gone wrong.

[How]
Ignore result of getting function from bios cmd table for newer asics.

Reviewed-by: Jun Lei <jun....@amd.com>
Signed-off-by: Daniel Sa <daniel...@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahf...@amd.com>
---
 drivers/gpu/drm/amd/display/dc/bios/command_table2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/bios/command_table2.c 
b/drivers/gpu/drm/amd/display/dc/bios/command_table2.c
index 4254bdfefe38..7d18f372ce7a 100644
--- a/drivers/gpu/drm/amd/display/dc/bios/command_table2.c
+++ b/drivers/gpu/drm/amd/display/dc/bios/command_table2.c
@@ -227,7 +227,7 @@ static void init_transmitter_control(struct bios_parser *bp)
        uint8_t frev;
        uint8_t crev = 0;
 
-       if (!BIOS_CMD_TABLE_REVISION(dig1transmittercontrol, frev, crev))
+       if (!BIOS_CMD_TABLE_REVISION(dig1transmittercontrol, frev, crev) && 
(bp->base.ctx->dc->ctx->dce_version <= DCN_VERSION_2_0))
                BREAK_TO_DEBUGGER();
 
        switch (crev) {
-- 
2.46.0

Reply via email to