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

Commit e1ea9ede authored by Shravya Samala's avatar Shravya Samala
Browse files

msm: camera: isp: Correct assignment of clock rates



If there is no change in CSID and TFE clock rates
then correctly assign current clock rates to local
varaibles.

CRs-Fixed: 2855742
Change-Id: Ibd71274ba7a7844c3841060eb3b3b14ba80ed4b0
Signed-off-by: default avatarShravya Samala <shravyas@codeaurora.org>
parent c3f06e4d
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
 * Copyright (c) 2019-2021, The Linux Foundation. All rights reserved.
 */

#include <linux/slab.h>
@@ -1984,6 +1984,12 @@ int cam_tfe_cshiphy_callback(
				&csid_clock_rate, &updated_tfe_clk);
		}
	}

	if (!updated_csid_clk)
		updated_csid_clk = csid_clock_rate;

	if (!updated_tfe_clk)
		updated_tfe_clk = tfe_clock_rate;
end:
	/* final check */
	if ((*phy_clock_rate > updated_csid_clk) ||