Przeglądaj źródła

disp: msm: fix debug bus test point selection

Extension bits of test point selection is needed when test
point value exceeds three bits, not based on blcok id value.
This change fixes debug bus test point selection when
value is more than 3 bits and extension bits are required.

Change-Id: I37688b2c6e476b1271daad0bbddb5896edc530d1
Signed-off-by: Prabhanjan Kandula <[email protected]>
Prabhanjan Kandula 2 lat temu
rodzic
commit
7d8dbc2fb3
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      msm/sde_dbg.c

+ 1 - 1
msm/sde_dbg.c

@@ -934,7 +934,7 @@ static void _sde_dbg_vbif_clear_test_point(void __iomem *mem_base, u32 wr_addr)
 static u32 _sde_dbg_sde_read_test_point(void __iomem *mem_base, u32 wr_addr, u32 rd_addr,
 			u32 block_id, u32 test_id)
 {
-	if (block_id > EXT_TEST_GROUP_SEL_EN)
+	if (test_id > EXT_TEST_GROUP_SEL_EN)
 		writel_relaxed(TEST_EXT_MASK(block_id, test_id), mem_base + wr_addr);
 	else
 		writel_relaxed(TEST_MASK(block_id, test_id), mem_base + wr_addr);