Explorar el Código

msm: camera: csiphy: Fix presil crash due to readl in tpg

Register read writes are expected to go through wrapper
functions in presil so that they can be overridden by presil
code. Change register read during tpg start to use this wrapper.

CRs-Fixed: 2932495
Change-Id: Ib72f2de381e096bde146e4fb1ff8f5187eaa5717
Signed-off-by: Mukund Madhusudan Atre <[email protected]>
Mukund Madhusudan Atre hace 4 años
padre
commit
9133c767b4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      drivers/cam_sensor_module/cam_tpg/tpg_hw/tpg_hw.c

+ 1 - 1
drivers/cam_sensor_module/cam_tpg/tpg_hw/tpg_hw.c

@@ -31,7 +31,7 @@ static int cam_io_tpg_dump(void __iomem *base_addr,
 				REG_OFFSET(start_offset, i));
 			p_str += 11;
 		}
-		data = readl_relaxed(base_addr + REG_OFFSET(start_offset, i));
+		data = cam_io_r(base_addr + REG_OFFSET(start_offset, i));
 		snprintf(p_str, 9, "%08x ", data);
 		p_str += 8;
 		if ((i + 1) % NUM_REGISTER_PER_LINE == 0) {