Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 90bbf637 authored by Dmytro Laktyushkin's avatar Dmytro Laktyushkin Committed by Alex Deucher
Browse files

drm/amd/display: Set default block_size, even in unexpected cases



We're not expected to enter the default case, but not returning a
default value here is incorrect.

Signed-off-by: default avatarDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: default avatarEric Bernstein <Eric.Bernstein@amd.com>
Acked-by: default avatarLeo Li <sunpeng.li@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 5b25e5f1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -337,6 +337,7 @@ static enum dcn_hubbub_page_table_block_size page_table_block_size_to_hw(unsigne
		break;
	default:
		ASSERT(false);
		block_size = page_table_block_size;
		break;
	}

+1 −1
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ enum dcn_hubbub_page_table_depth {

enum dcn_hubbub_page_table_block_size {
	DCN_PAGE_TABLE_BLOCK_SIZE_4KB = 0,
	DCN_PAGE_TABLE_BLOCK_SIZE_64KB = 4
	DCN_PAGE_TABLE_BLOCK_SIZE_64KB = 4,
};

struct dcn_hubbub_phys_addr_config {