Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3e723e5d authored by Alok Pandey's avatar Alok Pandey
Browse files

msm: camera: tfe: Fix CSID probe



CSID probe is failing due to PPI getting probed later than CSID.
Fix:
 - PPI initialization failure as non-fatal.
 - Reordering compilation to call PPI probe before csid.

CRs-Fixed: 2994159
External Impact: No
Change-Id: I43948b28ef044eaaef2c72027e991f1fa63bee02
Signed-off-by: default avatarAlok Pandey <akumarpa@codeaurora.org>
parent ad4b86bd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3,7 +3,8 @@
obj-$(CONFIG_SPECTRA_CAMERA) += top_tpg/

ifdef CONFIG_SPECTRA_CAMERA_TFE
obj-$(CONFIG_SPECTRA_CAMERA) += tfe_csid_hw/ tfe_hw/ ppi_hw/
obj-$(CONFIG_SPECTRA_CAMERA) += ppi_hw/
obj-$(CONFIG_SPECTRA_CAMERA) += tfe_csid_hw/ tfe_hw/
endif

ifdef CONFIG_SPECTRA_CAMERA_IFE
+2 −1
Original line number Diff line number Diff line
@@ -3255,7 +3255,8 @@ int cam_tfe_csid_hw_probe_init(struct cam_hw_intf *csid_hw_intf,
	for (i = 0; i < CAM_CSID_PPI_HW_MAX; i++) {
		rc = cam_csid_ppi_hw_init(&tfe_csid_hw->ppi_hw_intf[i], i);
		if (rc < 0) {
			CAM_ERR(CAM_ISP, "PPI init failed for PPI %d", i);
			CAM_INFO(CAM_ISP, "PPI init failed for PPI %d", i);
			rc = 0;
			break;
		}
	}