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 <matre@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
ea8a7f5347
commit
fa19532b36
@@ -1,6 +1,6 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-only
|
// 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>
|
#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);
|
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);
|
rc = component_bind_all(dev, NULL);
|
||||||
if (rc) {
|
if (rc) {
|
||||||
CAM_ERR(CAM_CRM,
|
CAM_ERR(CAM_CRM,
|
||||||
@@ -787,7 +787,8 @@ static int cam_req_mgr_component_master_bind(struct device *dev)
|
|||||||
goto req_mgr_device_deinit;
|
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);
|
rc = sysfs_create_file(&dev->kobj, &camera_debug_sysfs_attr.attr);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
CAM_ERR(CAM_CPAS,
|
CAM_ERR(CAM_CPAS,
|
||||||
|
@@ -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:
|
end_init:
|
||||||
return rc;
|
return rc;
|
||||||
|
Reference in New Issue
Block a user