Pārlūkot izejas kodu

msm: camera: common: Add appropriate camera initialization log

Currently, the camera initialization log only points to the
camera initcalls execution. The camera driver is initailized when
all components are bound succussfully in CRM master bind. Add
appropriate log to convey correct info.

CRs-Fixed: 2841729
Change-Id: I5a52ad9fdf84d79d66763d47c92d2a63bb8d0e21
Signed-off-by: Mukund Madhusudan Atre <[email protected]>
Mukund Madhusudan Atre 4 gadi atpakaļ
vecāks
revīzija
fa19532b36
2 mainītis faili ar 5 papildinājumiem un 4 dzēšanām
  1. 4 3
      drivers/cam_req_mgr/cam_req_mgr_dev.c
  2. 1 1
      drivers/camera_main.c

+ 4 - 3
drivers/cam_req_mgr/cam_req_mgr_dev.c

@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
  */
 
 #include <linux/module.h>
@@ -778,7 +778,7 @@ static int cam_req_mgr_component_master_bind(struct device *dev)
 				g_cam_req_mgr_timer_cachep->name);
 	}
 
-	CAM_INFO(CAM_CRM, "All probes done, binding slave components");
+	CAM_DBG(CAM_CRM, "All probes done, binding slave components");
 	rc = component_bind_all(dev, NULL);
 	if (rc) {
 		CAM_ERR(CAM_CRM,
@@ -787,7 +787,8 @@ static int cam_req_mgr_component_master_bind(struct device *dev)
 		goto req_mgr_device_deinit;
 	}
 
-	CAM_DBG(CAM_CRM, "All camera components bound successfully");
+	CAM_INFO(CAM_CRM,
+		"All components bound successfully, Spectra camera driver initialized");
 	rc = sysfs_create_file(&dev->kobj, &camera_debug_sysfs_attr.attr);
 	if (rc < 0) {
 		CAM_ERR(CAM_CPAS,

+ 1 - 1
drivers/camera_main.c

@@ -283,7 +283,7 @@ static int camera_init(void)
 		}
 	}
 
-	CAM_INFO(CAM_UTIL, "Spectra camera driver initialized");
+	CAM_DBG(CAM_UTIL, "Camera initcalls done");
 
 end_init:
 	return rc;