Pārlūkot izejas kodu

msm: camera: common: Add log mask for sensor util

Add separate log mask for sensor util. Update i3c device id
logs to show device node name as well.

CRs-Fixed: 3258478
Change-Id: I5bdacc17fc39ee4b2491907ddb02234af2edd767
Signed-off-by: Mukund Madhusudan Atre <[email protected]>
Mukund Madhusudan Atre 2 gadi atpakaļ
vecāks
revīzija
4d9af96315

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 128 - 121
drivers/cam_sensor_module/cam_sensor_utils/cam_sensor_util.c


+ 5 - 2
drivers/cam_utils/cam_debug_util.h

@@ -55,6 +55,7 @@ enum cam_debug_module_id {
 	CAM_PRESIL_CORE,         /* bit 32 */
 	CAM_TPG,                 /* bit 33 */
 	CAM_DMA_FENCE,           /* bit 34 */
+	CAM_SENSOR_UTIL,         /* bit 35 */
 	CAM_DBG_MOD_MAX
 };
 
@@ -112,7 +113,8 @@ static const char *cam_debug_mod_name[CAM_DBG_MOD_MAX] = {
 	[CAM_CRE]         = "CAM-CRE",
 	[CAM_PRESIL_CORE] = "CAM-CORE-PRESIL",
 	[CAM_TPG]         = "CAM-TPG",
-	[CAM_DMA_FENCE]   = "CAM_DMA_FENCE",
+	[CAM_DMA_FENCE]   = "CAM-DMA-FENCE",
+	[CAM_SENSOR_UTIL] = "CAM-SENSOR-UTIL",
 };
 
 #define ___CAM_DBG_MOD_NAME(module_id)                                      \
@@ -151,7 +153,8 @@ __builtin_choose_expr(((module_id) == CAM_CRE), "CAM-CRE",                  \
 __builtin_choose_expr(((module_id) == CAM_PRESIL_CORE), "CAM-CORE-PRESIL",  \
 __builtin_choose_expr(((module_id) == CAM_TPG), "CAM-TPG",                  \
 __builtin_choose_expr(((module_id) == CAM_DMA_FENCE), "CAM-DMA-FENCE",      \
-"CAMERA")))))))))))))))))))))))))))))))))))
+__builtin_choose_expr(((module_id) == CAM_SENSOR_UTIL), "CAM-SENSOR-UTIL",      \
+"CAMERA"))))))))))))))))))))))))))))))))))))
 
 #define CAM_DBG_MOD_NAME(module_id) \
 ((module_id < CAM_DBG_MOD_MAX) ? cam_debug_mod_name[module_id] : "CAMERA")

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels